G
Greg
I would like to know if it is possible to write a select query based upon
the number of records within a group.
I have a table with a primary key made up from 2 fields. The first field is
Billing Account Number and the second field is Invoice Date. I have several
thousand records in this table.
An example of the table and values follows:
Billing Account Number, Invoice Date, A charges, B charges, C charges,,,,,
7791123123 , 06/01/2006, $1234.99, $135.88, $ 54321.87,,,,
7791123123 , 07/01/2006, $1234.99, $135.88, $ 54321.87,,,,
7791123123 , 08/01/2006, $1234.99, $135.88, $ 54321.87,,,,
7791123123 , 09/01/2006, $1234.99, $135.88, $ 54321.87,,,,
7791123123 , 10/01/2006, $1234.99, $135.88, $ 54321.87,,,,
7791123123 , 11/01/2006, $1234.99, $135.88, $ 54321.87,,,,
7791123123 , 12/01/2006, $1234.99, $135.88, $ 54321.87,,,,
1172223333 , 06/01/2006, $12345.99,$ 243.55, $458.00,,,,,
1172223333 , 07/01/2006, $12345.99,$ 243.55, $458.00,,,,,
1172223333 , 08/01/2006, $12345.99,$ 243.55, $458.00,,,,,
I would like to select all 7791123123 records because there is a month 12 in
the Invoice Date field but no records for 1172223333 because that group does
not have a month 12.
Is this possible through the Query Wizard? I know what SQL is but would not
consider myself at all proficient.
Does anyone have any suggestions on how to do this?
Thank You in advance for you attention!
Greg
the number of records within a group.
I have a table with a primary key made up from 2 fields. The first field is
Billing Account Number and the second field is Invoice Date. I have several
thousand records in this table.
An example of the table and values follows:
Billing Account Number, Invoice Date, A charges, B charges, C charges,,,,,
7791123123 , 06/01/2006, $1234.99, $135.88, $ 54321.87,,,,
7791123123 , 07/01/2006, $1234.99, $135.88, $ 54321.87,,,,
7791123123 , 08/01/2006, $1234.99, $135.88, $ 54321.87,,,,
7791123123 , 09/01/2006, $1234.99, $135.88, $ 54321.87,,,,
7791123123 , 10/01/2006, $1234.99, $135.88, $ 54321.87,,,,
7791123123 , 11/01/2006, $1234.99, $135.88, $ 54321.87,,,,
7791123123 , 12/01/2006, $1234.99, $135.88, $ 54321.87,,,,
1172223333 , 06/01/2006, $12345.99,$ 243.55, $458.00,,,,,
1172223333 , 07/01/2006, $12345.99,$ 243.55, $458.00,,,,,
1172223333 , 08/01/2006, $12345.99,$ 243.55, $458.00,,,,,
I would like to select all 7791123123 records because there is a month 12 in
the Invoice Date field but no records for 1172223333 because that group does
not have a month 12.
Is this possible through the Query Wizard? I know what SQL is but would not
consider myself at all proficient.
Does anyone have any suggestions on how to do this?
Thank You in advance for you attention!
Greg