Subject order by 1, 2 - fb 32990
Author

hi:

select 

A.Codigo

'DINHEIRO' FORMA_PAGTO

FROM NF A

where A.dataEmissao between '01.01.2018' and '31.01.2018'

 and A.Modelo = '55'


order by 1, 2


using, "order by 2", return a error but, if i use: cast('DINHEIRO' as varchar(10)) FORMA_PAGTO does not ocorrur.