G
Gary B
MASTER Table: CHARGES
Fields: ChargesKey, ChargesDate
Data: Row1 = 1, 01/15/2004
Row2 = 2, 03/20/2004
Row3 = 3, 04/25/2004
DETAIL Table: SERVICES
Fields: ServicesKey, ChargesKey, ProvidersKey
Data: Row1 = 1, 1, 2
Row2 = 2, 1, 5
Row3 = 3, 1, 3
Row4 = 4, 2, 5
Row5 = 5, 2, 5
Row6 = 6, 3, 1
Row7 = 7, 3, 4
Row8 = 8, 3, 2
Row9 = 9, 3, 5
These Tables are Related on ChargesKey
I need to return the Count of CHARGES(ChargesKey) for each ProvidersKey.
In the above example, the result should be 1 for the following condition
WHERE (ChargesDate BETWEEN #03/20/2004# And #03/20/2004#) and (ProvidersKey
= 5)
Thank you so much!
Fields: ChargesKey, ChargesDate
Data: Row1 = 1, 01/15/2004
Row2 = 2, 03/20/2004
Row3 = 3, 04/25/2004
DETAIL Table: SERVICES
Fields: ServicesKey, ChargesKey, ProvidersKey
Data: Row1 = 1, 1, 2
Row2 = 2, 1, 5
Row3 = 3, 1, 3
Row4 = 4, 2, 5
Row5 = 5, 2, 5
Row6 = 6, 3, 1
Row7 = 7, 3, 4
Row8 = 8, 3, 2
Row9 = 9, 3, 5
These Tables are Related on ChargesKey
I need to return the Count of CHARGES(ChargesKey) for each ProvidersKey.
In the above example, the result should be 1 for the following condition
WHERE (ChargesDate BETWEEN #03/20/2004# And #03/20/2004#) and (ProvidersKey
= 5)
Thank you so much!