title: How to show 0 or null values if record is not found in reference table
body: <p>I have 3 tables
  UserMaster , pagesMaster and pageRightMaster</p>
  
  <p>UserMaster table stores the users data,<br/>
  pagesMaster stores the pages data,<br/>
  pageRightMaster stores the records of which user have what permissions.<br/></p>
  
  <p>here are table structure</p>
  
  <p><a href="https://i.stack.imgur.com/9OiOR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9OiOR.png" alt="enter image description here"></a></p>
  
  <p>Now i want to display all the pages from pages master table user wise with their permissions. If no permission record found for user for particular page, it should display as 0.</p>
  
  <p>it means, if user selects the userid 2, then all the pages from pages_master table will be displayed along with it's page_permissions. If there is no record in page_permission table for particular user that means the user have no permission and it should display as 0. </p>