problem in where clause to check if the date is exist in another table

Printable View