I want to check if a certain room is available between a start and end date. I am doing this with a webservice function. This function gives back a list with all the reservation
AND has higher precedence than OR.
AND
OR
Change the last line to:
AND (res.DATUM_BEGIN >= @DATUM_EINDE OR res.DATUM_EINDE <= @DATUM_BEGIN)