
Mastering Basic SQL Queries

Quiz
•
Computers
•
10th Grade
•
Hard
Zameer Haider
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the `SELECT` statement in SQL?
To delete data from a database
To retrieve data from a database
To update data in a database
To insert data into a database
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which clause is used to specify the table from which to retrieve data in an SQL query?
SELECT
WHERE
FROM
ORDER BY
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the `WHERE` clause do in an SQL query?
It sorts the data in ascending order
It filters records based on specified conditions
It groups data based on a column
It limits the number of records returned
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following SQL statements correctly selects all columns from a table named `students`?
SELECT * FROM students;
SELECT students FROM *;
SELECT ALL FROM students;
SELECT columns FROM students;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How would you write an SQL query to select only the `name` and `age` columns from a table called `people`?
SELECT name, age FROM people;
SELECT name AND age FROM people;
SELECT name, age IN people;
SELECT name, age OF people;
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which SQL query would you use to find all records in the `books` table where the `author` is 'J.K. Rowling'?
SELECT * FROM books WHERE author = 'J.K. Rowling';
SELECT * FROM books WHERE author IS 'J.K. Rowling';
SELECT * FROM books WHERE author LIKE 'J.K. Rowling';
SELECT * FROM books WHERE author IN 'J.K. Rowling';
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following SQL query: `SELECT name FROM employees WHERE salary > 30000;`?
It selects all employees with a salary less than £30,000
It selects the names of employees with a salary greater than £30,000
It selects all columns of employees with a salary greater than £30,000
It selects the names of employees with a salary equal to £30,000
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which SQL statement would you use to select all records from the `orders` table where the `quantity` is less than 10?
SELECT * FROM orders WHERE quantity < 10;
SELECT * FROM orders WHERE quantity = 10;
SELECT * FROM orders WHERE quantity > 10;
SELECT * FROM orders WHERE quantity <= 10;
Similar Resources on Wayground
10 questions
SQL запросы

Quiz
•
10th Grade
11 questions
SQL

Quiz
•
10th - 12th Grade
10 questions
Database

Quiz
•
8th - 12th Grade
12 questions
9 Database Quiz

Quiz
•
9th - 12th Grade
12 questions
Introduction to Databases

Quiz
•
10th Grade
10 questions
9.1 Databases Cambridge IGCSE 0478

Quiz
•
10th Grade - University
10 questions
OCR GCSE Computer Science - Databases and SQL

Quiz
•
10th - 11th Grade
9 questions
Sains Komputer Tingkatan 5 - 2.1.5 SQL: Mendapatkan Semula..

Quiz
•
10th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade