I'll illustrate with one simple thing ...
I have a 'products' table that has columns, id, product_name, value. I have another table 'users' columns, id, name. And another table 'user purchases' id, id_user, product_id, product_name, this third table is generated from these first two ... until then OK.
I want to search the 'products' table for all items except for items that have 'id_user' (from the purchasing table) = 1 for ex
produtos
id nomedoproduto, valor
1 Roupa 100
2 Telefone 500
3 Geladeira 1500
4 TV 1000
5 Microondas 300
6 Sofá 600
users
id nome
1 José
2 Felipe
Compras dos usuários
id id_user id_produtos produtos
1 1 1 Roupa
2 1 2 Telefone
3 1 3 Geladeira
4 2 1 Roupa
Well ... if the user has already bought ... I want it not to appear in the list anymore. How do I use this with select?