By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,419 Members | 1,609 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,419 IT Pros & Developers. It's quick & easy.

select statement

P: 36
A S ID
1 1 1
2 1 2
3 1 3
4 1 4
1 2 5
2 2 6
3 2 7
4 2 8
5 2 9
6 2 10
7 2 11
1 3 12
2 3 13
3 3 14
4 3 15
5 3 16
6 3 17
1 4 18
2 4 19
3 4 20
4 4 21
5 4 23
6 4 24
7 4 25
8 4 26
1 5 27
2 5 28

i have table with tree columns (ID,S,A)
i want to select Ids where S between ( 2 and 4 ) and A from 2 where S=2 To A=6 where S=4)
result will be 6,7,.......,23,24

what is the efficient SOL statement get this result ??
Mar 10 '09 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.