HestonJames
Programmer
Hello All,
I'm looking for some help building a query which has currently got my head spinning right around.
I have several entities, these look something like this:
SaleOrder
--------
SaleOrder_ID
SaleOrderItem
-----------
SaleOrderItem_ID
SaleOrder_ID
Manufacturer_ID
Manufacturer
----------
Manufacturer_ID
Name
Acknowledgement
--------------
Acknowledgement_ID
SaleOrder_ID
Manufacturer_ID
Valid (bit)
Now, what I'm looking to query for is a list of sale orders, and manufacturer names for manufacturers that have not acknowledged orders which they are linked too through a sale order item.
So, if a manufacturer is linked to a saleorder through an item, but does not have a valid acknowledgement for that sale order, then I need the manufacturer name, manufacturer_id and saleorder_id returned to me.
This is so I can see a list of which manufacturers have not yet confirmed which orders.
I'd appreciate any help you guys can offer. If you need any more information then please don't hesitate to ask.
Thank you.
Heston
I'm looking for some help building a query which has currently got my head spinning right around.
I have several entities, these look something like this:
SaleOrder
--------
SaleOrder_ID
SaleOrderItem
-----------
SaleOrderItem_ID
SaleOrder_ID
Manufacturer_ID
Manufacturer
----------
Manufacturer_ID
Name
Acknowledgement
--------------
Acknowledgement_ID
SaleOrder_ID
Manufacturer_ID
Valid (bit)
Now, what I'm looking to query for is a list of sale orders, and manufacturer names for manufacturers that have not acknowledged orders which they are linked too through a sale order item.
So, if a manufacturer is linked to a saleorder through an item, but does not have a valid acknowledgement for that sale order, then I need the manufacturer name, manufacturer_id and saleorder_id returned to me.
This is so I can see a list of which manufacturers have not yet confirmed which orders.
I'd appreciate any help you guys can offer. If you need any more information then please don't hesitate to ask.
Thank you.
Heston