4 replies
by sgt_shultz
by pnakiet
Hello friend,
With your explanation, only 1 diference from this is measureUnit.
If so, I think you could use the same table for all of these product with one more field added: MeasureUnit.
With the new field, you could input kilo, or another measureunit.
Have success,
PNAKiet
by r.bastiaans
Hi there,
Because the products you sell are basically different, you should consider to make one table for each group of products which have the same aspects. Example:
Table oil: id|name|density|stock|value
Table Tires: id|name|size |stock|value
Table Hware: id|name|weigh |stock|value
although the tables contain different fieldnames, you can join them into 1 table where for example the third column is called "Physical". You van use the SQL keyword UNION to combine the tables into 1 table.
This process is called databasenormalisation. You can find info about this everywhere on the internet. Try webmonkey.com
You can find syntax info about the UNION in your helpfunction.
Succes!!!
Rolf Bastiaans
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending