Académique Documents
Professionnel Documents
Culture Documents
Which of the following command will delete all records in the table employees
Select one:
. DELETE FROM employees
. Schema
A Database Administrator can create and remove users and tables.
Display employee's name and id whose firstname starts with letter D and job id is IT_PROG.
Sort the output by department.
SELECT employee_id, first_name, last_name FROM employees WHERE first_name
LIKE 'D%' and job_id = 'IT_PROG' ORDER BY department_id
TRUE OR FALSE.
The INSERT statement can add multiple rows.
True
These are privileges that performs a particular action within the database.
System Privileges
Given the DEPARTMENTS table and USER user1, evaluate the SQL command:
GRANT select
ON user1
TO departments;
The SQL command is incorrect
Which of the following SELECT statement is the correct PL/SQL that willcreate a report
specifying only the column PRICE, ONHAND and DESCRIPTION?
SELECT PRICE, ONHAND, DESCRIPTION FROM PARTS;
The General Manager request to the Database Administrator to generate the total number of
parts and total outstanding balance on hand of every class in warehouse number 1&2.
Which of the following SQL command will generate the required output.
SELECT warehouse, class, COUNT(partnum), SUM(onhand) FROM parts GROUP
BY warehouse,class HAVING warehouse = 1 OR warehouse = 2;
Display all the employee id, names of employees ,job id and department nameof all employees
of the Finance Department.
SELECT A.first_name, A.last_name, A.job_id, B.department_name FROM
employees A JOIN departments B ON ( A.department_id = B.department_id) WHERE
B.department_name = 'Finance'
A join between two tables that returns the results of the INNER join as well as
the_______________ rows from the left (or right) table is called a left (or right) OUTER join.
Unmatched
You want to cancel the privilege of matt to retrieve records from the employees table.
REVOKE select ON employees FROM matt;