CS404 T09a

CS404 T09a

Professional Development

10 Qs

quiz-placeholder

Similar activities

Database Objects

Database Objects

Professional Development

10 Qs

FinTech 07-1 SQL

FinTech 07-1 SQL

Professional Development

10 Qs

NormalizationDB

NormalizationDB

Professional Development

12 Qs

DataBase Day3

DataBase Day3

Professional Development

15 Qs

Data Analysis Fundamental using Excel

Data Analysis Fundamental using Excel

Professional Development

12 Qs

Excel Module 4 Vocabulary

Excel Module 4 Vocabulary

12th Grade - Professional Development

12 Qs

html_tables

html_tables

Professional Development

10 Qs

MS Excel - Dashboard 2020

MS Excel - Dashboard 2020

10th Grade - Professional Development

11 Qs

CS404 T09a

CS404 T09a

Assessment

Quiz

Computers

Professional Development

Hard

Created by

mike wong

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

1. What is the correct SQL command to create a new table named EMP with columns empno and ename?

CREATE EMP (empno, ename);

CREATE TABLE EMP (empno NUMBER, ename VARCHAR2(20));

CREATE TABLE EMP VALUES (empno, ename);

NEW TABLE EMP (empno NUMBER, ename CHAR);

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

2. Which SQL keyword is used to remove a table from the database?

REMOVE

DELETE

TRUNCATE

DROP

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

3. What happens when you use the TRUNCATE TABLE emp command?

The table structure is deleted

All data is removed but the table remains

The table is locked

Only the first row is deleted

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

4. What is the maximum length for a VARCHAR2 field in Oracle?

256

1000

2000

4000

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

5. Which of the following statements defines a PRIMARY KEY constraint at table level?

PRIMARY KEY empno

CONSTRAINT pk_emp PRIMARY KEY (empno)

PRIMARY (empno)

CONSTRAINT PRIMARY KEY (empno)

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

6. Which of the following is a valid CHECK constraint?

CHECK salary < 10000

CHECK (salary > 0)

CHECK salary IS NOT NULL

CHECK (salary = 'HIGH')

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

7. What does the following statement do?
ALTER TABLE emp DROP COLUMN project;

Deletes the project column from emp

Deletes the entire emp table

Renames the column

Converts column type

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?