-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
  • 25,246
  • 15
  • 42
  • 71
Opan
  • 1

1 Answers1

1

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

Dale K
  • 25,246
  • 15
  • 42
  • 71
luisvenezian
  • 441
  • 5
  • 18