I am having trouble building a query and am in need of some assistance. The guy that created the database I am try to work with died so I have no one around to help. Essentially this query will be used to compare data. It will compile information from 4 different tables.
Request
RequestNo -----(1)----->
RequestPONo---(2)----->
RequestDetail
ItemRequestNo <----(1)----
ItemQuantity
ItemPrice
Invoices
PONumber <-----(2)------
InvoiceID ------(3)----->
InvoiceDetail
InvoiceID <----(3)-----
Amount
First, It will go to the request table and pull in RequestNo and RequestPONo.
Then, It will pull ItemQuantity and ItemPrice based on the RequestNo from the Request Table.
Then, It will pull data from the Invoices table based on the RequestPONo from the request table.
Finally, pull data from Invoice detail table based on InvoiceID from the invoice table.
Im not sure how to do this, or if it can be done.
Thanks
Request
RequestNo -----(1)----->
RequestPONo---(2)----->
RequestDetail
ItemRequestNo <----(1)----
ItemQuantity
ItemPrice
Invoices
PONumber <-----(2)------
InvoiceID ------(3)----->
InvoiceDetail
InvoiceID <----(3)-----
Amount
First, It will go to the request table and pull in RequestNo and RequestPONo.
Then, It will pull ItemQuantity and ItemPrice based on the RequestNo from the Request Table.
Then, It will pull data from the Invoices table based on the RequestPONo from the request table.
Finally, pull data from Invoice detail table based on InvoiceID from the invoice table.
Im not sure how to do this, or if it can be done.
Thanks