
SQL Queries Quiz

Quiz
•
Computers
•
12th Grade
•
Medium
DR MURTHY
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which SQL command is used to retrieve data from a database?
INSERT
UPDATE
SELECT
DELETE
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which clause is used to filter records in an SQL query based on a condition?
WHERE
GROUP BY
ORDER BY
HAVING
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following SQL statements is used to remove rows from a table?
TRUNCATE
DELETE
DROP
REMOVE
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following query do? SELECT COUNT(*) FROM Employee;
Returns the total number of columns in the Employee table
Returns the total number of rows in the Employee table
Returns the number of distinct employees
Returns the sum of all employee salaries
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which SQL function is used to combine the values of multiple columns into one string?
CONCAT
SUM
LENGTH
GROUP_CONCAT
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In SQL, the INNER JOIN keyword:
Combines rows from two or more tables where there is a match in the columns being joined
Returns all rows from the left table
Returns all rows from the right table
Combines all rows regardless of whether they match
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is correct for selecting all columns from a table named Products?
SELECT all FROM Products;
SELECT * FROM Products;
SELECT columns FROM Products;
SELECT everything FROM Products;
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
L3 BTEC Unit 2 - SQL

Quiz
•
11th - 12th Grade
15 questions
Bazy danych - SQL

Quiz
•
9th - 12th Grade
10 questions
12 CA One Mark 1-3

Quiz
•
12th Grade
7 questions
Error Kode Pada Insert

Quiz
•
9th - 12th Grade
10 questions
Advanced SQL

Quiz
•
KG - University
10 questions
Bases de datos SQL Server

Quiz
•
12th Grade
14 questions
S4 DDD

Quiz
•
10th Grade - University
14 questions
AQA GCSE Databases and SQL

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade