For the majority database, you could potentially interact with a particular query instead of the entire data place

17 Tháng Tám, 2022

For the majority database, you could potentially interact with a particular query instead of the entire data place

As the databases features quite various other SQL sentence structure off one another, the fresh new personalized SQL make use of to connect to one database you are going to be different from the personalized SQL you might use in order to connect to another. Yet not, playing with individualized SQL can be handy after you know precisely the new information you need and know how to produce SQL question.

However, there are a few popular reason why you may use custom SQL, you are able to customized SQL in order to relationship important computer data around the dining tables, Cape Coral FL chicas escort recast industries to do get across-database satisfies, restructure otherwise slow down the sized your computer data to own data, etcetera.

To possess Excel and you may text document research offer, this 1 is present only in workbooks that have been made before Tableau Desktop 8.dos or while using the Tableau Desktop computer into the Screen with the heritage connection. For connecting to Do well or text message documents using the legacy union, get in touch with the newest document, plus brand new Discover dialogue container, click on the Open get rid of-down diet plan, and then see Unlock having Heritage Union .

NOTE: Starting with Tableau 2020.dos, legacy Prosper and Text message contacts are no longer served. Understand the History Union Choice file in the Tableau Neighborhood having selection to using the fresh history commitment.

Get in touch with a personalized SQL query

When you simply click Ok, new ask runs as well as the individualized SQL query desk appears into the the latest analytical coating of your own canvas. Merely relevant areas on the personalized SQL ask monitor throughout the study grid towards the Repository page.

Types of personalized SQL requests

If you wish to append investigation to one another, you are able to new commitment solution throughout the actual level regarding new material from inside the Tableau. In some cases the databases will not assistance this package, in order to have fun with customized SQL alternatively.

When you wish to do a join ranging from a few tables within the this new bodily covering of your fabric, the details brand of the new fields you signup towards the have to be an identical. For the times in the event that study sort of the new areas commonly the same, you need individualized SQL to switch the data type of (cast) the field prior to doing the fresh new subscribe.

Such, suppose we should signup one or two dining tables, Chief and Sub, utilizing the Sources and ID sphere, correspondingly. The underlying job is actually a number sort of and the ID community try a string variety of. You can use the second custom SQL inquire adjust new research sort of Options off lots so you can a series therefore that you could get in on the Main and you can Sandwich tables by using the Supply and ID areas.

When making use of very large research sets, sometimes it can save you date if you find yourself handling important computer data if your dump their proportions basic.

Particularly, imagine you’ve got a massive desk titled FischerIris. You can make use of the second custom SQL query in order to retrieve the fresh given columns and you can suggestions and therefore reducing the measurements of the content lay you connect to of Tableau.

Look for [FischerIris].[Species] Given that [Species], [FischerIris].[Width] Because [Petal Width], COUNT([FischerIris].[ID]) Because [Num out-of Kinds] From [FischerIris] Where [FischerIris].[Organ] = ‘Petal’ And you may [FischerIris].[Width] > Classification By [FischerIris].[Species], [FischerIris].[Width]

Occasionally, you’re coping with a table that must definitely be restructured before research. Even in the event such activity you could do regarding the actual covering of the canvas within the Tableau that with alternatives for example pivot, your own databases may not support it. In this case, you need to use custom SQL instead.

To evolve its construction and you may maximize your analysis to have analysis in Tableau, you can utilize next customized SQL inquire:

See Table1.Season ID Since the [Seasons ID], Table1.Activities – Hate Since the [Quantity], “Can’t stand” Because the [Reason] From Table1 Commitment The Pick Table1.Seasons ID As [12 months ID], Desk.Things – Bad While the [Quantity], “Defective” Since [Reason] From Table1 Connection All the Get a hold of Table1.12 months ID Since the [12 months ID], Table1.Products – Too large Since [Quantity], “Too-big” Given that [Reason] Off Table1 Union Every Find Table1.Season ID While the Seasons ID, Table1.Facts – Too little As [Quantity] “Too tiny” Since the [Reason] Away from Table1

  • Bạn đã yêu thích bài viết này!
  • Bạn đã copy link bài viết này!
Số điện thoại: 02633 666 777 Messenger LADO TAXI Zalo: 02633 666 777