CBSE Class 12 Computer Science Question 11 of 78

Simple Queries in SQL — Question 4

Back to all questions
4
Question

Question 4

Write a query to display the name, job title and salary of employee who do not have manager.

Answer
SELECT ENAME, JOB, SAL
FROM empl
WHERE MGR IS NULL ;
Output
+-------+-----------+------+
| ENAME | JOB       | SAL  |
+-------+-----------+------+
| AMIR  | PRESIDENT | 5000 |
+-------+-----------+------+