
SQL and Database Management MCQs
Authored by Shubham Mishra
Computers
12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
LATIHAN SOAL UNBK
Quiz
•
12th Grade
20 questions
Tin học 11 - Kiểm tra số 1
Quiz
•
9th - 12th Grade
20 questions
Perancangan Interface
Quiz
•
12th Grade
25 questions
TIK01
Quiz
•
12th Grade
20 questions
Network topologies
Quiz
•
8th Grade - University
20 questions
PSTS INFORMATIKA X
Quiz
•
10th Grade - University
20 questions
Basic of Computer and Network
Quiz
•
8th Grade - University
20 questions
QUIS Animasi
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade