Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Analytics-DA-201 Exam - Topic 1 Question 21 Discussion

You have the Mowing two tables that contains data about the books in a library.Both tables are incomplete so there are books missing from the tables.You need to combine the tables. The solution must ensure that all the data is retainedWhich type of join should you use?
A) Full outer join
B) Right join
C) left join
D) Inner join

Salesforce Analytics-DA-201 Exam - Topic 1 Question 21 Discussion

Actual exam question for Salesforce's Analytics-DA-201 exam
Question #: 21
Topic #: 1
[All Analytics-DA-201 Questions]

You have the Mowing two tables that contains data about the books in a library.

Both tables are incomplete so there are books missing from the tables.

You need to combine the tables. The solution must ensure that all the data is retained

Which type of join should you use?

Show Suggested Answer Hide Answer
Suggested Answer: A

To combine the two tables that contain data about books in a library and ensure that all the data is retained, you should use a full outer join. A full outer join is a type of join that returns all rows from both tables, regardless of whether there is a match or not. If there is no match, null values are filled in for the missing fields.

To perform a full outer join, you need to do the following steps:

Connect to both tables as your data sources in Tableau. You can use either live or extract connections.

Drag one table to the canvas and drop it on top of another table. This will create a join between them based on a common field.

Click on the join icon between the tables and select Full Outer Join from the drop-down list. This will change the join type to full outer join and show all rows from both tables.

Optionally, you can add or remove join clauses by clicking on Add or Remove buttons next to each clause. You can also change or rename fields by clicking on them.

The other types of joins are not correct for this scenario. An inner join returns only the rows that have a match in both tables, which will exclude any books that are missing from either table. A left join returns all rows from the left table and only the matching rows from the right table, which will exclude any books that are only in the right table. A right join returns all rows from the right table and only the matching rows from the left table, which will exclude any books that are only in the left table. Reference: https://help.tableau.com/current/pro/desktop/en-us/joining_tables.htm https://help.tableau.com/current/pro/desktop/en-us/join_types.htm

When combining two datasets that are both incomplete and where it's important to retain all data from both sources, a full outer join is appropriate. This type of join ensures that all records from both tables are included in the combined dataset, even if there are no matching records in the other table.


Contribute your Thoughts:

0/2000 characters
Kelvin
1 day ago
I'm not entirely sure, but I remember practicing a question where a left join was used. It only keeps data from one table, right?
upvoted 0 times
...
Andra
7 days ago
I think we should use a full outer join since it combines all records from both tables, even if some data is missing.
upvoted 0 times
...

Save Cancel