0
0
DBMS Theoryknowledge~5 mins

DML (INSERT, UPDATE, DELETE) in DBMS Theory - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does DML stand for in databases?
DML stands for Data Manipulation Language. It is used to add, change, or remove data in a database.
Click to reveal answer
beginner
What is the purpose of the INSERT statement?
The INSERT statement adds new rows of data into a table in the database.
Click to reveal answer
beginner
How does the UPDATE statement work?
UPDATE changes existing data in one or more rows of a table based on a condition.
Click to reveal answer
beginner
What does the DELETE statement do?
DELETE removes one or more rows from a table based on a specified condition.
Click to reveal answer
intermediate
Why is it important to use conditions with UPDATE and DELETE?
Conditions limit which rows are changed or removed. Without conditions, all rows could be affected, causing data loss.
Click to reveal answer
Which DML command is used to add new data to a table?
AINSERT
BUPDATE
CDELETE
DSELECT
What happens if you run DELETE without a WHERE condition?
ADeletes only the first row
BDeletes all rows in the table
CDeletes no rows
DReturns an error
Which statement changes existing data in a table?
AUPDATE
BCREATE
CDELETE
DINSERT
What is the main risk of running UPDATE without a WHERE clause?
ANo rows will be updated
BOnly one row will be updated
CAll rows will be updated
DThe table structure will change
Which DML command would you use to remove a specific record?
AALTER
BUPDATE
CINSERT
DDELETE
Explain the differences between INSERT, UPDATE, and DELETE commands in DML.
Think about how each command affects the data in a table.
You got /4 concepts.
    Why should you be careful when using UPDATE or DELETE without a WHERE clause?
    Consider what happens if no limits are set on these commands.
    You got /3 concepts.