w3resource
SQL exercises

SQL: Display all the data of employees that work in the department 57

SQL Basic Select Statement : Exercise-33 with Solution.

Write a query in SQL to display all the data of employees that work in the department 57.

Sample table : emp_details

 

Sample Solution :

SELECT * 
 FROM emp_details 
  WHERE emp_dept= 57;

Output:

Find the employees for a particular department

Query Visualization:

Duration:

Query visualization of Display all the data of employees that work in the department 57 - Duration

Rows:

Query visualization of Display all the data of employees that work in the department 57 - Rows

Cost:

Query visualization of Display all the data of employees that work in the department 57 - Cost

Practice Online


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

Previous: Write a query in SQL to find the data of employees whose last name is 'Snares'.
Next: SQL Boolean and Relational Operators Exercises Home

What is the difficulty level of this exercise?



New Content: Composer: Dependency manager for PHP, R Programming