SQL: retrieve only the records whose value has changed

后端 未结 7 1370
一整个雨季
一整个雨季 2020-12-17 02:13

Sorry for the nondescript title. I\'ll edit as we go along.

I have a table RateTable:

| Code   |  Date     |   Rate  |

  B001     2009-         


        
相关标签:
7条回答
  • 2020-12-17 02:50

    Add a new column which will be a DateTime and track when the rate changed. Then you can just return any columns who DateModified >= x...Where x is the last time you checked.

    0 讨论(0)
提交回复
热议问题