appintment where clause