You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
6 lines
388 B
MySQL
6 lines
388 B
MySQL
5 years ago
|
/*11. Write a query in SQL to display the full name (first and last) name, and salary, for all employees whose salary is out of
|
||
|
the range 7000 and 15000 and make the result set in ascending order by the full name.*/
|
||
|
SELECT first_name || ' ' || last_name as Name, salary
|
||
|
FROM employees
|
||
|
WHERE salary NOT BETWEEN 7000 AND 15000
|
||
|
ORDER BY first_name || ' ' || last_name;
|