‎2017 May 24 9:31 PM
My query is working fine but result is coming without column header and if I export this to Excel this column is omitted, does anyone know how to sort it??

‎2017 May 24 10:24 PM
That's because the column is a result of a function and doesn't have a name. Not 100% sure if it will appear in your output, but you can give columns an alias with AS. Worth a try.
SELECT col1, col2, sum(col3) AS total, col4 ...
‎2021 Mar 24 6:25 PM