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
Similar Questions from HTET Exam - Level 3 - Year 2022
Question 1
Easy
Source :
HTET 2022
This element is used to change the current directionality of the text, in HTML:
Chapter :
Web Designing using HTML
Topic :
HTML Basics
Question 2
Easy
Source :
HTET 2022
Consider Column-I and Column-II in context of tools to support UML diagram for analysis modeling : Column-I - Column-II i. Power Designer - a. IBM…
Chapter :
Software Engineering & Problem Solving
Topic :
SDLC (Major stages)
Question 3
Easy
Source :
HTET 2022
$(929.19)_{10}=?$
Chapter :
Computer System & Hardware Fundamentals
Topic :
Encoding Schemes and Number System
Question 4
Easy
Source :
HTET 2022
Which of the following output is not expected from MS-excel function = RAND() ?
Chapter :
Office Automation Tools
Topic :
Spreadsheet (MS Excel)