Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
innocent
Starting Member
3 Posts |
Posted - 2009-10-19 : 08:13:23
|
Suppose I have a table for examplestudentSt_name , St_rool, St_feesAli , 1 , 1200Amir , 2 , 1000Umar , 3 ,3000Asghar ,4 ,1000now i want to take 1 3 and 4 rowso this query select * from studentwhere st_rool in (1,3,4)but if i dont know this and only take this colum how can i do this what this query make?Asghar Ali |
|
innocent
Starting Member
3 Posts |
Posted - 2009-10-19 : 08:18:19
|
this is flight table FeildAircraft_code , Aircode , Type , Source, Destination ,Category ,Dep_time , Journey_hrsand his tuple9W01 9W Airbus Cal Che D 15.30 39W02 9W Airbus Mun Del D 9.30 29W03 9W Airbus Che Mun D 10.45 2AI01 AI Boeing Cal NY I 2.20 18AI02 AI Boeing Mun NY I 1.30 20AI03 AI Boeign Del Ny I 3.00 17BA01 BA Boeing Mun Lon I 23.30 9BA02 BA Boeing Del Lon I 2.15 11BA03 BA Boeing Mun Ny I 3.30 20IC01 IA Airbus Bang Che D 10.45 1IC02 IA Airbus Bang Mun D 2.00 2IC03 IA Boeing Del Cal D 17.45 1ICo4 IA Beoing Mun Cal D 18.30 2Asghar Ali |
|
|
tosscrosby
Aged Yak Warrior
676 Posts |
Posted - 2009-10-21 : 12:01:24
|
As far as you first post, you'll get exactly what you've asked for:Ali , 1 , 1200Umar , 3 ,3000Asghar ,4 ,1000Your second post, NICE data. No question but nice data.Terry-- Procrastinate now! |
|
|
|
|
|
|
|