Query -> select invoice where product detail equal "blah" (1 Viewer)

mcclunyboy

Registered User.
Local time
Today, 11:27
Joined
Sep 8, 2009
Messages
292
EDIT - I have solved this.

I wanted to query a Many-To-Many relationship in an invoice system, I wanted to select all the invoices which included only certain products. However as there were multiple products on the invoices it duplicated the rows. To solve it all I did was create a query to select distinct the invoice_id from the invoice_details record where the products matched my criteria. Then I created another table to join the tbl_invoices to my query based upon the invoice_id

Apologies.
 
Last edited:

Users who are viewing this thread

Top Bottom