Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

MYSQL JOINING Tables

$
0
0
Im new to this Joining of tables and im trying to make a full join on my 2 tables;
table teacher:ID,first_Name,MI,Last_Name
table orders:Order_ID,items,amount.

what im doing is:
SELECT *
FROM teacher
FULL JOIN order
ON teacher.ID = Orders.Order_ID
ORDER BY First_name;

and for some reason it's not working.. im getting >> Unknown column 'teacher.ID' in 'on clause'

Hope u could check this out, i tried couple of syntax and it didn't work out..
Thanks in advance guys.

Viewing all articles
Browse latest Browse all 13329