Suppose I have 3 tables which are making circular reference.
Orders
---------------------------
OrderId
siteId
OrderLines
---------------------------
OrderId
ItemId
Discounts
---------------------------
siteid
ItemId
Discount
Now Discounts table have to be joined with both tables Orders and OrderLines and Orders and OrderLines should also join. i want to keep all 3 tables. and want to get discount based on siteid and itemid.