title: Check value for every month in a year in T-sql using cursor
body: <p>I need a example of a cursor for my meter system, where the system reads the meter every month.</p>
  
  <p>The cursor needs to check, that every meter has a reading registered in the current year. For meters with missing readings, an estimated value is added, such that the daily consumption is like the daily comsumption in the previous period plus 15%. In no previous period exiss, the above Kwh value is used.</p>