Hi,
Thanks for all the replies I've been getting to my questions, here are some more 🙂
I have two tables, one of which contains data for competition results (comp_id, 1st, 2nd, 3rd etc) the other contains requests (req_id, comp_id, reply_sent=TRUE/FALSE) for the results. Both tables are updated often.
Both contain the comp_id field, and I want to search the first table for requests that have not received replies (WHERE reply_sent=FALSE) and then compare the results with the result table. If there are any results that have matching comp_id fields, I want to get the data to be sent to the requestee (?!).
I am unsure how to go about this. I have tried a query seraching both tables at the same time (which didn't seem to work) and now I'm searching the request table (SELECT comp_id FROM request WHERE reply_sent = '0') which gives me a set of comp_id values, but I don't know how to query the other table with this data (loop or one long query string?).
Any ideas?
Thanks again,
Mei