In care din urmatoarele instructiuni SQL se foloseste o vedere in-line?
A. SELECT a.last_name, a.salary, a.department_id, b.salavg
FROM employees a, ( SELECT department_id, AVG(salary) salavg
FROM employees
GROUP BY department_id) b
WHERE a.deparment_id = b. department_id AND a.salary >b.salavg;
B. SELECT employee_id, last_name,
(CASE
WHEN department_id = (SELECT department_id
FROM departments
WHERE location_id =1800) THEN 'Canada'
ELSE 'USA'
END) location
FROM employees;
C. CREATE VIEW ang_80 AS
SELECT * FROM employees
WHERE department_id=80;
Select one or more of the following: