Write a query that prints a list of employee names (i.e.: thenameattribute) for employees inEmployeehaving a salary greater than $2000per month who have been employees for less than 10 months. Sort your result by ascendingemployee_id.
(Employee 테이블에서 name을 뽑아라. 일한지 10개월 미만의 월급이 $2000가 넘는 직원. employee_id로 오름차순.)
Input Format
TheEmployeetable containing employee data for a company is described as follows:
whereemployee_idis an employee's ID number,nameis their name,monthsis the total number of months they've been working for the company, andsalaryis the their monthly salary.
Sample Input
❗답
SELECT name
FROM Employee
WHERE salary > 2000 AND
months < 10
ORDER BY employee_id