Note that there are some explanatory texts on larger screens.

plurals
  1. POInner Join not working after two rows?
    text
    copied!<p><strong>Here is my query and it's not showing the 3rd row even though the tables contents match.</strong></p> <pre><code>SELECT shopcategory_idcategory_name FROM shopcategory INNER JOIN category ON shopcategory_id=category_id; </code></pre> <p><strong>Result:</strong></p> <pre><code> ================================================================ | shopcategory_id | shopcategory_shopid | category_name | ================================================================ | 1 | 1 | Gadgets | | 2 | 2 | Analog Device | ================================================================ </code></pre> <p><strong>Here is my query that shows it has 3 rows</strong></p> <pre><code>SELECT * FROM shopcategory; </code></pre> <p><strong>Result:</strong></p> <pre><code>=================================================================== | shopcategory_id | shopcategory_shopid | shopcategory_categoryid | =================================================================== | 1 | 1 | 1 | | 2 | 2 | 2 | | 3 | 3 | 3 | =================================================================== </code></pre> <p><strong>EDIT: Query for my category table</strong></p> <pre><code>SELECT * category; </code></pre> <p><strong>Result:</strong></p> <pre><code>============================================== | category_id | category_name | ============================================== | 1 | Gadgets | | 2 | Analog Device | | 3 | Beauty | | 4 | Keyboard | | 5 | Instruments | | 6 | Monitor | | 7 | Chairs | ============================================== </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload