Reply to Re: difficult query

Your name:

Reply:


Posted by Tarscher on 12/21/07 14:28

On 21 dec, 15:22, Captain Paralytic <paul_laut...@yahoo.com> wrote:
> 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}

I think your aproach is indeed better than having an attendee table
(which name is indeed not that well choisen)

thanks

[Back to original 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

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