You are here: Re: help in querying tables « PHP Programming Language « IT news, forums, messages
Re: help in querying tables

Posted by Hendri Kurniawan on 07/24/07 07:42

Dave wrote:
> I am in the process of testing a database design, which i believe I
> have hit a stumpbling block and cannot think of a way around it.
>
----- SNIP ---
> I would be grateful if someone could point me in the right direction
> to overcome this issue.
>
> thanks in advance
>
> Dave
>


Creating new tables for each company will just create more headache for you.
Why you ask: The number of tables will increase to follow the number of
company.

Solution... Just add another column on the product table (I don't know
which one it is)
to associate it with the company....

ie.
product_table(
product_id,
product_name,
company_id
)

or if you want to associate a product with one or more company

product_table (
product_id, .... etc etc
)

product_company_table(
product_id,
company_id
)

Hope this helps


Hendri Kurniawan

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация