mysql selecting all rows from one table even if no match in other using middle table
问题 I am having trouble with selecting all rows from a table and populating non matching ones with 0. Table "modul" ---------------------------------------------------------- | id | menu_name | modul_name | all_access | ---------------------------------------------------------- 1 books book 0 2 cds cd 0 3 tapes tape 0 table "user" -------------------- | id | username | -------------------- 1 vedran table "user_modul" ------------------------------------------ | id | user_id | modul_id | active |