Mastering SQL: A Student's Guide

Mastering SQL: A Student's Guide

12th Grade

6 Qs

quiz-placeholder

Similar activities

Copyright, Fair Use, and Ethical Use of AI In Schools

Copyright, Fair Use, and Ethical Use of AI In Schools

7th - 12th Grade

10 Qs

PPMSG BIM2 PART 1

PPMSG BIM2 PART 1

9th - 12th Grade

11 Qs

Questionário sobre Banco de Dados

Questionário sobre Banco de Dados

12th Grade

10 Qs

Comprehension Questions on Ratio Analysis

Comprehension Questions on Ratio Analysis

8th Grade - University

10 Qs

Pemrograman PHP dan MySQL

Pemrograman PHP dan MySQL

12th Grade

10 Qs

MID26022025

MID26022025

12th Grade

10 Qs

Test - clasa a XII-a

Test - clasa a XII-a

12th Grade

6 Qs

Cuestionario sobre Bases de Datos

Cuestionario sobre Bases de Datos

3rd Grade - University

8 Qs

Mastering SQL: A Student's Guide

Mastering SQL: A Student's Guide

Assessment

Quiz

Information Technology (IT)

12th Grade

Hard

Created by

Clinton Lough

Used 1+ times

FREE Resource

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which SQL clause is used to filter records in a query result?

`ORDER BY`

`GROUP BY`

`WHERE`

`HAVING`

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which SQL statement is used to retrieve all columns from a table named `students`?

`SELECT * FROM students;`

`GET ALL FROM students;`

`FETCH ALL FROM students;`

`RETRIEVE * FROM students;`

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the `JOIN` clause in SQL?

To delete records from a table

To combine rows from two or more tables based on a related column

To update records in a table

To create a new table

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Consider the following SQL query: `SELECT name FROM employees WHERE department = 'Sales';`. What does this query do?

It selects all columns from the `employees` table where the department is 'Sales'.

It selects the `name` column from the `employees` table where the department is 'Sales'.

It updates the `name` column in the `employees` table to 'Sales'.

It deletes records from the `employees` table where the department is 'Sales'.

5.

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?

INNER JOIN

LEFT JOIN

RIGHT JOIN

FULL JOIN

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Michael is analyzing the employee distribution across various departments in his company. What does the following SQL query do? `SELECT department, COUNT(*) FROM employees GROUP BY department;`

It counts the number of employees in each department.

It adds all employees from each department showing the total.

It updates the department count in the `employees` table.

It deletes departments with no employees.