title: Query to fetch data from two different tables
body: <p>I have two tables. Table A and B. 
  I have a log-in form where I will get the username,password, assign, assign2 of the user from table A and fetch data depending on the user's assign1 and assign2 from table B.</p>
  
  <p>How my query would look like?
  Looking for answers. Thankyou so much.</p>
  
  <pre><code>Table A -THIS IS THE TABLE FOR LOG-IN FORM
  ==========================================
  username | password | assign1 | assign2 |
  ------------------------------------------
  SANDRA   | SANTOS   |    1    |   1     | //Values
  --------------------------------------------
  
  Table B - 
  =======================================
  
  name | assign1 | assign 2 |
  ------------------------------
  DADA |  1      |   1      |  //this will be displayed
  ------------------------------
  gorg |  2      |    2     | 
  </code></pre>
  
  <p>//this must not be displayed since the user assign1 and assign2 who logged in did not match to this </p>