SQL Server XML with dynamic arguments
问题 I have the following table called 'mdx' yearnumber yearstart yearend weeknumber quantity 1 11-22-15 11-19-16 1 1826 1 11-22-15 11-19-16 2 1225 1 11-22-15 11-19-16 3 452 1 11-22-15 11-19-16 4 276 1 11-22-15 11-19-16 5 673 1 11-22-15 11-19-16 6 1986 1 11-22-15 11-19-16 7 3806 1 11-22-15 11-19-16 8 3608 1 11-22-15 11-19-16 9 3841 1 11-22-15 11-19-16 10 3356 1 11-22-15 11-19-16 11 3436 1 11-22-15 11-19-16 12 3437 1 11-22-15 11-19-16 13 3611 1 11-22-15 11-19-16 14 3354 1 11-22-15 11-19-16 15 3743