Mastering SQL Joins and Filters

Mastering SQL Joins and Filters

12th Grade

5 Qs

quiz-placeholder

Similar activities

SQL Query Assignment

SQL Query Assignment

12th Grade

10 Qs

CP1222-WEEK 1-2 QUIZ

CP1222-WEEK 1-2 QUIZ

12th Grade

10 Qs

MOAC Excel 2016 Lesson 09

MOAC Excel 2016 Lesson 09

8th - 12th Grade

10 Qs

SQL functions

SQL functions

11th - 12th Grade

10 Qs

SQL Quiz

SQL Quiz

10th Grade - University

10 Qs

SQL Programming

SQL Programming

4th Grade - Professional Development

10 Qs

J277 - 2.2 - The use of SQL to search for data

J277 - 2.2 - The use of SQL to search for data

10th Grade - University

10 Qs

ACTUALIZAR - ELIMINAR - BD

ACTUALIZAR - ELIMINAR - BD

12th Grade - University

10 Qs

Mastering SQL Joins and Filters

Mastering SQL Joins and Filters

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Anthony England

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of SQL join returns all records from the left table and the matched records from the right table, with nulls in place where there is no match?

INNER JOIN

LEFT JOIN

RIGHT JOIN

FULL JOIN

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which SQL clause is used to filter records that meet a certain condition?

ORDER BY

GROUP BY

WHERE

HAVING

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Consider two tables, `Students` and `Courses`. To find all students who have not enrolled in any course, which SQL join would you use?

INNER JOIN

LEFT JOIN

RIGHT JOIN

FULL JOIN

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which SQL statement will return all records from both tables and fill in nulls for missing matches?

SELECT * FROM table1 INNER JOIN table2 ON table1.id = table2.id;

SELECT * FROM table1 LEFT JOIN table2 ON table1.id = table2.id;

SELECT * FROM table1 RIGHT JOIN table2 ON table1.id = table2.id;

SELECT * FROM table1 FULL JOIN table2 ON table1.id = table2.id;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If you want to filter results based on an aggregate function, which SQL clause should you use?

WHERE

ORDER BY

GROUP BY

HAVING

Discover more resources for Computers