This isn't urgent, just me being curious and for future reference.
Is there a way to grab records from multiple tables?
example:
Table1
ID
ParentName
Address
Phone number
Table2
ID
ParentID (from table 1)
KidName
I want to display the ParentName and KidName with out having to query the database twice.
I would have thought that Select Table1.ParentName, Table2.KidName from Table1, Table2 where ParentName = "Joe" would work but it doesnt. I can't find anything on this on the web.
Thanks in advance. I'm just trying to further my SQL knowledge.
Is there a way to grab records from multiple tables?
example:
Table1
ID
ParentName
Address
Phone number
Table2
ID
ParentID (from table 1)
KidName
I want to display the ParentName and KidName with out having to query the database twice.
I would have thought that Select Table1.ParentName, Table2.KidName from Table1, Table2 where ParentName = "Joe" would work but it doesnt. I can't find anything on this on the web.
Thanks in advance. I'm just trying to further my SQL knowledge.