SQL IN Keyword

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP







<!--
main_leaderboard, all: [728,90][970,90][320,50][468,60]
-->



SQL IN Keyword


❮ SQL Keywords Reference



IN


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


The IN operator is a shorthand for multiple OR conditions.



The following SQL selects all customers that are located in "Germany", "France" and "UK":



Example



SELECT * FROM Customers

WHERE Country IN ('Germany', 'France', 'UK');

Try it Yourself »


The following SQL selects all customers that are NOT located in "Germany", "France" or "UK":



Example



SELECT * FROM Customers

WHERE Country NOT IN ('Germany', 'France', 'UK');

Try it Yourself »


The following SQL selects all customers that are from the same
countries as the suppliers:



Example



SELECT * FROM Customers

WHERE Country IN (SELECT Country FROM Suppliers);

Try it Yourself »



❮ SQL Keywords Reference


Popular posts from this blog

Malaysia to Papua New Guinea by motorcycle?

List of Bhojpuri films

.name