DBMS Enhancement Quiz

DBMS Enhancement Quiz

University

33 Qs

quiz-placeholder

Similar activities

HRE002 - QUIZ#1

HRE002 - QUIZ#1

University

30 Qs

Access

Access

University

30 Qs

Random Trivia #1

Random Trivia #1

KG - University

28 Qs

Level  II

Level II

University

34 Qs

Doctor Strange

Doctor Strange

KG - Professional Development

37 Qs

Computer Fundamentals

Computer Fundamentals

University

30 Qs

Directing in Pharmacy Management

Directing in Pharmacy Management

University

30 Qs

Pop Quiz

Pop Quiz

University

31 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?