dep_id | dep_name | dep_location --------+------------+-------------- 1001 | FINANCE | SYDNEY 2001 | AUDIT | MELBOURNE 3001 | MARKETING | PERTH 4001 | PRODUCTION | BRISBANE (4 rows)
- برمجة سي كيو ال sql
- 2021-09-06
- mhanasmh00489829403
الأجوبة
SELECT e.emp_id,
e.emp_name,
e.dep_id,
e.salary,
d.dep_location
FROM employees e,
department d
WHERE e.dep_id = d.dep_id
AND d.dep_location IN ('SYDNEY',
'MELBOURNE')
AND to_char(e.hire_date,'YY') = '91'
AND e.salary BETWEEN 2000 AND 5000;
Sample Output:
emp_id | emp_name | dep_id | salary | dep_location --------+----------+--------+---------+-------------- 67832 | CLARE | 1001 | 2550.00 | SYDNEY 65646 | JONAS | 2001 | 2957.00 | MELBOURNE 69062 | FRANK | 2001 | 3100.00 | MELBOURNE (3 rows)
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال