1
I have two tables, customers and sales. I would like to know which customers have no sale, and store in the sales table the customer ID.
I tried it but to no avail:
SELECT *
FROM cliente
RIGHT JOIN vendas ON (vendas.id_cliente = cliente.id)
WHERE vendas.id_cliente IS NULL
Exactly, the best way, so just in case he uses a pagination system he will have no trouble using the
LIMIT offset, ...
– Guilherme Nascimento