Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Query 1

Query 2


Paste code macro
languagesql
Select
First_Name
,Last_Name
,Order_Date
,Order_ID

From dbo.Orders

Where Upper(Last_Name) = 'SMITH'
And Order_Date = '2018-12-30'



Paste code macro
languagesql
Select
a.First_Name
,a.Last_Name
,a.Order_Date
,a.Order_ID

From (
Select
	   First_Name
  	 ,Last_Name
	   ,Upper(Last_Name) As uc_Last_Name
	   ,Order_Date
  	 ,Order_ID

	   From dbo.Orders
	   Where Order_Date = '2018-12-30'
)a
Where a.uc_Last_Name = 'SMITH'


...

What is a Union, and  Union All? How do they differ? And can you provide an example of their use.

...

Which of these two calculations is the most performant in achieving the highlighted row? Explain

Table CalculationLevel-of-detail Expression



Code Block
languagesql
Window_Sum(Sum(Sales))




Code Block
languagesql
Sum({Fixed Segment, Category : Sum(Sales)})


...

Note

The version 2020.2 changes to the Tableau data model have superseded this, but this it is still pertinent to for a Tableau developer to understand this


Consider this ER diagram:

...