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 of the Query:

emp_idno	emp_fname	emp_lname	emp_dept
526689		Carlos		Snares		63
328717		Jhon		Snares		63

Practice Online


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

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?