2
I have the following code that gives me a table like the picture, but my doubt is how do I only get the name and only the name of the one that has the highest health value that will be gasoline? It is possible to use a NOT EXISTS in this case?
SELECT O.nome, SUM(E.saude)
FROM Objecto O, Elemento E, composto C
WHERE O.marca = C.prodMarca AND C.produto = O.codigo AND C.elemento = E.codigo
GROUP BY O.nome
But NOT EXISTS would be used with what other query?
– R.Santos