Explore variables in the a custom SQL query

Explore variables in the a custom SQL query

You should use the next customized SQL query to get a great trust the number of orders and you will perform a remaining sign up for the Orders and you may Suppliers dining tables:

Errors when content articles is referenced

If for example the personalized SQL query recommendations copy articles, you can acquire mistakes of trying to make use of one of the articles on your research into the Tableau. This will takes place even if the inquire holds true. Instance, think about the adopting the query:

live escort reviews Chicago

The newest ask holds true, nevertheless bien au_id field is ambiguous since in this situation they is present inside the the “authors” table and “titleauthor” table. Tableau will relate genuinely to the newest query but you will score an enthusiastic error whenever you attempt to use the bien au_id occupation. The reason being Tableau doesn’t know and that table you are it comes down to.

Note: It is a sole routine to help you establish column aliases which have an Given that clause whenever you can when you look at the a custom SQL Query. It is because for every single databases possesses its own laws and regulations if this involves immediately producing a column name and when an enthusiastic alias is actually maybe not used.

Modify a customized SQL query

  1. On data source page, on fabric, double-click on the custom SQL ask regarding the analytical covering.
  2. Hover along the customized SQL table regarding real level up until the newest arrow screens.
  3. Click on the arrow right after which find Edit Individualized SQL Ask .
  4. In the dialog box, edit the latest custom SQL inquire.

After you drag a custom made SQL inquire to the analytical layer of one’s fabric, Tableau brings they a standard title: Individualized SQL Query, Custom SQL Query1, and so on. You can change the default title so you’re able to things more important.

On the data source webpage, regarding logical level of the canvas, discover the drop-off arrow on the individualized SQL ask dining table and choose Rename .

You should use parameters in the a customized SQL inquire declaration so you’re able to exchange a stable well worth with an energetic well worth. Then you can update the newest parameter regarding workbook to change the relationship. Including, you are able to get in touch with a customized SQL ask that provide web customers data getting a certain page that’s specified by good pageID. In the place of using a stable well worth into the pageID value in the the newest SQL query, you could input a factor. Up coming shortly after doing the partnership, you can show a factor control on workbook. Make use of the parameter manage to change out the pageID and you may eliminate in study for each and every web page of interest without the need to modify otherwise copy the relationship.

In Tableau Desktop, you can create a parameter right from brand new Custom SQL dialogue box or play with one details that are the main workbook. If you would an alternative parameter, it becomes designed for include in new workbook just like any other parameter. Get a hold of Would Details to find out more.

For net authoring (inside the Tableau Online otherwise Tableau Machine), you need to use a preexisting parameter authored away from Tableau Pc. You can’t create another type of factor in the net authoring.

  1. Into the data source page, in the fabric, hover across the table through to the change symbol screens, and click brand new edit key.
  2. Towards the bottom of the dialogue box, mouse click Input Factor .
  3. See a steady worthy of regarding the SQL declaration after which, on the Insert Factor drop-down selection discover parameter you want to fool around with rather. When you yourself have perhaps not created a factor but really, find Do an alternative factor . Stick to the rules from inside the Do Details which will make a parameter.

Throughout the example below, the fresh personalized SQL query returns all the requests that will be designated due to the fact Immediate concern. On customized SQL statement, the transaction concern ‘s the lingering worth. If you wish to change the link with understand the Highest consideration requests, you would have to change the content resource.

Deixe uma resposta

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *