469,890 Members | 2,158 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,890 developers. It's quick & easy.

select statement

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
0 1076

Post your reply

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

Similar topics

21 posts views Thread by John Fabiani | last post: by
3 posts views Thread by Tcs | last post: by
1 post views Thread by microsoft.public.dotnet.languages.vb | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.