this is for mysql and php.
let say i have to grab info from 2 different tables
is it better/faster to do it like this:
select a.name, a.phone, a.address, b.bookid, b.bookdescription
from user a, book b
where a.ID = b.ID
and a.ID = 300
or is it better/faster to do 2 diff queries?
select a.name, a.phone, a.address
from user a
where a.ID = 300
select b.bookid, b.bookdescription
from book b
where b.ID = 300?