By using Sql server 2008 I can return two table results like
College Department Course Section Passed
X CS B.Sc A 30
X CS B.Sc B 12
and the second result
College Department Course Section Failed
X CS B.Sc A 23
X CS B.Sc B 42
here, am joining one extra table than the first one, if I use the same query to get both the passed and failed count, the count goes wrong, thats what am using two different queries.
Am trying to combine these two tables, to get the result like
College Department Course Section Passed Failed
X CS B.Sc A 30 23
X CS B.Sc B 12 42
but I dunno how to do this, can anyone help me out here, thanks in advance.
Note : here am joining about 3 to 5 tables in both the queries.
Use case Statement