-2

I have a column of values and I need it to update every 24 hours decreasing the maximum value by 1 until it reaches 0, and after that SQL will delete it. How could I do this on SQL Server?

Dale K
  • 21,987
  • 13
  • 41
  • 69
Opan
  • 1

1 Answers1

1

You can write a stored procedure that runs the code and schedule it using SQL Agent.

Dale K
  • 21,987
  • 13
  • 41
  • 69
luisvenezian
  • 375
  • 3
  • 12