SESSION NAME: Sub Queries.
QUESTION NAME: Sub Query - 1.
TABLE DESCRIPTION:
name ) for those employees who gets more salary than
the employee whose ID is 163
Table name = sub_employees
Use Sub Queries
CODE:
select first_name, last_name from sub_employees where salary > (select salary from sub_employees where employee_id = 163);
0 Comments