top of page

SQL Queries #2

  • Prasanta Paul (Quality Test Engineer)
  • Apr 30, 2018
  • 1 min read

SQL query to fetch employee names having salary greater than or equal to 10000 and less than or equal 30000.

Table_Structure

Query:-

SELECT emp_id, emp_name FROM emp WHERE emp_id IN (SELECT empid FROM sal WHERE salary BETWEEN 10000 AND 30000);

Comments


bottom of page