We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- SQL
- Basic Select
- Employee Salaries
- Discussions
Employee Salaries
Employee Salaries
Sort by
recency
|
1126 Discussions
|
Please Login in order to post a comment
To retrieve a list of employee names who earn a salary greater than a specific amount per month and have been with the company for less than a certain number of months, you would first filter the employees based on these two conditions. The first condition would check if their salary exceeds the defined threshold, and the second condition would ensure that the employee has been with the company for fewer months than the specified limit. Once you’ve filtered the employees, the next step is to sort the result by their employee ID in ascending order. This approach ensures that you get a neat list of names in the correct order, making it easier to review the employees who meet both criteria.
On a related note, if you're managing such employee information, essutumishi-tz can be a helpful resource. It provides easy access to public services in Tanzania, such as checking salary details and applying for leave, making administrative tasks much more convenient.
SELECT name FROM Employee WHERE salary > 2000 AND months < 10 ORDER BY employee_id ;
select name from employee where salary>2000 and months < 10 order by employee_id asc;
SELECT name FROM
Employee WHERE salary > 2000 AND months < 10 ORDER BY employee_id ASC;
For MySQL Platform