An In_condition is a membership condition. it tests a value for membership in a list of values or
subquery.
The Condition defined using in Operator is also known as the membership condition.
In works with values of all data types..
When we using character,dates or non alpha -numeric strings,the list items must be enclosed with single quotation marks For example('Delhi','Mumbai') as shown in second example
SQL> select employee_id,job_id,salary
2 from employees
3 where employee_id in(100,102,107);
EMPLOYEE_ID JOB_ID SALARY
----------- ---------- ----------
100 AD_PRES 16000
102 AD_VP 17000
107 IT_PROG 4200
In the query above ,oracle would select only those records where the employee_id equal to either 100,102,107.
Example 2:in the query below ,oracle would select only those records where job_id is equal to 'IT_PROG','SA_REP'.
remember that this items are enclosed with single quotation marks since they are non-numeric-strings.
SQL> select employee_id,last_name,job_id
2 from employees
3 where job_id in('IT_PROG','SA_REP');
EMPLOYEE_ID LAST_NAME JOB_ID
----------- ------------------------- ----------
103 Hunold IT_PROG
104 Ernst IT_PROG
105 Austin IT_PROG
106 Pataballa IT_PROG
107 Lorentz IT_PROG
150 Tucker SA_REP
151 Bernstein SA_REP
152 Hall SA_REP
153 Olsen SA_REP
154 Cambrault SA_REP
155 Tuvault SA_REP
EMPLOYEE_ID LAST_NAME JOB_ID
----------- ------------------------- ----------
156 King SA_REP
157 Sully SA_REP
158 McEwen SA_REP
159 Smith SA_REP
160 Doran SA_REP
161 Sewall SA_REP
162 Vishney SA_REP
163 Greene SA_REP
164 Marvins SA_REP
165 Lee SA_REP
166 Ande SA_REP
EMPLOYEE_ID LAST_NAME JOB_ID
----------- ------------------------- ----------
167 Banda SA_REP
168 Ozer SA_REP
169 Bloom SA_REP
170 Fox SA_REP
171 Smith SA_REP
172 Bates SA_REP
173 Kumar SA_REP
174 Abel SA_REP
175 Hutton SA_REP
176 Taylor SA_REP
177 Livingston SA_REP
EMPLOYEE_ID LAST_NAME JOB_ID
----------- ------------------------- ----------
178 Grant SA_REP
179 Johnson SA_REP
35 rows selected.
subquery.
The Condition defined using in Operator is also known as the membership condition.
In works with values of all data types..
When we using character,dates or non alpha -numeric strings,the list items must be enclosed with single quotation marks For example('Delhi','Mumbai') as shown in second example
SQL> select employee_id,job_id,salary
2 from employees
3 where employee_id in(100,102,107);
EMPLOYEE_ID JOB_ID SALARY
----------- ---------- ----------
100 AD_PRES 16000
102 AD_VP 17000
107 IT_PROG 4200
In the query above ,oracle would select only those records where the employee_id equal to either 100,102,107.
Example 2:in the query below ,oracle would select only those records where job_id is equal to 'IT_PROG','SA_REP'.
remember that this items are enclosed with single quotation marks since they are non-numeric-strings.
SQL> select employee_id,last_name,job_id
2 from employees
3 where job_id in('IT_PROG','SA_REP');
EMPLOYEE_ID LAST_NAME JOB_ID
----------- ------------------------- ----------
103 Hunold IT_PROG
104 Ernst IT_PROG
105 Austin IT_PROG
106 Pataballa IT_PROG
107 Lorentz IT_PROG
150 Tucker SA_REP
151 Bernstein SA_REP
152 Hall SA_REP
153 Olsen SA_REP
154 Cambrault SA_REP
155 Tuvault SA_REP
EMPLOYEE_ID LAST_NAME JOB_ID
----------- ------------------------- ----------
156 King SA_REP
157 Sully SA_REP
158 McEwen SA_REP
159 Smith SA_REP
160 Doran SA_REP
161 Sewall SA_REP
162 Vishney SA_REP
163 Greene SA_REP
164 Marvins SA_REP
165 Lee SA_REP
166 Ande SA_REP
EMPLOYEE_ID LAST_NAME JOB_ID
----------- ------------------------- ----------
167 Banda SA_REP
168 Ozer SA_REP
169 Bloom SA_REP
170 Fox SA_REP
171 Smith SA_REP
172 Bates SA_REP
173 Kumar SA_REP
174 Abel SA_REP
175 Hutton SA_REP
176 Taylor SA_REP
177 Livingston SA_REP
EMPLOYEE_ID LAST_NAME JOB_ID
----------- ------------------------- ----------
178 Grant SA_REP
179 Johnson SA_REP
35 rows selected.
I can be ready to say that you have got a completed a pleasant job here to share that article with us. You may have decided it after some study and hence undoubtedly in any appreciate that it is going to help us all. I'm proper here to appear for some talents with regard to one amongst my resume writing . I am hoping it helps me to get stimulated and located an answer for my hindrance soon.
ReplyDeleteNice blog thanks for sharing.
ReplyDeleteThis blog is having the general information. Got a creative work and this is very different one.We have to develop our creativity mind.This blog helps for this. Thank you for this blog. This is very interesting and useful.
ReplyDeleteSkilled Manpower Services in Chennai
Thanks for sharing the valuable information here. So i think i got some useful information with this content. Thank you and please keep update like this informative details.
ReplyDeleteSEO Company in India
This blog is having the general information. Got a creative work and this is very different one.We have to develop our creativity mind.This blog helps for this. Thank you for this blog. This is very interesting and useful. Security Mobile alerts Chennai
ReplyDelete
ReplyDeleteتعد عملية التنظيف من اهم الخدمات التي يجب ان تكون متوفره دوما ليساعدنا علي حياه افضل لنا جميعا ولكي تتم علي اكمل وجه يجب الاستعانه بمتخصصين في هذا المجال
تنظيف مساجد بالرياض
نظرا لما يمتلكون من ادوات وسبل للوصول لاعلي مستوي نظافه ممكن
Really, these quotes are the holistic approach towards mindfulness. In fact, all of your posts are. Proudly saying I’m getting fruitfulness out of it what you write and share. Thank you so much to both of you.
ReplyDeleteSharepoint Training in Chennai
Web Designing Training in Chennai
I do agree with all the ideas you have presented in your post. They’re really convincing and will certainly work. Still, the posts are very short for newbies. Could you please extend them a little from next time? Thanks for the post..
ReplyDeleteOffice movers singapore
Professional movers singapore
Movers company in singapore
Hi,
ReplyDeleteEverything i read in this blog are very interesting and it provided us lot of information. Very helpful for all. Thanks a lot for sharing this post:)
SEO Company in Chennai
SEO Company in India
Digital Marketing company in Chennai
Digital Marketing Company in India
Web Development Company in India
Web Design Company in Chennai
ReplyDeleteThese ways are very simple and very much useful, as a beginner level these helped me a lot thanks fore sharing these kinds of useful and knowledgeable information.
Web Design Company in Chennai
Thank you for sharing such a nice and interesting blog with us. I have seen that all will say the same thing repeatedly. But in your blog, I had a chance to get some useful and unique information. I would like to suggest your blog in my dude circle.
ReplyDeleteWeb development Company in Chennai
Actually your giving information is very useful information for me .so thank u for sharing blog.your information is very nice thank u and keep more updates
ReplyDeleteinformatica training in chennai
It's a wonderful post and very helpful, thanks for all this information. You are including better information regarding this topic in an effective way.Thank you so much.
ReplyDeleteAllergy Medicines
Ayurvedic Medicine For Immunity
this is very nice post and this kind of information is very useful whenever i going to travel new jorney of field.
ReplyDeleteHadoop Training in Chennai
It's a wonderful post and very helpful, thanks for all this information. You are including better information regarding this topic in an effective way.Thank you so much.
ReplyDeleteAllergy Medicines
Ayurvedic Medicine For Immunity
Hyperpigmentation cream
Viral Fever Medicines
The Role of a HIPAA Security Officer Training is not dissimilar to those of a Privacy Officer in as much as the appointed person will be responsible for the development of security policies, the implementation of procedures, training, risk assessments, contingency planning and monitoring compliance. However, the focus of a Security Officer in compliance with the Administrative, Physical and Technical Safeguards of the Security Rule.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThanks mate. I am really impressed with your writing talents and also with the layout on your weblog. Appreciate, Is this a paid subject matter or did you customize it yourself? Either way keep up the nice quality writing, it is rare to peer a nice weblog like this one nowadays. Thank you, check also event marketing and free events registration software
ReplyDeleteTül Perde Modelleri
ReplyDeleteMobil onay
Turkcell mobil ödeme bozdurma
NFT NASIL ALİNİR
ankara evden eve nakliyat
Trafik sigortası
DEDEKTOR
Website.kurma
AŞK ROMANLARI
kartal beko klima servisi
ReplyDeletetuzla toshiba klima servisi
çekmeköy daikin klima servisi
ataşehir daikin klima servisi
maltepe toshiba klima servisi
kadıköy toshiba klima servisi
maltepe beko klima servisi
kadıköy beko klima servisi
kartal alarko carrier klima servisi
yurtdışı kargo
ReplyDeletenft nasıl alınır
lisans satın al
minecraft premium
en son çıkan perde modelleri
en son çıkan perde modelleri
uc satın al
özel ambulans
Good content. You write beautiful things.
ReplyDeletevbet
taksi
hacklink
sportsbet
vbet
hacklink
sportsbet
korsan taksi
mrbahis
dijital kartvizit
ReplyDeletereferans kimliği nedir
binance referans kodu
referans kimliği nedir
bitcoin nasıl alınır
resimli magnet
5YBM
bahçelievler
ReplyDeletebaşakşehir
karşıyaka
kartal
lara
2WE5Eİ