Documente Academic
Documente Profesional
Documente Cultură
Answer saved
Marked out of 1.00
Flag question
Question text
Which of the following is the correct example of removing a column SALARY from
EMPLOYEES table?
Select one:
a. ALTER EMPLOYEES
DROP SALARY;
c. ALTER EMPLOYEES
DROP SALARY;
Question 2
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. Excluded
b. Implicit
c. Explicit
d. included
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
Question 5
Answer saved
Marked out of 1.00
Flag question
Question text
Which of the following is not true about ALTER statement?
Select one:
a. Define a default value for the new column
b. Drop a column
c. Modify an existing column definition
d. Insert new row in a table
Question 6
Answer saved
Marked out of 1.00
Flag question
Question text
Question 7
Answer saved
Marked out of 1.00
Flag question
Question text
Which of the following is the correct example of updating the COURSE to ‘N/A’ of all
students from STUDENTS table whose course IS NULL;
Select one:
a. UPDATE TABLE STUDENTS
b. UPDATE STUDENTS
d. UPDATE STUDENTS
Question 8
Answer saved
Marked out of 1.00
Flag question
Question text
Question 9
Answer saved
Marked out of 1.00
Flag question
Question text
Which of the following is the correct example of deleting a student record from STUDENTS
table whose COURSE is equal to NULL;
Select one:
a. DELETE FROM STUDENTS
Question 10
Answer saved
Marked out of 1.00
Flag question
Question text
Which of the following is the correct example inserting a new value to STUDENTS table that
will only add new data to STUD_ID and LASTNAME? The stud_id is 10 and lastname is
‘CRUZ’
Select one:
a. INSERT INTO STUDENTS VALUES (STUD_ID,LASTNAME)
(10,’CRUZ’);
VALUES(10,’CRUZ’);
Question 11
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 12
Answer saved
Marked out of 1.00
Flag question
Question text
Which of the following is the correct example of dropping the table EMPLOYEES?
Select one:
a. ALTER TABLE DROP TABLE EMPLOYEES;
b. DROP EMPLOYEES;
c. DROP TABLE EMPLOYEES;
d. ALTER TABLE DROP EMPLOYEES;
Question 13
Answer saved
Marked out of 1.00
Flag question
Question text
Question 14
Answer saved
Marked out of 1.00
Flag question
Question text
Which of the following is the correct example of truncating the table EMPLOYEES?
Select one:
a. ALTER TABLE TRUNCATE TABLE EMPLOYEES;
b. TRUNCATE EMPLOYEES;
c. TRUNCATE TABLE EMPLOYEES;
d. ALTER TABLE TRUNCATE EMPLOYEES;
Question 15
Answer saved
Marked out of 1.00
Flag question
Question text
Question 16
Answer saved
Marked out of 1.00
Flag question
Question text
He proposed the relational model for database systems in 1970.
Select one:
a. DrcL.F Codd
b. Dr. E.F Codd
c. Dr. Lee Codd
d. Dr. J.F Codd
Question 17
Answer saved
Marked out of 1.00
Flag question
Question text
This is also known as facts that can be recorded and that have implicit meaning.
Data
Answer:
Question 18
Answer saved
Marked out of 1.00
Flag question
Question text
Question 19
Answer saved
Marked out of 1.00
Flag question
Question text
Which of the following is not part of transaction control?
Select one:
a. SAVEPOINT
b. CREATE
c. COMMIT
d. ROLLBACK
Question 20
Answer saved
Marked out of 1.00
Flag question
Question text
Suppose that a user wanted to add a new column name as CITY datatype set to char size
10. Which of the following is the correct sql statement?
Select one:
a. ALTER TABLE STUDENTS
ADD COLUMN CITY VARCHAR(10);
b. ALTER TABLE STUDENTS
ADD CITY VARCHAR(10);
c. ALTER TABLE STUDENTS
ADD CITY CHAR(10);
d. ALTER TABLE STUDENTS
ADD COLUMN CITY CHAR(10);
Question 21
Answer saved
Marked out of 1.00
Flag question
Question text
A type of insert statement that omit the column from the column list.
Select one:
a. Implicit
b. included
c. Excluded
d. Explicit
Question 22
Answer saved
Marked out of 1.00
Flag question
Question text
Which of the following is the correct example of removing a column FIRSTNAME from
EMPLOYEES table?
Select one:
a. ALTER EMPLOYEES
FROM N FIRSTNAME;
DROP FIRSTNAME;
d. ALTER EMPLOYEES
Question 23
Answer saved
Marked out of 1.00
Flag question
Question text
Is the underlying the structure of a database.
Data models
Answer:
Question 24
Answer saved
Marked out of 1.00
Flag question
Question text
Question 25
Answer saved
Marked out of 1.00
Flag question
Question text
Question 26
Answer saved
Marked out of 1.00
Flag question
Question text
Question 27
Answer saved
Marked out of 1.00
Flag question
Question text
Question 28
Answer saved
Marked out of 1.00
Flag question
Question text
Suppose that a user wanted to update the lastname of student to ‘Santos’ and YR_LVL to
‘Irreg’ whose USN_ID is equal to 50, in one select statement which of the following is the
correct sql statement to use.
Select one:
a. UPDATE STUDENTS
SET LASTNAME = ‘SANTOS’, SET YR_LVL = ‘IRREG’
WHERE USN_ID = 50;
b. UPDATE STUDENTS
SET LASTNAME = ‘SANTOS’, SET YR_LVL = ‘IRREG’;
c. UPDATE STUDENTS
SET LASTNAME = ‘SANTOS’, YR_LVL = ‘IRREG’;
d. UPDATE STUDENTS
SET LASTNAME = ‘SANTOS’, YR_LVL = ‘IRREG’
WHERE USN_ID = 50;
Question 29
Answer saved
Marked out of 1.00
Flag question
Question text
Which of the following is the correct example inserting a new value to STUDENTS table that
will only add new data to STUD_ID and LASTNAME? The stud_id is 10 and lastname is
'CRUZ' and the rest of the column is set to NULL.
Select one or more:
a. INSERT INTO STUDENTS VALUES (10,'CRUZ','NULL','NULL');
b. INSERT INTO STUDENTS TABLE VALUES (10,'CRUZ','NULL','NULL');
c. INSERT INTO STUDENTS (10,'CRUZ',NULL,NULL);
d. INSERT INTO STUDENTS VALUES (10,'CRUZ',NULL,NULL);
Question 30
Answer saved
Marked out of 1.00
Flag question
Question text