Write a query in SQL to list the name and salary of FRANK if his salary is equal to max_sal of his grade
- برمجة سي كيو ال sql
- 2021-09-06
- mhanasmh00489829403
الأجوبة
SELECT e.emp_name,
e.salary
FROM employees e,
salary_grade s
WHERE e.emp_name = 'FRANK'
AND e.salary BETWEEN s.min_sal AND s.max_sal
AND e.salary = s.max_sal ;
Sample Output:
emp_name | salary ----------+--------- FRANK | 3100.00 (1 row)
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال