If i have at table with a xml column datatype and want to create sql view which displays certain values from within xml nodes of ALL the table records (not just one) what is the best way to do this? All the examples I've seen take simply the value of one xml column of one records a produce a reuslt but what if I wanted to query over all the records and produce SUMS, group bys, ETC. Is the only way for me to creatre a sproc and loop through every record, insert them into a temp table, and then do my selects/aggregations? Or is there a better more efficient way?
thanks for any advice!