Menu
let say there is a 3 tables. table1, table2 and table3.
table1 have pkey, name(foreign key to table3)
table2 have pkey, new_name(foreign key to table3), old_name(foreign key to table3)
table 3 have pkey, name_id, name_description(primary)
how do i select from here to show all the data? because right now i m doing on a report writer which confuse me a lots.
[code=php]
“select name as name_Table1 , new_name as newname_Table2 , old_name as oldname_table2 from table1 left join table3 on table3.pkey = table1.name left join table2 left join table3 on table3.pkey = table1.name”;