I want to make a query sql and I want each line to have a column indicating the line number eg:
linha nome
1 joao
2 maria
3 tiago
. .
. .
. .
n joares
But, this column "line" I do not have in the table, so I'm trying to do something like:
select count(nome), nome from pessoas;
The problem is that when I use sum () or sum like I did or group by name then how to proceed?