Posts by Vitor Morais • 21 points
1 post
-
2
votes2
answers55
viewsQ: Why do if or case tests not work in this subquery?
I am trying to run the following subquery within a view: (SELECT if(idnotas > 0, "não", "sim") FROM notas WHERE vendas_idvendas = p.vendas_idvendas ORDER BY idnotas DESC LIMIT 1 ) as…