What is the best way to store historical data in SQL Server 2005/2008?

后端 未结 8 952
刺人心
刺人心 2021-02-12 10:55

My simplified and contrived example is the following:-

Lets say that I want to measure and store the temperature (and other values) of all the worlds\' towns on a daily

8条回答
  •  渐次进展
    2021-02-12 11:34

    If you store all in one table how are you going to make a relational database.

    Example:

    id--------------GUID----PK

    record_id-------GUID

    every time a new record will be inserted the [id] will change but [record_id] will remain same. Now if you have to link it with address table how are you going to do that?

提交回复
热议问题