You need to retrieve data from two related database tables based on a column that exists in both tables. Which command should you use in a query?
A. INTERSECT
B. UNION
C. JOIN
D. TRUNCATE
4 Comments on “Which command should you use in a query?”
Peter Smithsays:
C. Join
2
0
Pawan Chhanganisays:
C join is correct answer accroding to given question
1
0
Tonysays:
I would also say join, it is not asking for the data to be displayed from both tables, just that the tables have field/key that exists in both.
0
0
avalon333says:
[The UNION clause allows you to combine the results of two or more queries into a resulting
single set that includes all the rows belonging to the query in that union. The UNION clause is
entirely different from the JOIN statements, which combine columns from two different tables.
You must remember a couple of basic rules when combining the results of two queries via the UNION clause:
C. Join
2
0
C join is correct answer accroding to given question
1
0
I would also say join, it is not asking for the data to be displayed from both tables, just that the tables have field/key that exists in both.
0
0
[The UNION clause allows you to combine the results of two or more queries into a resulting
single set that includes all the rows belonging to the query in that union. The UNION clause is
entirely different from the JOIN statements, which combine columns from two different tables.
You must remember a couple of basic rules when combining the results of two queries via the UNION clause:
So, C, Join
0
0