i have an output temporary table created with a sql stored procedure. it will list total days for types of insurances listing them in seperate fields here is the abbreviate version:
patient insurance qtydays
AAA MCare 19
AAA MCaid 07
AAA Private 21
what id like to see is the following:
patient MCaredays MCaidDays PrivateDays
AAA 19 07 21
Im guessing PIVOT would work but cant get it to work any help is appreciated!