Hi,
How to use foreign key with join queries. I have used the query
SELECT first_name,last _name,user_emai l from Info,Registry WHERE user_id='1';
where user_id = foreign key
first_name,last _name are in table Info
user_email in table Registry
user_id is a foreign key which references the parent key present in seperate database.
. The query is returning empty set even though there are results in mysql table.
What is the reason for this. Can anyone help me.
Thanks
How to use foreign key with join queries. I have used the query
SELECT first_name,last _name,user_emai l from Info,Registry WHERE user_id='1';
where user_id = foreign key
first_name,last _name are in table Info
user_email in table Registry
user_id is a foreign key which references the parent key present in seperate database.
. The query is returning empty set even though there are results in mysql table.
What is the reason for this. Can anyone help me.
Thanks
Comment