CoffeeGuru
Registered User.
- Local time
- Today, 08:55
- Joined
- Jun 20, 2013
- Messages
- 121
Hi Guys
I have seen this discussed in various places but I cannot for the life of me make any of the suggestions i've seen solve my problem.
I have a query that pulls out first and last week number.
I wanted to add a count of distinct week numbers to see if there are any weeks missing.
This is my SQL so far
SELECT Combined.Country, Combined.Chain, Combined.Year, First(Combined.WK_No) AS FirstOfWK_No, Last(Combined.WK_No) AS LastOfWK_No, Count(Combined.WK_No) AS CountOfWK_No
FROM Combined
GROUP BY Combined.Country, Combined.Chain, Combined.Year
ORDER BY Combined.Country, Combined.Chain, Combined.Year;
Unfortuately as it stands it just counts around 10688667 weeks where it should for my data show around 37 and
Count(DISTINCT(Combined.WK_No)) AS CountOfWK_No
does not work either.
I am using Access 2010
I have seen this discussed in various places but I cannot for the life of me make any of the suggestions i've seen solve my problem.
I have a query that pulls out first and last week number.
I wanted to add a count of distinct week numbers to see if there are any weeks missing.
This is my SQL so far
SELECT Combined.Country, Combined.Chain, Combined.Year, First(Combined.WK_No) AS FirstOfWK_No, Last(Combined.WK_No) AS LastOfWK_No, Count(Combined.WK_No) AS CountOfWK_No
FROM Combined
GROUP BY Combined.Country, Combined.Chain, Combined.Year
ORDER BY Combined.Country, Combined.Chain, Combined.Year;
Unfortuately as it stands it just counts around 10688667 weeks where it should for my data show around 37 and
Count(DISTINCT(Combined.WK_No)) AS CountOfWK_No
does not work either.
I am using Access 2010