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 09:02

Dave wrote:
> On 24 Jul, 08:42, Hendri Kurniawan <ask...@email.com> wrote:
-- SNIP --
> Thanks for the quick response.
> What you suggest is a good idea, but I am lost with how this would
> work when say over 1000 customers would buy multiple products. The
> product_company_table would need to have duplicate _id's. Although I
> know this is allowed, I am unsure how this would react when queried.
>
> Dave.
>

Hi Dave,

You do realize this is a PHP group.
You need to create tables that contains all of the purchases.
The following is an example of how you can accomplish this

purchase_table(
purchase_id
purchase_date
customer_name
....
)

purchase_product_table(
purchase_id
product_id
company_id ???
)


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

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