Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Selecting a Column dynamically

$
0
0
I Have a table with the following columns
Business Unit,
AprTarget,
AugTarget ,
DecTarget,
Etc

Depending on the month we are in want to select the column with the appropriate month. So, if I ran the query today (Being March) I

Viewing all articles
Browse latest Browse all 3145

Trending Articles