Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Dynamic Pivot Report

$
0
0

"Hello!! Can anyone suggest how the holidays can be shown in pivot report and the Days dynamically for Days columns?? I have created a report something as follows":

Output obtained using union all: (P - Present A - Absent H - Holiday)

Name - 1 - 2 - 3 - 4 (Days)
AT - P - null - P - A
AT - null - H - null - null

Desired output:

Name - 1 - 2 - 3 - 4 (Days)
AT - P - H - P - A


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>