Hi,
I have 2 tables.
patientrecall_table and appointment_table. The patientrecall_table used to store what is the next recall date for the patient while the appointment_table will store all the appointments made. Now, I'd like to get through this: "Patients Due for Recall, but No Scheduled Appointment between certain date." In other words, I will need to: select those patients who their next recall date greater than today date AND they don't have appointment made between the date from and date to. Currently, what I did was using the temporary table approach.And it was working fine. create temporary table tmpA(ssn varchar(9) not
null); Is there any other ways that I can use instead of using the temporary table? Please advise. Thank you. //*********************************************** mysql> desc
patientrecall_table;
Server version: 4.0.18-nt //*********************************************** |