Created
September 30, 2020 14:33
-
-
Save Justus-coded/844386061f26dded28de35d6e9d82ceb to your computer and use it in GitHub Desktop.
Hackerrank SQL Challenge
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Write a query that prints a list of employee names (i.e.: the name attribute) for employees in | |
Employee having a salary greater than 2000 per month who have been employees for less than months. | |
Sort your result by ascending employee_id. | |
*/ | |
SELECT name | |
FROM Employee | |
WHERE (salary > 2000) AND (months< 10) | |
ORDER BY employee_id; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment