So I have two tables, one containing user info (Users
), and the other containing info of which users not to show (Settings
). So, I want to do a query that will show all the users in the users
table except the ones listed in the settings
. Thanks in advance.
Users
| id | name |
===============
| 1 | adam |
| 2 | alex |
| 3 | andrew|
Settings
| id | name | value | user_id |
===============================
| 1 | hide | 1 | 1 |
I want the results to be :
| id | name |
==============
| 1 | alex |
| 2 | andrew|