this is a sql statment in microsoft access. and it works perfect. the sql shows all the availabl slots.
SELECT slotNo, TimeFrom, TimeTo, Positions AS AppointmentWith
FROM standardslots, Staffs
WHERE standardslots.StaffID="G1" AND Positions="GP"
AND NOT EXISTS (SELECT standardslots.staffID,AppointmentNO,Positions
FROM AppoDate,Staffs
WHERE slotNo=AppointmentNo AND date=[ENTER DATE] );
I want to write same sql in mysql server but it does not support the nested query. any one know te alternative for that. please is very important. thanks