I want to FULL JOIN following two tables
Table 1: Persons
P_Id Name
1 A
2 B
3 C
4 D
5 E
Table 2: Invoice
Id P_Id
111 3
112 3
113 1
114 1
115 15
I used this query :
SELECT Persons.Name, Persons.P_Id, Invoice.Id
FROM Persons
FULL JOIN Invoice
ON Persons.P_Id=Invoice.P_Id
ORDER BY Persons.Name
But this generates an error
Unknown column 'Persons.Name' in 'Field list'
MySQL server version is 5.5.19 and I used command line client in Microsoft Windows7
INNER JOIN, RIGHT JOIN and LEFT JOIN worked for me but I can't perform FULL JOIN. What is the error please tell me I'm still a student. How can I perform FULL JOIN here ?
Thank You!