Hi, 

I'm a bit stuck at the moment with a select query. I have 2 tables a
contact table and an events table. They are joined together by contact
id. 

The data is stored in the events table like this:

eventid         link id         contact id
   1          1             1                   *
   2          2             1                   *
   3          1             2
        


What I want to-do is create a select statement that lets me select all
the contacts from the contacts table that have followed link 1 and link
2. I'm finding this hard without subselects.


Thanks

Carl Chambers

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to