Отправьте заявку для получения бесплатной консультации




Регистрация юридических лиц и индивидуальных предпринимателей

г.Севастополь,
ул.Кулакова, 46/2

For the majority of databases, you could potentially connect to a specific inquire rather than the whole research lay

For the majority of databases, you could potentially connect to a specific inquire rather than the whole research lay

Since the databases have somewhat some other SQL sentence structure regarding one another, the personalized SQL you utilize to hook up to one databases you’ll be different on custom SQL you might use to connect to a different. But not, playing with individualized SQL can be handy after you know precisely the newest information you need and you will understand how to generate SQL issues.

However, there are several well-known reason you might use personalized SQL, you can make use of customized SQL to help you partnership your data all over dining tables, recast industries to execute cross-database touches, reconstitute or reduce the measurements of your data to possess research, etc.

For Do just fine and you will text message document analysis sources, this option exists only in workbooks that have been created before Tableau Pc 8.2 otherwise when using Tableau Desktop computer towards the Screen towards legacy union. To connect to Do just fine or text records using the legacy union, relate solely to the newest document, plus in the new Unlock dialog field, click on the Unlock lose-off menu, and pick Unlock having Heritage Connection .

NOTE: You start with Tableau 2020.2, heritage Excel and Text connections are no lengthened served. See the History Union Solutions file in Tableau Neighborhood to have selection to presenting the latest heritage union.

Connect to a customized SQL ask

After you simply click Okay, the newest ask runs while the custom SQL inquire table appears in the logical layer of your own material. Simply related fields regarding customized SQL query monitor about investigation grid towards the Databases webpage.

Examples of custom SQL queries

If you need to append analysis together, you need to use the relationship option regarding the bodily covering from the brand new canvas in the Tableau. Occasionally their databases cannot service this one, so you’re able to have fun with customized SQL rather.

If you want to do a hop on ranging from a couple dining tables within the the fresh physical layer of the canvas, the data types of the industries you sign-up with the should be an identical. Into the circumstances in the event that research brand of new industries aren’t an equivalent, you can utilize custom SQL to evolve the information types of (cast) the field ahead of carrying out the fresh register.

Instance, imagine we want to sign up a couple of dining tables, Fundamental and you can Sandwich, using the Options and you can ID industries, correspondingly. The underlying profession was lots variety of and also the ID profession is actually a string kind of. You are able to next individualized SQL ask to change the latest research brand of Root out of a number to help you a sequence very you could join the Chief and you may Sub tables with the Root and you can ID industries.

Whenever using huge study sets, sometimes you can save go out while you are coping with important computer data in the event the your eradicate the size very first.

Eg, assume you have got a massive dining table named FischerIris. You can utilize the next personalized SQL query so you can recover the fresh new given articles and you will facts and so reducing the sized the data set that you interact with off Tableau.

Look for [FischerIris].[Species] As [Species], [FischerIris].[Width] As [Petal Thickness], COUNT([FischerIris].[ID]) Because [Num off Varieties] Away from [FischerIris] Where [FischerIris].[Organ] = ‘Petal’ And you will [FischerIris].[Width] > Classification By [FischerIris].[Species], [FischerIris].[Width]

Sometimes, you’re dealing with a dining table that must definitely be restructured prior to data. Even when this type of task can be done in the physical level of fabric for the Tableau that with choices including pivot, your databases might not support it. In this situation, you need personalized SQL rather.

To alter its construction and you can optimize your research to possess investigation for the Tableau, you can use Aurora escort service next individualized SQL ask:

Look for Table1.Seasons ID Because [12 months ID], Table1.Items — Don’t like Given that [Quantity], «Dislike» Given that [Reason] From Table1 Relationship All of the Come across Table1.12 months ID While the [Seasons ID], Table.Factors — Faulty Just like the [Quantity], «Defective» Since [Reason] Off Table1 Commitment Every Find Table1.Season ID While the [12 months ID], Table1.Items — Too-big While the [Quantity], «Too large» Once the [Reason] Away from Table1 Connection All the Get a hold of Table1.12 months ID As Seasons ID, Table1.Items — Too tiny Because [Quantity] «Too tiny» Because the [Reason] Out-of Table1

Яндекс.Метрика