Which command is used to rollback the last transaction?
SQL and Database Quiz

Quiz
•
Computers
•
University
•
Medium
Pavan Madhvesh
Used 5+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
COMMIT;
ROLLBACK;
SAVEPOINT;
UNDO;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How to add a primary key constraint to an existing table?
ALTER TABLE Employee ADD PRIMARY KEY (EMPNO);
ALTER Employee ADD PRIMARY KEY (EMPNO);
ADD PRIMARY KEY TO Employee (EMPNO);
ALTER Employee TABLE ADD PRIMARY KEY (EMPNO);
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How to add a NOT NULL constraint to a column?
ALTER TABLE Employee ADD CONSTRAINT NOT NULL (EMPNO);
ALTER TABLE Employee MODIFY EMPNO NOT NULL;
ALTER TABLE Employee ADD NOT NULL (EMPNO);
ALTER Employee MODIFY COLUMN EMPNO NOT NULL;
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command is used to insert a new record into a table?
INSERT INTO Employee VALUES (101, 'John', 'Manager', 1001, 5000, NULL);
ADD INTO Employee VALUES (101, 'John', 'Manager', 1001, 5000, NULL);
INSERT INTO Employee SET (101, 'John', 'Manager', 1001, 5000, NULL);
INSERT INTO Employee SET VALUES (101, 'John', 'Manager', 1001, 5000, NULL);
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How to add a new column to an existing table?
ALTER TABLE Employee ADD COLUMN commission DECIMAL(10,2);
ALTER Employee ADD COLUMN commission DECIMAL(10,2);
ALTER TABLE Employee MODIFY commission DECIMAL(10,2);
ALTER Employee TABLE ADD COLUMN commission DECIMAL(10,2);
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How to update the details of a column in a table?
UPDATE Employee SET JOB = 'Developer' WHERE EMPNO = 101;
MODIFY Employee SET JOB = 'Developer' WHERE EMPNO = 101;
CHANGE Employee SET JOB = 'Developer' WHERE EMPNO = 101;
ALTER Employee SET JOB = 'Developer' WHERE EMPNO = 101;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How to rename a column in a table?
ALTER TABLE Employee RENAME COLUMN commission TO bonus;
CHANGE Employee RENAME COLUMN commission TO bonus;
MODIFY Employee RENAME COLUMN commission TO bonus;
RENAME Employee RENAME COLUMN commission TO bonus;
Create a free account and access millions of resources
Similar Resources on Quizizz
18 questions
Lv1 Chapter 3 Basics of SQL

Quiz
•
University
10 questions
Veri Tabanı Yönetim Sistemleri II Quiz 1

Quiz
•
University
19 questions
Database Management Systems

Quiz
•
University
20 questions
Parallel & Distributed Database

Quiz
•
University
10 questions
SQL Queries

Quiz
•
University
11 questions
CH8 of database

Quiz
•
University
20 questions
DBMS LAB

Quiz
•
University
10 questions
SQL

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade