Loading

Quipoin Menu

Learn • Practice • Grow

sql / SQL JOINS
mcq
Direction: Choose the correct option

Q1.

SELECT e.name, d.dept_name FROM employees e INNER JOIN departments d ON e.dept_id = d.dept_id;
What type of join is this?
A. INNER JOIN
B. LEFT JOIN
C. FULL JOIN
D. RIGHT JOIN
Direction: Choose the correct option

Q2.

SELECT e.name, d.dept_name, l.city FROM employees e JOIN departments d ON e.dept_id = d.dept_id JOIN locations l ON d.location_id = l.location_id;
How many tables are being joined?
A. 1 table
B. 4 tables
C. 3 tables
D. 2 tables
Direction: Choose the correct option

Q3.

What do 'e' and 'd' represent in the join?
A. Database names
B. Table aliases
C. Table names
D. Column names
Direction: Choose the correct option

Q4.

SELECT e.name, d.dept_name FROM employees e JOIN departments d ON e.dept_id = d.dept_id WHERE e.salary > 50000;
What does WHERE clause do here?
A. Part of join condition
B. Filters joined results
C. Creates new join
D. Sorts results
Direction: Choose the correct option

Q5.

What's the difference between INNER JOIN and OUTER JOIN?
A. OUTER is standard
B. INNER returns matches only, OUTER returns all from one table
C. Both are same
D. INNER is faster