You are here: Re: difficult query « PHP Programming Language « IT news, forums, messages
Re: difficult query

Posted by Captain Paralytic on 12/21/07 14:22

On 21 Dec, 13:56, Tarscher <tarsc...@gmail.com> wrote:
> On 21 dec, 14:02, Captain Paralytic <paul_laut...@yahoo.com> wrote:
>

So here is my guess.
Assuming that you have a table events and a table people, I would have
a link table events_people. I would not call it attendee as it ontains
both attendees and non-attendees.

The query would be something like:

SELECT
e.event,
ep.status
FROM events e
LEFT JOIN events_people ep USING(event_id)
WHERE ep.person_id = {my_person_id}

 

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

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