C
CDMN
Guest
Hi, I need some help with a query I have not yet been able to run successfully.
I have two tables "Customer Table"(1) and "Invoice Table"(2). I need to design a query that will show the "invoice numbers" and "invoice totals" of all purchases by customers with a 719 or 712 area code. Needed fields to be shown are "area code"(1), "invoice number"(2), and "invoice total"(2).
Approximately 15 out of the 20 total invoice records should be returned, however when I run the query it returns 280 records. Each individual invoice number is listed numerous times, with a noticible pattern. Each customer is listed with each invoice number, although the invoice number is suppose to be unique for each customer. (ex. Customer John M. is listed with invoice 101, 102, 103, 104, 105, etc.)
I will appreciate any help.
Thanks.
I have two tables "Customer Table"(1) and "Invoice Table"(2). I need to design a query that will show the "invoice numbers" and "invoice totals" of all purchases by customers with a 719 or 712 area code. Needed fields to be shown are "area code"(1), "invoice number"(2), and "invoice total"(2).
Approximately 15 out of the 20 total invoice records should be returned, however when I run the query it returns 280 records. Each individual invoice number is listed numerous times, with a noticible pattern. Each customer is listed with each invoice number, although the invoice number is suppose to be unique for each customer. (ex. Customer John M. is listed with invoice 101, 102, 103, 104, 105, etc.)
I will appreciate any help.
Thanks.