TableA A B
1 X
1 Y
2 X
I want my results to be 1 X because B = Y.
This is kind of what I was tring:
SELECT DISTINCT A,
CASE WHEN B = 'X' THEN
B
ELSE
''
END
AS B
FROM
tableA
WHERE
B = 'Y'
I have:
FieldA FieldB FieldC
A 1 10/10/2000
A 1 10/11/2000
A 1 10/09/2000
B 1 11/11/2000
B 1 11/09/2000
How do I get:
A 1 10/11/2000
B 1 11/11/2000
Thanks
That doesn't seem to work. I have 3 a's and 2 b's and my =Sum(iif(Fields!MyLetter.Value = "a",1,0)) & =Sum(iif(Fields!MyLetter.Value = "b",1,0)) both return 0.
Thanks
I have a table column that could have either "a" or "b". How do I get a count of how many "a"'s? I know I am just overlooking something very obvious.
Thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.