0
0
Tableaubi_tool~10 mins

Data relationships model in Tableau - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a relationship between two tables in Tableau.

Tableau
RELATE TABLE Orders TO Customers ON Orders.CustomerID [1] Customers.CustomerID
Drag options to blanks, or click blank then click option'
A=
BIN
CLIKE
DJOIN
Attempts:
3 left
💡 Hint
Common Mistakes
Using SQL join keywords instead of equality operator.
2fill in blank
medium

Complete the code to specify the cardinality of a relationship in Tableau.

Tableau
CREATE RELATIONSHIP BETWEEN Orders AND Customers WITH CARDINALITY [1]
Drag options to blanks, or click blank then click option'
AMany-to-Many
BOne-to-Many
CMany-to-One
DOne-to-One
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing the direction of cardinality.
3fill in blank
hard

Fix the error in the relationship definition code.

Tableau
RELATE TABLE Sales TO Products ON Sales.ProductID [1] Products.ProductKey
Drag options to blanks, or click blank then click option'
A=
B==
C===
D!=
Attempts:
3 left
💡 Hint
Common Mistakes
Using programming language equality operators instead of Tableau syntax.
4fill in blank
hard

Fill both blanks to define a relationship with referential integrity and cardinality.

Tableau
DEFINE RELATIONSHIP BETWEEN Orders AND Customers ON Orders.CustomerID [1] Customers.CustomerID WITH CARDINALITY [2]
Drag options to blanks, or click blank then click option'
A=
BOne-to-Many
CMany-to-One
DLIKE
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong operators or confusing cardinality directions.
5fill in blank
hard

Fill all three blanks to create a relationship with matching keys, cardinality, and referential integrity.

Tableau
CREATE RELATIONSHIP BETWEEN Sales [1] Products ON Sales.ProductID [2] Products.ProductID WITH CARDINALITY [3]
Drag options to blanks, or click blank then click option'
AAND
B=
CMany-to-One
DOR
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'OR' instead of 'AND', or wrong cardinality.