SQL - INNER JOIN
Which of the following is the correct syntax to join two tables
Employees and Departments on the column DeptID?Employees and Departments on the column DeptID?JOIN ... ON ... to specify the matching condition.JOIN ... ON correctly. SELECT * FROM Employees JOIN Departments WHERE Employees.DeptID = Departments.DeptID; wrongly uses WHERE instead of ON. SELECT * FROM Employees, Departments ON Employees.DeptID = Departments.DeptID; misuses ON with comma join. SELECT * FROM Employees JOIN Departments USING Employees.DeptID; misuses USING syntax with table prefix.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions