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
https://forums.phpfreaks.com/topic/151849-solved-3-table-comparison/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.