Jump to content

How can I use the client_id from my CROSS JOIN query?


matt.sisto

Recommended Posts

I want to be able to see the relevant client_id associated with each event (booking) from my query, but MySQL doesn't like it. How can I SELECT the client_id along with everything else?

 $sql = "SELECT event_id, event_start, event_end, service_id, unit, quantity, fee FROM calendar_events  CROSS JOIN client USING (client_id) WHERE calendar_events.event_start >= '".$invoice_start."' AND calendar_events.event_end <= '".$invoice_end."' AND client.org_id = '".$org_id."'";

 

Any help is appreciated. Thanks and regs.  8)

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.