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.

5 lines
238 B
SQL

/*2. Write a query in SQL to display the first and last_name, department number and
salary for those employees who earn more than 8000. */
SELECT first_name,last_name, department_id, salary
FROM employees
WHERE salary > 8000;