Question Text: Clear My Choice
Question Text: Clear My Choice
Question Text: Clear My Choice
Answer saved
Marked out of 1.00
Flag question
Question text
This is a join clause used when the columns in two or more tables have the same but of
different data type.
Select one:
a. Outer Join
b. Using
c. ON
d. Inner Join
Clear my choice
Question 2
Answer saved
Marked out of 1.00
Flag question
Question text
Which of the following is the correct example of creating a subquery that copy the values
from employees table to workers table?
Select one:
a. INSERT INTO WORKERS(ID, NAME, POSITION)
VALUES (ID, NAME, POSITION
FROM EMPLOYEES);
b. INSERT INTO WORKERS(ID, NAME, POSITION)
FROM EMPLOYEES;
c. INSERT INTO WORKERS(ID, NAME, POSITION)
SELECT (ID, NAME, JOB_TITLE
FROM EMPLOYEES);
d. INSERT INTO WORKERS(ID, NAME, POSITION)
SELECT (ID, NAME, POSITION
FROM EMPLOYEES);
Clear my choice
Question 3
Answer saved
Marked out of 1.00
Flag question
Question text
A type of model that is based on the notion of real-world entities and relationships among
them.
Select one:
a. Entity Relationship Model
b. Entity Relationship Diagram
c. Data Model
d. Database Schema
Clear my choice
Question 4
Answer saved
Marked out of 1.00
Flag question
Question text
Which of the following is not true about complex view when using DELETE statement?
Select one:
a. All of the choices
b. You cannot modify data in a view if it contains a GROUP BY clause
c. You cannot modify data in a view if it contains a distinct keyword.
d. You cannot modify data in a view if it contains group functions
Clear my choice
Question 5
Answer saved
Marked out of 1.00
Flag question
Question text
Supposed that table: Workers and Employees is consists of the following values.
What will be the output if the user uses this PL/SQL.
DELETE FROM WORKERS
WHERE LASTNAME = (SELECT LASTNAME FROM EMPLOYEES WHERE
LASTNAME=Cruz’)
Select one:
a. Employee in Workers table with lastname equal to Cruz will be deleted.
b. Employee in Employees table with lastname equal to Cruz will be deleted.
c. 0 rows are deleted in Employees table
d. 0 rows are deleted in Workers table
Clear my choice
Question 6
Answer saved
Marked out of 1.00
Flag question
Question text
Select one:
a. The given statement is Outer Join
b. The given statement is an Equijoin
c. The given statement would cause Cartesian or Cross Join
d. The given statement is not a valid join condition or is incorrect
Clear my choice
Question 7
Answer saved
Marked out of 1.00
Flag question
Question text
A join condition that is based on all the columns in two or more table that have the same
name.
Select one:
a. Self-Join
b. Cross Join
c. Natural Join
d. Cartesian Product
Clear my choice
Question 8
Answer saved
Marked out of 1.00
Flag question
Question text
This is a type of attribute that is atomic value, which cannot be divided further.
Select one:
a. Composite Attribute
b. Derived Attribute
c. Simple Attribute
d. Natural Attribute
Clear my choice
Question 9
Answer saved
Marked out of 1.00
Flag question
Question text
It is the skeleton structure that represents the logical view of the entire database.
Select one:
a. Data Model
b. Database Schema
c. Entity Relationship Model
d. Entity Relationship Diagram
Clear my choice
Question 10
Answer saved
Marked out of 1.00
Flag question
Question text
Which of the following is not true about complex view when using UPDATE statement?
Select one:
a. You cannot modify data in a view if it contains a GROUP BY clause
b. You cannot modify data in a view if it contains group functions
c. All of the choices
d. You cannot modify data in a view if it contains column defined expression
Clear my choice
Question 11
Answer saved
Marked out of 1.00
Flag question
Question text
This is a join clause used when the columns in two or more tables have the same but of
different data type.
Select one:
a. Using
b. Inner Join
c. Outer Join
d. ON
Clear my choice
Question 12
Answer saved
Marked out of 1.00
Flag question
Question text
Select one:
a. The given statement is an Equijoin
b. The given statement is Outer Join
c. The given statement would cause Cartesian or Cross Join
d. The given statement is not a valid join condition or is incorrect
Clear my choice
Question 13
Answer saved
Marked out of 1.00
Flag question
Question text
Supposed that table: Workers and Employees is consists of the following values.
Which of the following is the correct example of copying data from WORKERS table to
EMPLOYEES table where the status is equal to ‘Regular’?
Select one:
a. INSERT INTO EMPLOYEES (ID, LASTNAME, DEPARTMENT)
VALUES (SELECT ID, LASTNAME, DEPARTMENT
FROM WORKERS
WHERE STATUS = ‘Regular’);
b. INSERT INTO EMPLOYEES VALUES (ID, LASTNAME, DEPARTMENT)
SELECT ID, LASTNAME, DEPARTMENT
FROM WORKERS
WHERE STATUS = ‘Regular’;
c. INSERT INTO EMPLOYEES(ID, LASTNAME, DEPARTMENT)
SELECT *
FROM WORKERS
WHERE STATUS = ‘Regular’;
d. INSERT INTO EMPLOYEES(ID, LASTNAME, DEPARTMENT)
SELECT ID, LASTNAME, DEPARTMENT
FROM WORKERS
WHERE STATUS = ‘Regular’;
Clear my choice
Question 14
Answer saved
Marked out of 1.00
Flag question
Question text
In the given complex view example what will be the possible output if this code is run?
CREATE OR REPLACE VIEW DEPT_EMP
AS (SELECT EMPLOYEE_ID, LASTNAME, DEPARTMENT_NAME
FROM EMPLOYEES JOIN DEPARTMENT)
Select one:
a. Cause an error because the JOIN condition is omitted.
b. Missing with CHECK OPTION
c. It will successfully create the view that join 1 table to another table.
d. The OR REPLACE on the code should be omitted.
Clear my choice
Question 15
Answer saved
Marked out of 1.00
Flag question
Question text
Select one:
a. Database Instance
b. Data Instance
c. Logical Data Instance
d. Physical Data Instance
Clear my choice
Question 16
Answer saved
Marked out of 1.00
Flag question
Question text
SELECT employees.employee_id, employees.lastname,employees.department_id,
departments.department_id,departments.location_id
FROM employees RIGHT OUTER JOIN departments
ON( employees.department_id = departments.department_id);
Select one:
a. The given statement would cause Cartesian or Cross Join
b. The given statement is not a valid join condition or is incorrect
c. The given statement is an Equijoin
d. The given statement is Outer Join
Clear my choice
Question 17
Answer saved
Marked out of 1.00
Flag question
Question text
This is used to quality ambiguous column when joining two or more tables.
Select one:
a. Column Prefixes
b. Table Prefixes
c. Table Alias
d. Column Alias
Clear my choice
Question 18
Answer saved
Marked out of 1.00
Flag question
Question text
This of the following is not part of comparison condition used in single row subquery.
Select one:
a. <
b. <>
c. >
d. IN
Clear my choice
Question 19
Answer saved
Marked out of 1.00
Flag question
Question text
Select one:
a. The given statement would cause Cartesian or Cross Join
b. The given statement is Outer Join
c. The given statement is not a valid join condition or is incorrect
d. The given statement is an Equijoin
Clear my choice
Question 20
Answer saved
Marked out of 1.00
Flag question
Question text
SELECT employees.employee_id, employees.lastname,employees.department_id,
departments.department_id,departments.location_id
FROM employees, departments
WHERE employees.department_id IN (50, 60, 90);
Select one:
a. The given statement would cause Cartesian or Cross Join
b. The given statement is not a valid join condition or is incorrect
c. The given statement is Outer Join
d. The given statement is an Equijoin
Clear my choice
Question 21
Answer saved
Marked out of 1.00
Flag question
Question text
Select one:
a. Teacher
b. Student
c. SN_ID
d. Department
Clear my choice
Question 22
Answer saved
Marked out of 1.00
Flag question
Question text
It is formed when a join condition is omitted.
Select one:
a. Self-Join
b. Cartesian Product
c. Natural Join
d. Cross Join
Clear my choice
Question 23
Answer saved
Marked out of 1.00
Flag question
Question text
If WITH READ ONLY is added on the view (see sample code below) what is/are the
restriction?
CREATE OR REPLACE VIEW STUD_VIEW (USN_ID, LASTNAME, FIRSTNAME,
COURSE)
AS (SELECT USN_ID, LASTNAME, FIRSTNAME, COURSE
FROM STUDENTS
WHERE COURSE = ‘BSCS’)
WITH READ ONLY;
Select one:
a. SELECT statement is not allowed on this view
b. It restricts the users to add a value where course is equal to BSCS only
c. NO DML operations allowed on this view.
d. It restricts the users to add a value where course is not equal to BSCS
Clear my choice
Question 24
Answer saved
Marked out of 1.00
Flag question
Question text
Refer to the table AUTHORS and COPY_AUTHORS (Note ID column is with Primary Key
constraint). Supposed that the user insert the following values to COPY_AUTHORS view as
shown below what is/are the possible output on both table and view?
INSERT INTO COPY_AUTHORS VALUES (6,'SUSAN CARLOS','OS','2016');
Select one:
a. Automatically set the ID of Susan to NULL
b. 0 rows are added on COPY_AUTHORS view but 1 row is added on AUTHORS table.
c. Unique constraint is violated on AUTHORS table
d. 1 row is added on COPY_AUTHORS view but 0 rows are added on AUTHORS table.
Clear my choice
Question 25
Answer saved
Marked out of 1.00
Flag question
Question text
Which of the following is the correct example of creating a view where LASTNAME ends
with letter S rename LASTNAME to SURNAME?
Select one:
a. CREATE VIEW WORKERS (EMPLOYEE_ID, SURNAME, FIRSTNAME)
AS (EMPLOYEE_ID, LASTNAME, FIRSTNAME
FROM EMPLOYEES
WHERE SALARY LASTNAME LIKE '%S');
b. CREATE VIEW WORKERS (EMPLOYEE_ID, SURNAME, FIRSTNAME)
AS (EMPLOYEE_ID, LASTNAME AS "SURNAME", FIRSTNAME
FROM EMPLOYEES
WHERE SALARY LASTNAME LIKE '%S');
c. CREATE VIEW WORKERS (EMPLOYEE_ID, LASTNAME, FIRSTNAME)
AS (EMPLOYEE_ID, LASTNAME, FIRSTNAME
FROM EMPLOYEES
WHERE SALARY LASTNAME LIKE '%S');
d. CREATE VIEW WORKERS (EMPLOYEE_ID, SURNAME, FIRSTNAME)
AS (EMPLOYEE_ID, LASTNAME, FIRSTNAME
FROM EMPLOYEES
WHERE SALARY LASTNAME LIKE 'S%');
Clear my choice
Question 26
Answer saved
Marked out of 1.00
Flag question
Question text
Select one:
a. >=
b. =
c. IN
d. <>
Clear my choice
Question 27
Answer saved
Marked out of 1.00
Flag question
Question text
Select one:
a. The given statement is not a valid join condition or is incorrect
b. The given statement is Outer Join
c. The given statement would cause Cartesian or Cross Join
d. The given statement is an Equijoin
Clear my choice
Question 28
Answer saved
Marked out of 1.00
Flag question
Question text
Select one:
a. The given statement would cause Cartesian or Cross Join
b. The given statement is Outer Join
c. The given statement is an Equijoin
d. The given statement is not a valid join condition or is incorrect
Clear my choice
Question 29
Answer saved
Marked out of 1.00
Flag question
Question text
It is an attribute or collection of attributes that uniquely identifies an entity among entity set.
Select one:
a. Key
b. Primary Key
c. Candidate Key
d. Super Key
Clear my choice
Question 30
Answer saved
Marked out of 1.00
Flag question
Question text
Based on the table EMPLOYEES, DEPARTMENTS and LOCATIONS.
From the given select statement below: What is/are the full name of employee whose
LOCATION_ID is equal to 1700?
SELECT (LASTNAME||','||FIRSTNAME) AS "FULL NAME", DEPARTMENT_ID,
DEPARTMENT_NAME, LOCATION_ID
FROM EMPLOYEES
NATURAL JOIN DEPARTMENTS;
Select one:
a. GIETZ, WILLIAM
b. LORENTZ, DIANA
c. KOCHAR, NENA and LEX, DE HAAN
d. FAY, PAT and DAVIES, CURTIS
Clear my choice
Question 31
Answer saved
Marked out of 1.00
Flag question
Question text
Supposed that table: Workers and Employees is consists of the following values.
Select one:
a. The department of employee with ID number 105 will be set to NULL
b. All Workers department will be set to NULL
c. All Workers department will be set to HRD
d. There will be no changes on the department of employee ID number 105
Clear my choice
Question 32
Answer saved
Marked out of 1.00
Flag question
Question text
A single row of a table, which contains a single record for that relation.
Select one:
a. Values
b. Cell
c. Tuple
d. Column
Clear my choice
Question 33
Answer saved
Marked out of 1.00
Flag question
Question text
Supposed that table: Workers and Employees is consists of the following values.
What will be the output if the user uses this PL/SQL.
UPDATE WORKERS
SET DEPARTMENT = (SELECT DEPARTMENT FROM EMPLOYEES WHERE
DEPARTMENT =’HR’);
Select one:
a. All Workers department will be set to HRD
b. There will be no changes on the department of employee ID number 105.
c. All Workers department will be set to NULL
d. The department of employee with ID number 105 will be set to NULL
Clear my choice
Question 34
Answer saved
Marked out of 1.00
Flag question
Question text
SELECT EMPLOYEES.EMPLOYEE_ID,
EMPLOYEES.LASTNAME,EMPLOYEES.DEPARTMENT_ID,DEPARTMENTS.DEPARTME
NT_ID,DEPARTMENTS.LOCATION_ID
FROM EMPLOYEES JOIN DEPARTMENTS
ON( EMPLOYEES.DEPARTMENT_ID (+)= DEPARTMENTS.DEPARTMENT_ID);
Select one:
a. The given statement is Outer Join
b. The given statement is an Equijoin
c. The given statement would case Cartesian or Cross Join
d. he given statement is not a valid join condition or is incorrect
Clear my choice
Question 35
Answer saved
Marked out of 1.00
Flag question
Question text
This is used to quality ambiguous column when joining two or more tables.
Select one:
a. Column Alias
b. Table Alias
c. Column Prefixes
d. Table Prefixes
Clear my choice
Question 36
Answer saved
Marked out of 1.00
Flag question
Question text
Supposed that table: Workers and Employees is consists of the following values.
Select one:
a. Employee in Workers table with lastname equal to Cruz will be deleted.
b. Employee in Employees table with lastname equal to Cruz will be deleted.
c. 0 rows are deleted in Employees table
d. 0 rows are deleted in Workers table
Clear my choice
Question 37
Answer saved
Marked out of 1.00
Flag question
Question text
Select one:
a. Multiple row and one row subquery
b. Many row and single subquery
c. One and many row subquery
d. Single row and multiple row subquery
Clear my choice
Question 38
Answer saved
Marked out of 1.00
Flag question
Question text
SELECT employees.employee_id, employees.lastname,employees.department_id,
departments.department_id,departments.location_id
FROM employees LEFT JOIN departments
ON( employees.department_id = departments.department_id);
Select one:
a. The given statement is Outer Join
b. The given statement is not a valid join condition or is incorrect
c. The given statement is an Equijoin
d. The given statement would cause Cartesian or Cross Join
Clear my choice
Question 39
Answer saved
Marked out of 1.00
Flag question
Question text
This is a type of schema defines all the logical constraints that need to be applied on the
data stored. It defines tables, views, and integrity constraints.
Select one:
a. Physical Database Schema
b. Logical Database Schema
c. Logical Data Independence
d. Physical Data Independence
Clear my choice
Question 40
Answer saved
Marked out of 1.00
Flag question
Question text
A join condition used when a table has columns with match values.
Select one:
a. Cartesian Product
b. Self-Join
c. Natural Join
d. Cross Join
Clear my choice
Question 41
Answer saved
Marked out of 1.00
Flag question
Question text
This is a type of attribute that is made of more than one simple attribute.
Select one:
a. Simple Attribute
b. Composite Attribute
c. Natural Attribute
d. Derived Attribute
Clear my choice
Question 42
Answer saved
Marked out of 1.00
Flag question
Question text
Supposed that table: Workers and Employees is consists of the following values.
What will be the output if the user uses this PL/SQL.
SELECT ID, LASTNAME, DEPARTMENT
FROM WORKERS
WHERE ID > (SELECT ID FROM EMPLOYEES WHERE STATUS = ‘Probi’);
Select one:
a. 0 rows are delete in Workers table
b. No rows or 0 rows are Selected
c. This will retrieve the record of Subio, Mortos and Santiago
d. This will retrieve the record of Mortos and Santiago
Clear my choice
Question 43
Answer saved
Marked out of 1.00
Flag question
Question text
Supposed that table: Workers and Employees is consists of the following values.
Which of the following is the correct example of copying data from WORKERS table to
EMPLOYEES table where the status is equal to ‘Regular’?
Select one:
a. INSERT INTO EMPLOYEES (ID, LASTNAME, DEPARTMENT)
VALUES (SELECT ID, LASTNAME, DEPARTMENT
FROM WORKERS
WHERE STATUS = ‘Regular’);
b. INSERT INTO EMPLOYEES VALUES (ID, LASTNAME, DEPARTMENT)
SELECT ID, LASTNAME, DEPARTMENT
FROM WORKERS
WHERE STATUS = ‘Regular’;
c. INSERT INTO EMPLOYEES(ID, LASTNAME, DEPARTMENT)
SELECT ID, LASTNAME, DEPARTMENT
FROM WORKERS
WHERE STATUS = ‘Regular’;
d. INSERT INTO EMPLOYEES(ID, LASTNAME, DEPARTMENT)
SELECT *
FROM WORKERS
Clear my choice
Question 44
Answer saved
Marked out of 1.00
Flag question
Question text
It is join between two tables that return the result of an Inner Join as well as the results of
Left and Right joins.
Select one:
a. ON
b. Using
c. Outer Join
d. Inner Join
Clear my choice
Question 45
Answer saved
Marked out of 1.00
Flag question
Question text
Supposed that table: Workers and Employees is consists of the following values.
Select one:
a. All Workers lastname will be set to NULL
b. The lastname of Cruz from Employees table will be set to NULL
c. The lastname of Cruz from Employees table will be set to Soriano
d. The values of Employee with ID number 105 will be deleted
Clear my choice
Question 46
Answer saved
Marked out of 1.00
Flag question
Question text
Select one:
a. Database Schema
b. Entity Relationship Diagram
c. Entity Relationship Model
d. Data Model
Clear my choice
Question 47
Answer saved
Marked out of 1.00
Flag question
Question text
Select one:
a. SELECT EMPLOYEE_ID, SALARY
FROM EMPLOYEES
WHERE SALARY =(SELECT MIN(SALARY) FROM EMPLOYEES;
b. SELECT EMPLOYEE_ID, MIN(SALARY)
FROM EMPLOYEES;
c. SELECT EMPLOYEE_ID, SALARY
FROM EMPLOYEES
HAVING MIN(SALARY);
d. SELECT EMPLOYEE_ID, MIN(SALARY)
FROM EMPLOYEES
WHERE SALARY =(SELECT MIN(SALARY) FROM EMPLOYEES;
Clear my choice
Question 48
Answer saved
Marked out of 1.00
Flag question
Question text
Select one:
a. The given statement would cause Cartesian or Cross Join
b. The given statement is Outer Join
c. The given statement is not a valid join condition or is incorrect
d. The given statement is an Equijoin
Clear my choice
Question 49
Answer saved
Marked out of 1.00
Flag question
Question text
Which of the following is the correct example of an entity.
Select one:
a. Workers
b. Lastname
c. Accession_no
d. SSS id
Clear my choice
Question 50
Answer saved
Marked out of 1.00
Flag question
Question text
This is a join clause used to specify arbitrary conditions of specify columns to join.
Select one:
a. ON
b. Outer Join
c. Using
d. Inner Join
Clear my choice
76%
38/50