Subquery or Join |
select table1.name,table2.score from table2 join table1 on table1.username = table2.username
This is equivalent and give you better picture select t1.name as 'name', t2.score as 'score' from table2 t2 join table1 t1 on t1.username= t2.username Run the query only show 2 columns : 'name' and 'score' Regards |
Messages In This Thread |
Subquery or Join - by omid_student - 09-27-2017, 06:27 AM
RE: Subquery or Join - by rtenny - 09-27-2017, 08:42 AM
RE: Subquery or Join - by omid_student - 09-27-2017, 08:48 AM
RE: Subquery or Join - by dave friend - 09-27-2017, 01:48 PM
RE: Subquery or Join - by omid_student - 09-28-2017, 11:31 AM
RE: Subquery or Join - by dave friend - 09-28-2017, 12:11 PM
RE: Subquery or Join - by rtenny - 09-29-2017, 07:08 AM
RE: Subquery or Join - by ciadvantage - 09-29-2017, 08:05 AM
RE: Subquery or Join - by omid_student - 09-29-2017, 12:52 PM
RE: Subquery or Join - by php_rocs - 09-29-2017, 04:00 PM
RE: Subquery or Join - by omid_student - 09-30-2017, 11:19 AM
|