w3resource
SQL exercises

SQL: Find the data of employees whose last name is 'Snares'

SQL Basic Select Statement : Exercise-32 with Solution.

Write a query in SQL to find the data of employees whose last name is 'Snares'.

Sample table: emp_details

 

Sample Solution :

SELECT * 
 FROM emp_details 
  WHERE emp_lname= 'Snares';

Output:

Find the employees for a particular department

Query Visualization:

Duration:

Query visualization of Find the data of employees whose last name is 'Snares' - Duration

Rows:

Query visualization of Find the data of employees whose last name is 'Snares' - Rows

Cost:

Query visualization of Find the data of employees whose last name is 'Snares' - 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 last name of all employees, without duplicates.
Next: Write a query in SQL to display all the data of employees that work in the department 57.

What is the difficulty level of this exercise?



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