
DBMS-1

Quiz
•
Computers
•
University
•
Hard
RAVINDER B
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is not allowed when a table already has data in it?
ALTER TABLE ADD COLUMN
ALTER TABLE DROP COLUMN
ALTER TABLE RENAME COLUMN
ALTER TABLE MODIFY COLUMN data type
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What does the following SQL command do?
TRUNCATE TABLE employees;
Deletes all rows and can't be rolled back
Deletes all rows and can be rolled back
Deletes the table structure and data
Deletes rows based on WHERE clause
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the result of this query?
SELECT * FROM students WHERE marks = NULL;
All rows with marks = NULL
Syntax error
No rows selected
Only NULL rows returned
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which DML command can insert multiple rows in one statement?
INSERT INTO ... VALUES
INSERT ALL
INSERT EACH
APPEND ROWS
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which query will give you the 3rd highest salary from a salaries table?
SELECT salary FROM salaries ORDER BY salary DESC LIMIT 3;
SELECT MAX(salary) FROM salaries LIMIT 2,1;
SELECT salary FROM (SELECT DISTINCT salary FROM salaries ORDER BY salary DESC LIMIT 2,1);
SELECT salary FROM salaries OFFSET 2 ROWS FETCH NEXT 1 ROW ONLY;
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following commands creates a new copy of a table with only structure and no data?
CREATE TABLE new_table LIKE old_table;
CREATE TABLE new_table AS SELECT * FROM old_table;
SELECT * INTO new_table FROM old_table;
CREATE TABLE new_table FROM old_table;
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the effect of this command: DELETE FROM orders WHERE 1=1;
Deletes no rows
Deletes all rows
Deletes only rows with ID=1
Causes syntax error
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
UTS Basis Data II - ITM

Quiz
•
University
10 questions
MS office

Quiz
•
University
14 questions
Maya 3D 2019 Interface

Quiz
•
9th Grade - University
10 questions
QUIZ ON SQL

Quiz
•
University
15 questions
Chapter : 9 Working with tables

Quiz
•
5th Grade - University
9 questions
SQL MCQ

Quiz
•
University
10 questions
SYS 1591

Quiz
•
University
14 questions
Table Formatting

Quiz
•
KG - University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade