I'd like to know how I can do a search that returns records that are not part of the search condition.
For example, consider the situation where there is a database of a movie store with the cliente
table and the aluguel
table. The cliente
table has a cliente_id
tuple and the aluguel
table has a cliente_id
tuple.
What I want is to see the name of the clients who never rented a movie, that is, I wanted my query to return all the names that did not satisfy the script below:
'select first_name, last_name from customer
inner join rental on customer.customer_id = rental.customer_id;'