-- select all data from the employees table. select * from employees; -- select all data from the departments table. select * from departments; -- select all data ...
Well, if you happen to be using Sql Server you can do that sort of thing in T-Sql. In Oracle, you can also accomplish the same thing using pl/sql. Either way i'd do it in a stored ...
WHEN es.Annual_Salary > 100000 THEN 'High Earning' WHEN es.Annual_Salary BETWEEN 90000 AND 100000 THEN 'Middle Earning' ...