SQL and Database Management MCQs

SQL and Database Management MCQs

12th Grade

25 Qs

quiz-placeholder

Similar activities

SQL Quiz

SQL Quiz

12th Grade

20 Qs

Querying using MySQL

Querying using MySQL

12th Grade

20 Qs

PHP + MySQL

PHP + MySQL

7th Grade - University

25 Qs

SQL Queries

SQL Queries

12th Grade

25 Qs

Relational Database Management System

Relational Database Management System

12th Grade

20 Qs

CompTIA ITF+ - Database Vocabulary

CompTIA ITF+ - Database Vocabulary

9th - 12th Grade

20 Qs

SQL

SQL

12th Grade

20 Qs

Mysql set 1

Mysql set 1

9th - 12th Grade

21 Qs

SQL and Database Management MCQs

SQL and Database Management MCQs

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Shubham Mishra

Used 1+ times

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the purpose of the SQL command `ALTER TABLE`?

To create a new table

To delete an existing table

To modify the structure of an existing table

To retrieve data from a table

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which SQL command is used to remove all records from a table without deleting the table itself?

DROP TABLE

DELETE TABLE

TRUNCATE TABLE

REMOVE TABLE

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the function of the `GROUP BY` clause in SQL?

To filter records

To sort records

To group rows that have the same values into summary rows

To update records

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How would you find the number of rows in a table named `Employee`?

SELECT TOTAL(ROW) FROM Employee;

SELECT COUNT(*) FROM Employee;

SELECT NUM_ROWS FROM Employee;

SELECT ROW_COUNT() FROM Employee;

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which SQL clause is used to restrict the number of rows returned by a query?

LIMIT

WHERE

HAVING

TOP

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the default sorting order of the `ORDER BY` clause in SQL?

Descending

Ascending

Random

By primary key

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

In SQL, which command would you use to remove a column from a table?

REMOVE COLUMN

DROP COLUMN

DELETE COLUMN

ALTER COLUMN

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