
CS404 T09a
Authored by mike wong
Computers
Professional Development
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?