5
I’ve never seen this command before and I haven’t found it here either, I don’t know if it has another name and from the Oracle documentation I couldn’t understand exactly how it works. I just want an explanation and a simple example of the command. Thank you very much.
I would also like to know why the command below does not work ( apart is because of b.NOM_CARRO) .
SELECT b.COD_CARRO, b.NOM_CARRO FROM CARROS b
MINUS
SELECT a.COD_CARRO FROM VEICULOS a;
How do I return the name of the vehicle in the returned ID? Sorry if these questions are too beginner. I didn’t understand these examples, and neither did the answers.
– Asura Khan
but it’s wrong my code, I said it doesn’t work. If I take out the b.NOM_CARRO then it works, but I need that name.
– Asura Khan
Now I think I understand. You could have explained this in the question itself because it was not clear this situation..
– Daniel Omine
I don’t know how to apply a "ignore column" using MINUS. You would have to use NOT EXISTS. I added in the answer below.
– Daniel Omine