+ 1

SQL QUERY

Display employee name,salary and a remark as alias for (HIGH in case salary greater than 1.5 lac,AVERAGE for salary between 1 to 1.5 lac,and LOW for others).....thanks in advance ....plz help me

27th Mar 2017, 6:43 AM
Kuldeep Kaluvala
Kuldeep Kaluvala - avatar
1 ответ
0
SELECT Name, Salary CASE WHEN salary between 100000 and 150000 THEN 'Avg' WHEN salary<150000 THEN 'High' ELSE 'Low' END FROM customers;
27th Mar 2017, 6:54 AM
Akwin Lopez
Akwin Lopez - avatar