Jump to content

help with using a full join


skaterdav85

Recommended Posts

I have 2 tables:owners (id, name)pets (id, name, owner_id)I wanted to try using a full join to bring all the results back from both tables whether there is a match or not. Here is my query:

SELECT owners.name, pets.nameFROM ownersFULL JOIN petsON owners.id = pets.owner_id

It does not work however. I get an error saying: #1054 - Unknown column 'owners.name' in 'field list'Am I using the full join incorrectly?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...