I am a newbie at MySQL….. I am trying to left join 3 tables one contains some_id,name,count,descr and second one has id,some_id,uni_id and the last one has uni_id,price,added,etc So when i try to join these three tables it says that there’s no such field named descr
What could be the best way to join these tables without modifying structure of them?
Assuming the following schema:
table1(some_id, name, count, descr), wheresome_idis the primary key;table2(id, some_id, uni_id), wheresome_idis a foreign key totable1;table3(uni_id, price, added), whereuni_idis a foreign key totable2.All you need to do is a
LEFT OUTER JOINbetween the three tables:References: