Multiple Tables

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
austinl
User
Posts: 38

Multiple Tables

Post by austinl »

I am trying to combine 7 tables with similar into one table so I can use it as a order list. Is there any way to do this or to use multiple tables in the look-up? I basically have 7 tables with different products and I need to be able to select from all 7 with a drop-down list in my order table.


mobhar
User
Posts: 11737

Post by mobhar »

Just combine all 7 tables into one Database View, then simply use that Database View as the lookup table for your desired field.


austinl
User
Posts: 38

Post by austinl »

How do I do this? Is it a custom SQL command?


mobhar
User
Posts: 11737

Post by mobhar »

It depends on how the schema of those your 7 tables.

Basically, if their schema are similar, then you may use UNION to combine all the data from those 7 tables into one Database View.


Post Reply