[英]How to get data in that form using SQL Query
I have stored data in one table 't' in which I have all year data of user what I have . 我已经将数据存储在一个't'表中,其中存储了我所拥有的用户的全年数据。 In result of query I want the total number of new users as per year. 在查询结果中,我想要每年的新用户总数。
Example: 例:
year , count
1991 360
1992 640
2000 2000
Result required:
Year, NewUsers
1991 360
1992 280 (640-360)
2000 1720
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.