"if you encounter any errors in SAP, send me a screenshot at pramod@learntosap.com, and I will help you resolve the issue."

SQL IN Operator

SQL TUTORIALS-

SQL IN Operator

Introduction-


Trulli Trulli

-βœ…IN operator allows you to specify multiple values in a WHERE clause.It is a shorthand for multiple OR conditions.


Emoji Examples in HTML

πŸ”Έ Example Table: Employee


ID Name CITY DEPARTMENT
1 ANNI PUNE IT
2 SUJAN MUMBAI HR
3 BOULT DELHI IT

βœ… Example 1: Employees in Mumbai or Pune-



SELECT * FROM Employees
WHERE City IN ('Mumbai', 'Pune');

βœ…Result Show :-

Result β†’ ANNI | SUJAN |


βœ… Example 2: Employee IDs 1, 3,-



SELECT * FROM Employees
WHERE EmployeeID IN (1, 3);

βœ…Result Show :-

Result β†’ SUJAN | BOULT |


βœ… Example 3: Names in a given list-



SELECT * FROM Employees
WHERE Name IN ('Anni', 'Boult');



βœ…Result Show :-

Result β†’ ANNI |BOULT |


βœ… 4. Find employees NOT in Sales or Finance-



SELECT * FROM Employees
WHERE Department NOT IN ('Sales', 'Finance');

βœ…Result Show :-

Result β†’ ANNI | SUJAN | BOULT |


May Be Like Important Link-

-How To Import Data(LSMW) LEGACY SYSTEM MIGRATION WORKBENCH

-Define Condition Type-OBYZ

-Genral Ledger Chart Of Accounts-OBD4

-Document 90039783 saved (no accounting document generated)