Search Header Logo

DBMS Enhancement Quiz

Authored by Agnes Gonzales

Other

University

Used 3+ times

DBMS Enhancement Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

33 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How to Create a Database.

ALTER DATABASE myDB READ ONLY = 1;

CREATE DATABASE myDB READ ONLY = 0;

CREATE DATABASE myDB;

DROP DATABASE myDB;

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How to set a Database as Read Only, type:

ALTER DATABASE myDB READ ONLY = 1;

ALTER DATABASE myDB READ ONLY = 0;

CREATE DATABASE myDB;

DROP DATABASE myDB;

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How to delete a Database.

ALTER DATABASE myDB READ ONLY = 1;

ALTER DATABASE myDB READ ONLY = 0;

DEL DATABASE myDB;

DROP DATABASE myDB;

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How to create a table with employees data tuples in Database.

CREATE TABLE employees (

employee_id,

first_name,

last_name,

hourly_pay,

hire_date

);

ALTER TABLE CREATE TABLE employees (

employee_id,

first_name,

last_name,

hourly_pay,

hire_date

);

DROP TABLE employees (

employee_id,

first_name,

last_name,

hourly_pay,

hire_date

);

UPDATE TABLE employees (

employee_id,

first_name,

last_name,

hourly_pay,

hire_date

);

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How to rename a table from employees to workers.

RENAME TABLE employees TO workers;

ALTER TABLE employees TO workers;

UPDATE TABLE employees TO workers;

SELECT TABLE employees TO FROM workers;

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

How to add columns in the employees table with phone number with correct data type.

INSERT TABLE employees

ADD phone_number DECIMALS(15);

UPDATE TABLE employees

ADD phone_number VARCHAR(15);

ALTER TABLE employees

ADD phone_number INT(15);

ALTER TABLE employees

ADD phone_number VARCHAR(15);

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

How to rename column name in the employees table with phone number to email.

MODIFY TABLE employees

RENAME COLUMN phone_number to email;

UPDATE TABLE employees

RENAME COLUMN phone_number to email;

ALTER TABLE employees

RENAME COLUMN phone_number to email;

ALTER TABLE employees

INSERT phone_number to email;

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?