Answer the question
In order to leave comments, you need to log in
How to design a weather database (meteo parameters are different)?
Good afternoon,
it is necessary to develop a database to store information about the weather, what is the weather in different places, the fact and the forecast.
Experience is not enough, so I would like to contact you!
The conditions are the following parameters: Weather station (Name, Coordinates), Airport (Name, coordinates), Date and time of measurement, temperature, pressure, wind speed...
Forecast and fact.
I guess you can do the following:
Meteostation
id, Dolgota, Shirota
Aeroport
id, Dolgota, Shirota
weather
id, temperature, veter, pressure, measuring_time, ...
weather_prognoz
id, temperature, wind, measuring_time, ...
...
Answer the question
In order to leave comments, you need to log in
Option 1 - according to the table per parameter:
Location:
- Id: INT NOT NULL
- Type: ENUM NOT NULL
- Position: GEOGRAPHY NOT NULL (или оставьте пару даблов для координат)
Temperature:
- LocationId -> Location.Id (вн. ключ)
- Time: DATETIME NOT NULL
- Value: DOUBLE PRECISION NOT NULL;
Pressure:
...
WindSpeed:
...
Location:
- Id: INT NOT NULL
- Type: ENUM NOT NULL
- Position: GEOGRAPHY NOT NULL (или оставьте пару даблов для координат)
Measurement:
- LocationId: -> Location.Id
- Time: DATETIME NOT NULL
- Temperature: DOUBLE PRECISION;
- Pressure: DOUBLE PRECISION;
- WindSpeed: DOUBLE PRECISION;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question