SQL packet processing meteorological data and precautions

Source: Internet
Author: User

problem: from all meteorological stations nationwide data climatic data table (temperature, precipitation, wind speed, etc.) to find the station and meteorological information in the study area.

Solve:

Select station number as station number, year as year, precipitation as precipitation, average as average temperature from site climate year data where  station number in (select station number from study area site) and year in (select Dist INCT (year) from Research area site) Group by station number, year, precipitation, average temperature order by station number, year
Note: If you have groups, the columns of the query must be in the grouping!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! (That is, you cannot write a group by station number).


SQL packet processing meteorological data and precautions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.