What does the JOIN clause do in a MySQL query?
Correct answer
A. Combine data from multiple tables based on a related field.
17 views
A. Combine data from multiple tables based on a related field.
17 views
The JOIN clause combines data from multiple tables based on a related field, usually a primary key in one table and a foreign key in the other.
The main types are INNER JOIN (matching rows only), LEFT and RIGHT JOIN (all rows from one side) and CROSS JOIN (every combination). Sorting is done by ORDER BY and filtering by WHERE.
Practise more Database Management Systems MCQs with answers and explanations on MCQsExam.com.
Not sure why the answer is A? Ask here and get an explanation.