|
-
April 27th, 2005, 06:23 PM
#1
sql2000 select question
sql2000:
Code:
Score_BD Table:
A B C D E F G H I K L
- - - - - - - - - - -
9 1 3 30 5 9 3
9 1 6 50 5 9 3
9 1 99 40 5 8 9 3 7 6 3
9 1 66 21 5 7 9 32 7 6 3
9 1 44 19 5 9 10 37 7 6 3
10 1 50 20 5 9 3
10 1 49 20 5 9 3
10 1 48 20 5 8 9 3 7 6 3
10 1 47 21 5 7 9 33 7 6 3
10 1 46 19 5 9 10 34 7 6 3
need to extract:
G and H columns case when F is not null and A is 10.
-
April 27th, 2005, 07:23 PM
#2
Re: sql2000 select question
Something like:
Code:
SELECT G, H
FROM Score_BD
WHERE F IS NOT NULL AND A = 10
- petter
-
April 30th, 2005, 08:11 PM
#3
Re: sql2000 select question
Or if you prefer that if either condition is met as opposed to both use
SELECT G, H
FROM Score_BD
WHERE F IS NOT NULL OR A = 10
-
May 6th, 2005, 02:36 AM
#4
Re: sql2000 select question
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|