I have a table named
menu with columns
menu_id,menu_name,system_id,filename
another table with the menu_users
with fields
menu_user_id,menu_id
Another table named
system
system_id,system_name
I want to join all the three table to get columns from the menutable and systemname from the system table
I tried
SELECT * FROM menu, menu_users, System
WHERE menu.menu_id=menu_users.menu_id
AND menu.system_id=System.system_id
But I’m not able to get the desired result.
Please help me
In order to join, it’s better to use a JOIN command:
That being said, you don’t need backticks like you had.
Last but not least, DON’T use
SELECT *in any query. Ask for the columns you need only.