0

can sombody tell me clearly how to use 'not in' i cant undersatnd bcoz i am new in sql learning

please tell me

8th Aug 2016, 7:37 PM
SHIV MATHUR
SHIV MATHUR - avatar
3 Respostas
+ 2
sorry qurey will be like this select name, id, dob from student where department NOT IN ('eee','cse')
8th Aug 2016, 7:59 PM
Sainath
Sainath - avatar
+ 1
thank you i got it
8th Aug 2016, 8:04 PM
SHIV MATHUR
SHIV MATHUR - avatar
0
NOT IN is used to exclude the value for example the student table contains id, name, dob, department. . there are five departments like cse, ece, mech, eee you need not want the student information from eee and cse then the code be select name, id, dob from student where NOT IN department('cse', 'eee')
8th Aug 2016, 7:54 PM
Sainath
Sainath - avatar