
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
13 questions
DBMS & SQL Classes Feedback

Quiz
•
University
9 questions
BASE DE DATOS

Quiz
•
University
10 questions
Prueba de SQL con Sakila

Quiz
•
University
7 questions
Short quiz

Quiz
•
University
15 questions
CompTIA A+ 20200306

Quiz
•
University
10 questions
Cuestionario - Introducción Cloud Computing

Quiz
•
University
10 questions
BUILD IT 2019

Quiz
•
University
15 questions
MIS Chapter 5

Quiz
•
University
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
Discover more resources for Other
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University