DBMS-1

DBMS-1

University

10 Qs

quiz-placeholder

Similar activities

4.6.4 Logic Gates

4.6.4 Logic Gates

10th Grade - Professional Development

15 Qs

Logic Based Testing

Logic Based Testing

University

15 Qs

Data Structures: Linked Lists and Hashtables

Data Structures: Linked Lists and Hashtables

11th Grade - University

14 Qs

ADVACOMT-Quiz No.1 (final term)

ADVACOMT-Quiz No.1 (final term)

University

15 Qs

SAN Module 4 Quiz

SAN Module 4 Quiz

University

15 Qs

Desain Grafis Kelas ''COVID-19"

Desain Grafis Kelas ''COVID-19"

12th Grade - University

10 Qs

OS(II UNIT)

OS(II UNIT)

University

15 Qs

DBC CHAPTER 3 - REVISION

DBC CHAPTER 3 - REVISION

University

15 Qs

DBMS-1

DBMS-1

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

RAVINDER B

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?