i have two tables implemented in mysql...
id name password
1 name1 password1
2 name2 password2
AND
id age address
1 age1 address1
2 age2 address2
Now i need the result of select query in the combined form
id name password age address
1 .... ........ ... .....
2 .... .. .. . .. ... ..
Now i tried it using two queries as follows...
SELECT * FROM table1, table2 WHERE table1.id=table2.id;
AND also i tried
SELECT * FROM table1 INNER JOIN table2 ON table1.id = table2.id;
I did got the result as i wanted... But I just wanna know which method is comparitively better taking into fact the no of the columns or data entries...???