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 17 Discussion

You have two tables named Employeelnfo and DepartmentInfo. Employeelnfo contains four fields named Full Name, Department ID, Start Date, and Salary.DepartmentInfo contains four fields named Department Name, Size, Department ID, and VP.You want to combine the tables to meet the following requirements:. Each record in Employeelnfo must be retained in the combined table.. The records must contain the Department Name, Size, and VP fields.* Every record must have a full name.Which type of join should you use?
B) Left
A) Inner
C) Full outer
D) Union

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

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

You have two tables named Employeelnfo and DepartmentInfo. Employeelnfo contains four fields named Full Name, Department ID, Start Date, and Salary.

DepartmentInfo contains four fields named Department Name, Size, Department ID, and VP.

You want to combine the tables to meet the following requirements:

. Each record in Employeelnfo must be retained in the combined table.

. The records must contain the Department Name, Size, and VP fields.

* Every record must have a full name.

Which type of join should you use?

Show Suggested Answer Hide Answer
Suggested Answer: B

To combine the tables and meet the requirements, you should use a left join. A left join will keep all the records from the left table (Employeelnfo) and match them with the records from the right table (DepartmentInfo) based on the common field (Department ID). If there is no matching record in the right table, the fields from the right table will be null. This way, you will retain all the records from Employeelnfo, and also include the Department Name, Size, and VP fields from DepartmentInfo. Every record will have a full name because it is a field from the left table. A left join will look like this:


Join Your Data - Tableau

Join Types in Tableau

Contribute your Thoughts:

0/2000 characters
Alonso
13 days ago
But what about C) Full outer? It includes everything from both tables.
upvoted 0 times
...
Brunilda
18 days ago
Agreed! Left join keeps all employees, even without a department match.
upvoted 0 times
...
Ellsworth
23 days ago
I think it's B) Left join. We need all records from Employeelnfo.
upvoted 0 times
...
Yuette
29 days ago
I thought a Union would be the answer, but I guess not!
upvoted 0 times
...
Berry
1 month ago
Full outer? That sounds excessive for this case.
upvoted 0 times
...
Charlene
1 month ago
Wait, why not an Inner join? Seems like it could work too.
upvoted 0 times
...
Paulina
1 month ago
Agreed, Left join is the way to go here.
upvoted 0 times
...
Lorrine
2 months ago
Definitely a Left join! Keeps all employee records.
upvoted 0 times
...
Yuette
2 months ago
I’m a bit confused about the Full Outer Join option. It seems like it would include everything, but we only need to keep all from Employeelnfo.
upvoted 0 times
...
Rosendo
2 months ago
This question reminds me of a practice problem where we had to retain all records from one table. I think Left Join is definitely the way to go.
upvoted 0 times
...
Laurel
2 months ago
I'm not entirely sure, but I remember something about Inner Joins only keeping matching records, which doesn't fit our needs here.
upvoted 0 times
...
Jodi
2 months ago
I think we need to use a Left Join because we want to keep all records from Employeelnfo, right?
upvoted 0 times
...

Save Cancel