W SQL
SELECT column_name(s)
FROM table_name
WHERE column_name IN (value1, value2, ...);
Delightful Dragonfly
SELECT column_name(s)
FROM table_name
WHERE column_name IN (value1, value2, ...);
SELECT first_name, country
FROM Customers
WHERE country IN ('USA', 'UK');
SELECT EmpId FROM EmployeeDetails
UNION
SELECT EmpId FROM EmployeeSalary;
SELECT EmpId,
Salary+Variable as TotalSalary
FROM EmployeeSalary;
SELECT FullName
FROM EmployeeDetails
WHERE FullName LIKE ‘__hn%’;
(IN) operator in sql like "OR" operator
For example:
Select * From employees
Where department_id "IN" (60,90);