SlideShare a Scribd company logo
By : Dhirendra Chauhan
In Operator In MySql
The IN operator allows you to specify multiple
values in a WHERE clause.
The “IN” operator is a shorthand for multiple OR
conditions.
IN Operator
Syntax-
SELECT column_names
FROM table_name
WHERE column_name
In (Value1 , Value2…….. ValueN);
Example-
SELET Name
FROM Employee
WHERE City
In (“kota” , “Jaipur”, “Abu”);
SQL statement selects all record that are located in the List
V21 in operator
Not IN Operator
Syntax-
SELECT column_names
FROM table_name
WHERE column_name
Not In (Value1 , Value2…….. ValueN);
Example-
SELECT Name
FROM Employee
WHERE City
Not In (“kota” , “Jaipur”, “Abu”);
SQL statement selects all record that are NOT located in
List
V21 in operator
THANK
YOU

More Related Content

PPTX
Oracle: Basic SQL
PPTX
Sql operator
DOCX
Functions oracle (pl/sql)
PDF
Difference between group by and order by in sql server
PPT
SQL select clause
PDF
Sub query_SQL
 
PPTX
Advanced SQL Webinar
PPTX
Lab5 sub query
Oracle: Basic SQL
Sql operator
Functions oracle (pl/sql)
Difference between group by and order by in sql server
SQL select clause
Sub query_SQL
 
Advanced SQL Webinar
Lab5 sub query

What's hot (7)

RTF
Mysql joins example table and query process
PPT
SQL subquery
PPTX
ADVANCE SQL-"Sub queries"
PPT
Advanced Sql Training
PPTX
Lab1 select statement
PDF
Introduction To Oracle Sql
PDF
Database Systems - SQL - DDL Statements (Chapter 3/3)
Mysql joins example table and query process
SQL subquery
ADVANCE SQL-"Sub queries"
Advanced Sql Training
Lab1 select statement
Introduction To Oracle Sql
Database Systems - SQL - DDL Statements (Chapter 3/3)
Ad

More from Dhirendra Chauhan (20)

PPTX
V35 keys-c
PPTX
V34 numeric function-c
PPTX
V33 date function-c
PPTX
V31 having
PPTX
V30 full join(union intersect etc)
PPTX
V29 group by-c
PPTX
PPTX
V27 constraint
PPTX
PPTX
V25 sql index
PPTX
V24 cartesion product-c
PPTX
V23 function-2
PPTX
V22 function-1
PPTX
V20 bet ween operator-c
PPTX
V19 join method-c
PPTX
V18 alias-c
PPTX
V17 show command-c
PPTX
V16 sql comments-c
PPTX
V15 like operator-c
PPTX
V3 employment-unemployment
V35 keys-c
V34 numeric function-c
V33 date function-c
V31 having
V30 full join(union intersect etc)
V29 group by-c
V27 constraint
V25 sql index
V24 cartesion product-c
V23 function-2
V22 function-1
V20 bet ween operator-c
V19 join method-c
V18 alias-c
V17 show command-c
V16 sql comments-c
V15 like operator-c
V3 employment-unemployment
Ad

Recently uploaded (20)

PDF
Empowerment Technology for Senior High School Guide
PPTX
History, Philosophy and sociology of education (1).pptx
PDF
1_English_Language_Set_2.pdf probationary
PDF
advance database management system book.pdf
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PDF
Indian roads congress 037 - 2012 Flexible pavement
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
Weekly quiz Compilation Jan -July 25.pdf
PDF
FORM 1 BIOLOGY MIND MAPS and their schemes
PDF
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PDF
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
PDF
HVAC Specification 2024 according to central public works department
PDF
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PDF
Computing-Curriculum for Schools in Ghana
Empowerment Technology for Senior High School Guide
History, Philosophy and sociology of education (1).pptx
1_English_Language_Set_2.pdf probationary
advance database management system book.pdf
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
Indian roads congress 037 - 2012 Flexible pavement
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Weekly quiz Compilation Jan -July 25.pdf
FORM 1 BIOLOGY MIND MAPS and their schemes
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
Paper A Mock Exam 9_ Attempt review.pdf.
Practical Manual AGRO-233 Principles and Practices of Natural Farming
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
HVAC Specification 2024 according to central public works department
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
A powerpoint presentation on the Revised K-10 Science Shaping Paper
Computing-Curriculum for Schools in Ghana

V21 in operator

  • 1. By : Dhirendra Chauhan
  • 2. In Operator In MySql The IN operator allows you to specify multiple values in a WHERE clause. The “IN” operator is a shorthand for multiple OR conditions.
  • 3. IN Operator Syntax- SELECT column_names FROM table_name WHERE column_name In (Value1 , Value2…….. ValueN); Example- SELET Name FROM Employee WHERE City In (“kota” , “Jaipur”, “Abu”); SQL statement selects all record that are located in the List
  • 5. Not IN Operator Syntax- SELECT column_names FROM table_name WHERE column_name Not In (Value1 , Value2…….. ValueN); Example- SELECT Name FROM Employee WHERE City Not In (“kota” , “Jaipur”, “Abu”); SQL statement selects all record that are NOT located in List