I have table in which I have to update the number of users on that particular date and number of users in past 7 days from the given date. Sample data looks like
Date UserCountToday UserCount7days
20120911 907575
20120910 953629
20120909 1366180
20120908 1388916
20120907 1009425
20120906 918638
20120905 956770
20120904 1018152
20120903 1306341
try this:
result