Such A Newbie - Need to Use a Salary Range to Give Employee Salary Grade
Okay guys, don't laugh too hard lol. I am taking a class on SQL. I am very new to it. My assignment says this.
3. Display grade_id, last_name, and salary of all employees. Sort by grade_id and salary. You will need to use salary to determine what grade the employee falls into.
This is the code I have so far:
SELECT LAST_NAME, GRADE_ID, SALARY
FROM DEMO.EMPLOYEE, DEMO.SALARY_GRADE
ORDER BY last_name
Here is a photo of the tables I am working with:
How do I translate in code that I want SQL to take the employee's salary and put it in between a range of salary to determine the grade? Sorry I know it's probably something very simple.
Re: Such A Newbie - Need to Use a Salary Range to Give Employee Salary Grade
Figured this one out.
|All times are GMT +5.5. The time now is 01:44.|