Question
Easy

Choose the SQL commands to perform following operations on a relation R: I: Retain Relation R in database, but delete all tuples in R. II: Delete all information about R in Database.

1
I: Drop table R; II: Delete from R
2
I: Delete from R; II: Drop table R
3
I: Delete table R; II: Drop from R
4
I: Alter table R; II: Alter R Drop
Question Details
Time to Solve: 12
Exam: HTET
Level/Paper: Level 3
Chapter: Database Management System (DBMS) & SQL
Topic: SQL
Correct Answer
Option B
Explanation

The correct option is (2): This option correctly pairs the specific SQL commands with their defined functional behavior, which is a crucial concept in Database Management Systems. For operation I, "Retain Relation R in database, but delete all tuples in R," the correct DML (Data Manipulation Language) command is DELETE FROM R. This command selectively removes the data (rows/tuples) from the table while leaving the table's complete structure, including its…Read More

Choose the sql commands - HTET Level 3 | Clear Cutoff