I have 4 tables, Transactions, Orders - SuperType, and then Site_Orders and Product_Orders SubType
[Transactions]
id PK
Orders_id [FK Orders.orders_id]
[Orders]
Orders_id PK
Orders_type
[Site_Orders]
Orders_id [FK Orders.orders_id]
== other data ==
[Product_Orders]
Orders_id [FK Orders.orders_id]
== other data ==
My question is, how do i create a join statement that will pull transactions and associate and grab the right information from the subType table? Or will i have to use PHP to check the subtype and have the logic done there?
Thanks