What does the SQL command 'INSERT INTO' do? MCQ with Answer and Explanation

What does the SQL command 'INSERT INTO' do?
A. Creates a table
B. Adds a new row to a table
C. Updates existing rows
D. Deletes rows
Answer: Option B
Solution (By JKSSB Mock Tests)
INSERT INTO is used to insert new records (rows) into a table.

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Database Management System (DBMS) Questions

Question #1
What is the purpose of the SQL 'NULL' value?
A. To represent empty string
B. To represent zero
C. To represent an error
D. To represent missing or unknown data

Correct Answer: Option D


Explanation:
NULL is a special marker indicating that a value is unknown or missing, not the same as zero or empty string.

This question belongs to: Computer Database Management System (DBMS)
Question #2
What is the purpose of the SQL 'UNION' operator?
A. To combine the results of two or more SELECT statements, removing duplicates
B. To join tables horizontally
C. To aggregate data
D. To filter duplicates

Correct Answer: Option A


Explanation:
UNION concatenates the result sets of two or more queries, eliminating duplicate rows. UNION ALL keeps duplicates.

This question belongs to: Computer Database Management System (DBMS)
Question #3
What is a database transaction?
A. A database schema
B. A logical unit of work that consists of one or more SQL statements
C. A query that reads data
D. A backup copy of the database

Correct Answer: Option B


Explanation:
A transaction is a sequence of operations performed as a single logical unit, ensuring ACID properties.

This question belongs to: Computer Database Management System (DBMS)