SQL Queries Quiz

SQL Queries Quiz

12th Grade

10 Qs

quiz-placeholder

Similar activities

Join-2

Join-2

12th Grade

13 Qs

SQL - Basic concepts

SQL - Basic concepts

11th - 12th Grade

10 Qs

Advanced SQL

Advanced SQL

KG - University

10 Qs

Chapter 9 - Databases (IGCSE Computer Science)

Chapter 9 - Databases (IGCSE Computer Science)

9th - 12th Grade

15 Qs

Unit 6 Quiz Prep

Unit 6 Quiz Prep

9th - 12th Grade

15 Qs

MYSQL

MYSQL

12th Grade

15 Qs

SQL JOIN, Order By, Group By

SQL JOIN, Order By, Group By

12th Grade

15 Qs

SQL- Join, Group by, having

SQL- Join, Group by, having

9th - 12th Grade

10 Qs

SQL Queries Quiz

SQL Queries Quiz

Assessment

Quiz

Computers

12th Grade

Medium

Created by

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

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?

Discover more resources for Computers