G
Guest
Following SQL statement:
SELECT [All Conferences Union].[Home Team Results], Count([All Conferences
Union].[Home Team Results]) AS [CountOfHome Team Results], [All Conferences
Union].[Home Team Name]
FROM [All Conferences Union]
GROUP BY [All Conferences Union].[Home Team Results], [All Conferences
Union].[Home Team Name]
HAVING ((([All Conferences Union].[Home Team Results])="loss"))
ORDER BY [All Conferences Union].[Home Team Results] DESC , Count([All
Conferences Union].[Home Team Results]) DESC , [All Conferences Union].[Home
Team Name];
I want to add an IIF statement that if no team has a loss in the home team
results then put a 0 in the column.
For example right now, Ohio State, rutgers and 4 other teams have no losses,
but I would still like them to show up as 0 losses.
Thanks, hopefully this could be done. the IIF examples I have are based on
2 condidtions.
SELECT [All Conferences Union].[Home Team Results], Count([All Conferences
Union].[Home Team Results]) AS [CountOfHome Team Results], [All Conferences
Union].[Home Team Name]
FROM [All Conferences Union]
GROUP BY [All Conferences Union].[Home Team Results], [All Conferences
Union].[Home Team Name]
HAVING ((([All Conferences Union].[Home Team Results])="loss"))
ORDER BY [All Conferences Union].[Home Team Results] DESC , Count([All
Conferences Union].[Home Team Results]) DESC , [All Conferences Union].[Home
Team Name];
I want to add an IIF statement that if no team has a loss in the home team
results then put a 0 in the column.
For example right now, Ohio State, rutgers and 4 other teams have no losses,
but I would still like them to show up as 0 losses.
Thanks, hopefully this could be done. the IIF examples I have are based on
2 condidtions.