w3resource
SQL exercises

SQL exercises on employee Database: Display the details of the employee BLAZE

SQL employee Database: Exercise-14 with Solution

[An editor is available at the bottom of the page to write and execute the scripts.]

14. Write a query in SQL to display the details of the employee BLAZE.

Sample table: employees


Pictorial Presentation:

SQL exercises on employee Database: Display the details of the employee BLAZE

Sample Solution:

SELECT *
FROM employees
WHERE emp_name = 'BLAZE';

Sample Output:

 emp_id | emp_name | job_name | manager_id | hire_date  | salary  | commission | dep_id
--------+----------+----------+------------+------------+---------+------------+--------
  66928 | BLAZE    | MANAGER  |      68319 | 1991-05-01 | 2750.00 |            |   3001
(1 row)

Practice Online


Sample Database: employee

employee database structure

Have another way to solve this solution? Contribute your code (and comments) through Disqus.

Previous: Write a query in SQL to display the average salaries of all the employees who works as ANALYST.
Next: Write a query in SQL to display all the details of the employees whose commission is more than their salary.

What is the difficulty level of this exercise?