Dynamic Column Names or Column Alias

  • Is it possible for column names or aliases to be generated dynamically?

    I have a query that will return monthly totals for a range of 12 months, but the start month can vary. Instead of using 'Month1', 'Month2', etc. it would be nice for the column headings to show 'mmyyyy'. I tried using local variables, but it did not work.

  • Thank you Stuart, this is a big help.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply