rashmi_k28 Posted June 12, 2008 Share Posted June 12, 2008 Field in ip_details are name, node, ip Fields in name_details are name, node, used_mem,tot_mem How to join two tables and fetch the node,name from name_details and ip from ip_details. When I use join I get message as ambiguois Quote Link to comment Share on other sites More sharing options...
teng84 Posted June 12, 2008 Share Posted June 12, 2008 you should put alias on your fields the error means sql finds two the same field that come form two tables you can paste your script so we can edit your statement Quote Link to comment Share on other sites More sharing options...
zenag Posted June 12, 2008 Share Posted June 12, 2008 SELECT name_details.name,name_details.node,ip_details.ip FROM name_details leftjoin ip_details on ip_details.name=name_details.name Quote Link to comment Share on other sites More sharing options...
zenag Posted June 12, 2008 Share Posted June 12, 2008 left join must have space SELECT name_details.name,name_details.node,ip_details.ip FROM name_details left join ip_details on ip_details.name=name_details.name Quote Link to comment Share on other sites More sharing options...
rashmi_k28 Posted June 12, 2008 Author Share Posted June 12, 2008 Thank you so much it worked. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.