Hi, I want to make a query to obtain a complementar result, let me try to simplify the question, considering the table:
I'd like to receive the numbers that doesn't appear for a name, with number < 10, for instance. If I had a table with all the numbers in a column, I could build the query, but I think that I can solve this in a simple way. Obs: the database is Oracle.
Code:
NAME NUMBER
---- ------
a 5
a 8
a 9
b 2
b 3