Skip to the content.
< PREVIOUS   NEXT >

IN OPERATOR

The IN operator allows you to specify multiple values in a WHERE clause.

It is a shorthand for multiple OR conditions.

SYNTAX

SELECT column_name(s)
FROM table_name
WHERE column_name IN (value1, value2, ...);

OR:

SELECT column_name(s)
FROM table_name
WHERE column_name IN (SELECT STATEMENT);

EXAMPLE

Suppose there is a Table name as “HrEmployee” having Age, Attrition, BusinessTravel, DailyRate, Department, DistanceFromHome, Education, EducationField columns, EmployeeNumber, etc as Columns.



< PREVIOUS   NEXT >

HOME