I've got table1
and table2
and need to get data out from each of them.
Table1
"id" "name" "description"
"1" "Windows" "Microsoft Windows 8"
Table2
"id" "type" "name" "description"
"1" "22" "Microsoft Windows" "Microsoft Windows 8 Home"
"2" "2" "Not an Edit" "Not an Edit"
I do the select like this
select table1.name, table1.description,
table2.name, table2.description
from table1,table2
where table2.id=table1.id and table2.`type`=22;
Will using an inner join be quicker or more efficient when selecting some 500+ rows at a time?
I've seen most examples using a inner join to do this.