In a join, what is the purpose of the ON clause?
-
A
Filter groups
-
B
Specify join condition
Correct answer
-
C
Sort results
-
D
Limit rows
Correct answer
B. Specify join condition
9 views
Explanation
The ON clause specifies the join condition (the predicate that determines how rows are matched). Source: mcqsmind.com, SQL Joins, Q1.
Reference
Asked in: FPSC,CSS,NTS,PPSC,PMS
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ