In Syntax:
SELECT column_name(s)
FROM table_name
WHERE column_name IN (value1,value2,value3,...)
Employee table:
EMPLOYEE_ID | NAME | DEP_ID |
---|---|---|
1 | John | 33 |
2 | Samantha | 34 |
3 | Bill | 35 |
4 | James | 36 |
5 | Sandra | 37 |
In Example:
SELECT * FROM employee
WHERE name IN ('Samantha', 'Bill', 'Sandra');
In Result:
2 | Samantha | 34 |
3 | Bill | 35 |
5 | Sandra | 37 |