
SQL Basics Quiz

Quiz
•
Other
•
University
•
Hard
VEDANT VEDANT
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the SELECT statement in SQL?
To update data in a database table.
To delete data from a database table.
To create a new database table.
To retrieve data from a database table.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write a SQL query to select all columns from a table named 'Customers'.
SELECT ALL FROM Customers
SELECT * Customers
SELECT Customers FROM *
SELECT * FROM Customers
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write a SQL query to insert a new record into a table named 'Employees' with columns 'Name' and 'Age'.
INSERT INTO Employees (Name, Age) VALUES ('Jane Smith', 30)
INSERT INTO Employees (Name, Age) VALUES ('John Doe', 25)
INSERT INTO Employees (Name, Age) VALUES ('Bob Johnson', 20)
INSERT INTO Employees (Name, Age) VALUES ('Mary Brown', 35)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following SQL query: SELECT COUNT(*) FROM Orders;
The result of the query is the average of all values in the 'Orders' table.
The result of the query is the count of all rows in the 'Orders' table.
The result of the query is the maximum value in the 'Orders' table.
The result of the query is the sum of all values in the 'Orders' table.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write a SQL query to select only the 'Name' column from a table named 'Products'.
SELECT Name FROM Products;
SELECT ColumnName FROM Products;
SELECT ProductName FROM Products;
SELECT * FROM Products;
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write a SQL query to insert multiple records into a table named 'Students' with columns 'Name' and 'Grade'.
INSERT INTO Students (Name, Grade) VALUES ('John', 'A'), ('Jane', 'B'), ('Mike', 'C', 'D')
INSERT INTO Students (Name, Grade) VALUES ('John', 'A'), ('Jane', 'B'), ('Mike', 'C', 'D', 'E')
INSERT INTO Students (Name, Grade) VALUES ('John', 'A'), ('Jane', 'B'), ('Mike', 'C', 'D', 'E', 'F')
INSERT INTO Students (Name, Grade) VALUES ('John', 'A'), ('Jane', 'B'), ('Mike', 'C')
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following SQL query: SELECT AVG(Price) FROM Products;
The result of the SQL query will be the average price of the products.
The result of the SQL query will be the sum of the prices of the products.
The result of the SQL query will be the maximum price of the products.
The result of the SQL query will be the minimum price of the products.
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
ADBMS Database Performance Tuning and Query Optimization Review

Quiz
•
University
12 questions
Database NoSQL (MongoDB)

Quiz
•
University - Professi...
10 questions
Introdução às Consultas SQL

Quiz
•
12th Grade - University
10 questions
SQL set 3

Quiz
•
University
10 questions
Quis 4 Teori PJV

Quiz
•
University
15 questions
DATABASE LEVEL 1

Quiz
•
University
10 questions
Sql Set 2

Quiz
•
University
7 questions
SQL basic query

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade