
CS404 T09a

Quiz
•
Computers
•
Professional Development
•
Hard

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
Similar Resources on Wayground
15 questions
Advanced SQL Quiz

Quiz
•
Professional Development
6 questions
BD_SEM3_S1

Quiz
•
Professional Development
8 questions
Variables

Quiz
•
1st Grade - Professio...
7 questions
Network and Security

Quiz
•
Professional Development
10 questions
Quiz Ms Excel

Quiz
•
Professional Development
10 questions
DB2 (5/4)

Quiz
•
Professional Development
10 questions
SQL Commands - SELECT Statements

Quiz
•
Professional Development
10 questions
SQL Database - Basic

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade