Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

query result is without column header

Former Member
0 Likes
990

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??

2 REPLIES 2
Read only

pokrakam
Active Contributor
0 Likes
792

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 ...

Read only

0 Likes
792

It doesn't work ;-/