当前位置:网站首页>SQL writing problem to calculate the ring ratio of the current month and the previous month

SQL writing problem to calculate the ring ratio of the current month and the previous month

2022-06-23 09:57:00 CSDN Q & A

Excuse me , I want to compare the sales volume of each month with that of last month , How to write this if it comes out of the loop sql Sentence? ?

img

It's only two months now , But there will be 7 Of the month ,8 Of the month , I want to cycle through something like 8 Monthly ratio 7 How much more month on month ,

img


For example, there should be more ring comparison columns in the back , Do you want to do it in a loop , Ask for advice ~~

原网站

版权声明
本文为[CSDN Q & A]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/174/202206161811040292.html