K
Kenny
Hello,
I have 3 tables in my Coin database:-
1] tblRegion
pkRegion - text, primary key
Values include "Europe", "Caribbean", "Oceania", etc.
2] tblcountry
pkCountry - text, primary key
fkRegion - foreign key to tblRegion
Values include "Bermuda," "Tuvalu", etc - lots of country names
3] tblCoin
pkCoin - autonumber, primary key
fkCountry - foreign key to tblCountry
Year - e.g. 1977
Denomination - e.g. "10 cents"
I want to do the two following count variations:-
1] Group by Region, display number of countries per region AND number of
coins for entire region
2] As above, but include any region for which I have NO coins
Can I do this in QBE? Or will I have to get into SQL to do this?
Currently I can do EITHER: group by pkRegion, count pkCountry -
OR: group by pkCountry, count pkCoin -
BUT - I don't know how to extend this to achieve 1] and/or 2] above.
Can you help?
Regards,
Kenneth Ndogu.
I have 3 tables in my Coin database:-
1] tblRegion
pkRegion - text, primary key
Values include "Europe", "Caribbean", "Oceania", etc.
2] tblcountry
pkCountry - text, primary key
fkRegion - foreign key to tblRegion
Values include "Bermuda," "Tuvalu", etc - lots of country names
3] tblCoin
pkCoin - autonumber, primary key
fkCountry - foreign key to tblCountry
Year - e.g. 1977
Denomination - e.g. "10 cents"
I want to do the two following count variations:-
1] Group by Region, display number of countries per region AND number of
coins for entire region
2] As above, but include any region for which I have NO coins
Can I do this in QBE? Or will I have to get into SQL to do this?
Currently I can do EITHER: group by pkRegion, count pkCountry -
OR: group by pkCountry, count pkCoin -
BUT - I don't know how to extend this to achieve 1] and/or 2] above.
Can you help?
Regards,
Kenneth Ndogu.