jasminewhite
Registered User.
- Local time
- Today, 11:23
- Joined
- Dec 8, 2011
- Messages
- 26
my DB table:
CHAPTER FIELD1 FIELD2
1 text1a text2a
1 text1b text2b
2 text1c text2c
I want to do the following:
For each CHAPTER in the DB:
1)COUNT all FIELD1 records that belong to this CHAPTER
2)COUNT all FIELD2 records that belong to this CHAPTER
3)DISPLAY the above 2 counts on the same row of this CHAPTER
4)DISPLAY the SUM of the above 2 counts at the end of this row.
I want the query display the following results:
CHAPTER countFIELD1 countFIELD2 countThisCHAPTER
1 2 2 4
2 1 1 2
GRAND TOT 3 3 6
I need help creating SQL SELECT statement for my query. I use query wizard.
Thank you in advance for any big heart out there.

CHAPTER FIELD1 FIELD2
1 text1a text2a
1 text1b text2b
2 text1c text2c
I want to do the following:
For each CHAPTER in the DB:
1)COUNT all FIELD1 records that belong to this CHAPTER
2)COUNT all FIELD2 records that belong to this CHAPTER
3)DISPLAY the above 2 counts on the same row of this CHAPTER
4)DISPLAY the SUM of the above 2 counts at the end of this row.
I want the query display the following results:
CHAPTER countFIELD1 countFIELD2 countThisCHAPTER
1 2 2 4
2 1 1 2
GRAND TOT 3 3 6
I need help creating SQL SELECT statement for my query. I use query wizard.
Thank you in advance for any big heart out there.
