MySQL语句查询本月,上月,上上月的价格数据和两条环比数据

最近在改一个sql语句,因为它无法查出上上月的价格数据和环比数据。 先看一下原先的sql语句: ` select ROUND((thismonth.price - lastmonth.price ) / lastmonth.price * 100 ,2) hbzz, thismonth.prod_year prod_year, thismonth.prod_month prod_month , t
相关文章
相关标签/搜索