Posts by Lc_Correa • 21 points
1 post
-
2
votes3
answers1003
viewsA: How to make a select within a condition?
This way can help you: SELECT t.* FROM tabela t JOIN tabela2 t2 ON t2.id = t.id WHERE t2.outracondicao = (CASE WHEN t.saldo = 0 THEN 'condicao' END)…