-
-
Save parzibyte/b56c956006e29295cd116a7ba54f8249 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val consulta = """select coalesce(sum(ingresos.monto), 0) as total, categorias.categoria from ingresos | |
inner join categorias on ingresos.idCategoria = categorias.id | |
where ingresos.fecha between ? and ? | |
group by ingresos.idCategoria order by total desc limit 3""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment