Hi Guys,
Can anybody spot the error on this code?
it gives me error: SQL Server Database Error: Incorrect syntax near the keyword 'inner'. 5 0
Select e.event_number,e.start_date ,event_desc, venue_desc,s.location
from events e
inner join venues v on v.venue=e.venue
inner join sessions s on s.event_number=e.event_number and session_type='0'
(inner join contact_categories cc on left(cc.notes,4)= left(e.event_reference,4) and getdate() between cc.valid_from and cc.valid_to)
where start_date>getdate() and booking='Y'
and number_of_attendees<maximum_attendees+maximum_on_waiting_list
(and cc.contact_number=1588611)
Thank You