SQL Basics Quiz

SQL Basics Quiz

University

10 Qs

quiz-placeholder

Similar activities

3450 Web Design

3450 Web Design

University

15 Qs

AL7KAMC

AL7KAMC

KG - University

10 Qs

JSP

JSP

University

10 Qs

Modul 8

Modul 8

University

10 Qs

Database Systems Quiz

Database Systems Quiz

University

15 Qs

Mastering Power Query Data Cleaning

Mastering Power Query Data Cleaning

University

15 Qs

Day 2: PowerBI

Day 2: PowerBI

University

10 Qs

SQL Basics Quiz

SQL Basics Quiz

Assessment

Quiz

Other

University

Hard

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?