Академический Документы
Профессиональный Документы
Культура Документы
Answer saved
Marked out of 1.00
Flag question
Question text
Question 2
Answer saved
Marked out of 1.00
Flag question
Question text
Suppose that a user wanted to insert a new value using the explicit method which of the
following is the correct example.
Select one:
a. INSERT INTO STUDENTS VALUES (10, NULL,’ELENA’,NULL);
b. INSERT INTO STUDENTS VALUES (10,’ELENA’)
c. INSERT INTO STUDENTS VALUES (USN_ID, FIRSTNAME)
(10,’ELENA’)
d. INSERT INTO STUDENST(USN_ID, FIRSTNAME)
VALUES(10,’ELENA’)
Question 3
Answer saved
Marked out of 1.00
Flag question
Question text
Question 4
Answer saved
Marked out of 1.00
Flag question
Question text
Suppose that a user uses the DELETE statement as shown below: what is/are the possible
output.
Select one:
a. All rows are deleted but the table is still intact.
b. 0 rows are deleted.
c. 0 rows are updated.
d. All rows are deleted including table structure.
Question 5
Answer saved
Marked out of 1.00
Flag question
Question text
Which of the following is the correct example of inserting new values to STUDENTS table
where the course is set to NULL;
Select one or more:
a. INSERT INTO STUDENTS (1,'DELA CRUZ','JUANITO',NULL);
b. INSERT INTO STUDENTS VALUES(1,'DELA CRUZ','JUANITO',NULL);
c. INSERT INTO STUDENTS (1,'DELA CRUZ','JUANITO','NULL');
d. INSERT INTO STUDENTS VALUES(1,'DELA CRUZ','JUANITO','NULL');
Question 6
Answer saved
Marked out of 1.00
Flag question
Question text
Which of the following is the correct example of adding a new column ADDRESS
datatypevarchar size 20 to EMPLOYEES table?
Select one:
a. ALTER EMPLOYEES
Flag question
Question text
Which of the following is the correct example of creating a new table STUDENTS? The
column STUD_ID is set to primary key.
Select one:
a. CREATE TABLE STUDENTS( STUD_ID NUMBER(3) datatypePRIMARY KEY);
b. CREATE TABLE STUDENTS( STUD_ID NUMBER(3) pk);
c. CREATE STUDENTS( STUD_ID NUMBER(3) PRIMARY KEY);
d. CREATE TABLE STUDENTS( STUD_ID NUMBER(3) PRIMARY KEY);
Question 8
Answer saved
Marked out of 1.00
Flag question
Question text
Which of the following is the correct example of renaming the table EMPLOYEES to
WORKERS?
Select one:
a. RENAME EMPLOYEES AS WORKERS;
b. RENAME EMPLOYEES TO WORKERS;
c. ALTER TABLE RENAME EMPLOYEES TO WORKERS;
d. RENAME TABLE EMPLOYEES TO WORKERS;
Question 9
Answer saved
Marked out of 1.00
Flag question
Question text
Which of the following is the correct example of deleting all records in STUDENTS table;
Select one or more:
a. DELETE FROM STUDENTS;
b. DELETE * FROM STUDENTS;
c. DELETE TABLE STUDENTS;
d. DROP TABLE STUDENTS;
Question 10
Answer saved
Marked out of 1.00
Flag question
Question text
A type of insert statement that specify the NULL keyword in the VALUES clause.
Select one:
a. Implicit
b. Explicit
c. included
d. Excluded
8/10