0
What I’m trying to do is this: List the names of the Cds that have a sales price greater than 10.00 reais or the label is code 3, ordered alphabetically by decreasing the names of the Cds. Show CD names starting with uppercase.
And I did the following query:
SELECT INITCAP(CD_NOME) FROM CD
INNER JOIN GRAVADORA ON CD.GRAV_CODIGO = GRAVADORA.GRAV_CODIGO AND CD_PRECO_VENDA > 10 OR GRAV_CODIGO = 3
ORDER BY DESC CD_NOME;
However, you are showing the following error:
ORA-00936: expression not found
What am I doing wrong? :(
The error (without entering the solution) is in order by, put ORDER BY 1
– Motta