Forum Moderators: coopster
Anyway - my next task is difficult too. I am using 2 tables, webinquiries and call_log. I want to display all unique webinquiries where call_log.Status does not equal Call Back Later.
I have gotten that part with the following query:
SELECT * FROM webinquiries, call_log WHERE Date > $inquirydate AND call_log.CustomerStatus NOT LIKE 'Call Back Later';
My problem is, I need to select the LAST distinct line for each unique webinquiry. So I'm thinking there will be some sort of loop (while) statement or somesort but can't quite seem to figure it out.
Thanks