4
I want to make an appointment sql and I want each row to have a column indicating the number of the ex row:
linha nome
1 joao
2 maria
3 tiago
. .
. .
. .
n joares
But this "row" column I don’t have on the table, so I’m trying to do something like:
select count(nome), nome from pessoas;
The problem is that when I use Count() or sum() the result comes out grouped, as if I had done or group by name then how to proceed ?
Try this: http://stackoverflow.com/a/13550826/2256325
– Sergio
@Sergio thanks, does there exist another solution say so simpler where I perform only 1 instructions in the bank?
– SneepS NinjA