DBMS Enhancement Quiz

DBMS Enhancement Quiz

University

33 Qs

quiz-placeholder

Similar activities

What is System Administration?

What is System Administration?

University

30 Qs

TrainingQIZZ(HCM22_FR_NET_01)

TrainingQIZZ(HCM22_FR_NET_01)

University - Professional Development

32 Qs

[TPLUS]_DB_MD02_Session03

[TPLUS]_DB_MD02_Session03

University

30 Qs

SQL (76-103)

SQL (76-103)

University

28 Qs

Database Systems Quiz SE(Blue)

Database Systems Quiz SE(Blue)

University

30 Qs

MySql VS PostGress Day-1F

MySql VS PostGress Day-1F

University

30 Qs

The Relational Database Model

The Relational Database Model

University

34 Qs

MIABD1

MIABD1

University

35 Qs

DBMS Enhancement Quiz

DBMS Enhancement Quiz

Assessment

Quiz

Other

University

Medium

Created by

Agnes Gonzales

Used 3+ times

FREE Resource

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;

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?