Can anyone help me -

I am trying to extract data on the availability of a holiday villa using the
statement

'SELECT PossDate from JuneDates where not exists(SELECT PossDate FROM
Reservation WHERE PossDate Between ArrDate And DeptDate AND
Reservation.VillaID=\'Adonis\')'.

(This was originally done on an Access database)

I get an error message that says
'you have an error in your SQL syntax near " exists(SELECT PossDate FROM
Reservation WHERE PossDate Between ArrDate And DeptD" ',

so I presume it doesn't like the 'where not exists' part.
Can anyone tell me of an alternative to this please??

Many thanks


---------------------------------------------------------------------
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