I jus discovered that MySQL 4.0.20 and earlier doesn't support subqueries....something I took for granted in PostgreSQL....The problem is I don't particularly kno how to use Joins in fact I'm not even sure that Joins can be used to do what I want to (I hope they can be used or else I'm dead...or there is some alternative way)
Anyway here are the queries I'm trying to convert :
SELECT * FROM details_submitted WHERE details_submitted.node_ID = (SELECT nodes.node_ID FROM nodes WHERE nodes.node_name = 'NODE_NAME');
SELECT * FROM details_submitted WHERE details_submitted.user_ID = (SELECT users.user_ID FROM users WHERE users.user_fname = 'FRIST_NAME' AND users.user_lname = 'LAST_NAME');
There exist a 1 to many relationship between the nodes and users table and the details_submitted table i.e
1 node (may) map to 1 or many details_submitted
1 user (may) map to 1 or many details_submitted
node_ID and user_ID is the primary key in the nodes table and users table respectively. These two ID's are foreign keys in the details_submitted table
I would really apprecite the help...thanx