Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
1771 Which statement deletes only students older than 25?
Explanation
DELETE FROM with a WHERE condition removes only rows that satisfy the condition.
Last verified on 27-11-2026
1772 What is the result of DELETE FROM Students with no WHERE clause?
Explanation
DELETE without WHERE removes every row, while the table structure and its definition stay intact.
Last verified on 27-11-2026
1773 Which DML statement can both insert new rows and update existing rows in some systems?
Explanation
MERGE inserts a row when no match exists and updates it when a match exists, combining insert and update logic.
Last verified on 27-11-2026
1774 Which of the following is true about DML statements in most systems?
Explanation
DML changes are part of a transaction and can be undone with ROLLBACK until they are committed.
Last verified on 27-11-2026
1775 What does the SET clause do in an UPDATE statement?
Explanation
SET assigns the new value to each column named in an UPDATE statement.
Last verified on 27-11-2026
1776 Which clause in CREATE TABLE sets a value to be used when no value is supplied?
Explanation
DEFAULT supplies an automatic value for a column when an INSERT omits that column.
Last verified on 27-11-2026
1777 Which statement copies rows from one table into another?
Explanation
INSERT INTO ... SELECT copies the result of a SELECT query into an existing table.
Last verified on 27-11-2026
1778 Which statement deletes rows from a table while keeping its structure?
Explanation
DELETE removes rows from a table while keeping the table structure; DROP removes the whole table.
Last verified on 27-11-2026
1779 Which statement retrieves data from a table?
Explanation
SELECT retrieves data from one or more tables and is the main statement of Data Query Language (DQL).
Last verified on 27-11-2026
1780 Which SQL language does SELECT belong to?
Explanation
SELECT is the main Data Query Language statement used to query and retrieve data.
Last verified on 27-11-2026