Jump to content

[SOLVED] 3 Table Comparison


alanChurley

Recommended Posts

ok, i have the following sql statement;

 

Code:

SELECT

data.mobilenumber,

data.firstname,

bookedparties.partydate,

bookedparties.partyguests,

clubs.brand

FROM

data,

bookedparties,

clubs

WHERE

data.contactid = bookedparties.contactid

AND bookedparties.club = clubs.club

AND bookedparties.partydate = '2009-03-30'

AND bookedparties.canceled = '0'

AND data.gender = 'F';

 

When i run the statement, it only selects those that match records that match one of the clubs.club

 

I really don't know where to start or if I'm being really stupid - any help is greatly appreciated

MySQL 5.0.45 via TCP/IP

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.