pivot it to get data in desired formatselect Classification,[Low],[Medium],[High],[Critical]from(Select Incident_Number,Priority,ClassificationFrom vars76_hpd_help_desk inner joinvTbl_Remedy_Group_Classification ON vARS76_HPD_Help_Desk.Assigned_Group = vTbl_Remedy_Group_Classification.Group_Namewhere (status = 'Assigned' or status = 'New' or status = 'Pending' or status = 'in progress'))tPIVOT (COUNT(Incident_number) FOR Priority IN ([Low],[Medium],[High],[Critical]))pORDER BY Classification
for inserting above into tablejust useINSERT into tableabove select statement------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/