Weather Observation Station 2 in SQL | HackerRank Programming Solutions | HackerRank SQL Solutions

Hello Programmers/Coders, Today we are going to share solutions of Programming problems of HackerRank of Programming Language SQL. At Each Problem with Successful submission with all Test Cases Passed, you will get an score or marks. And after solving maximum problems, you will be getting stars. This will highlight your profile to the recruiters.

In this post, you will find the solution for Weather Observation Station 2 in SQL-HackerRank Problem. We are providing the correct and tested solutions of coding problems present on HackerRank. If you are not able to solve any problem, then you can take help from our Blog/website.

Use “Ctrl+F” To Find Any Questions Answer. & For Mobile User, You Just Need To Click On Three dots In Your Browser & You Will Get A “Find” Option There. Use These Option to Get Any Random Questions Answer.

Introduction To SQL

SQL stands for Structured Query Language. SQL is used to create, remove, alter the database and database objects in a database management system and to store, retrieve, update the data in a database. SQL is a standard language for creating, accessing, manipulating database management system. SQL works for all modern relational database management systems, like SQL Server, Oracle, MySQL, etc.

  • It is a standard language for Relational Database System. It enables a user to create, read, update and delete relational databases and tables.
  • All the RDBMS like MySQL, Informix, Oracle, MS Access and SQL Server use SQL as their standard database language.
  • SQL allows users to query the database in a number of ways, using English-like statements.

Link for the ProblemWeather Observation Station 2 sql – Hacker Rank Solution

Weather Observation Station 2 sql – Hacker Rank Solution


Query the following two values from the STATION table:

  1. The sum of all values in LAT_N rounded to a scale of 2 decimal places.
  2. The sum of all values in LONG_W rounded to a scale of 2 decimal places.

Input Format

The STATION table is described as follows:


where LAT_N is the northern latitude and LONG_W is the western longitude.

Output Format

Your results must be in the form:

lat lon

where  is the sum of all values in LAT_N and  is the sum of all values in LONG_W. Both results must be rounded to a scale of  decimal places.

Weather Observation Station 2 sql – Hacker Rank Solution

5 thoughts on “Weather Observation Station 2 in SQL | HackerRank Programming Solutions | HackerRank SQL Solutions”

  1. My spouse and i ended up being so more than happy Chris could deal with his studies through your precious recommendations he grabbed using your web page. It’s not at all simplistic to just possibly be giving out ideas which usually people today could have been selling. Therefore we recognize we have got you to thank for this. The most important illustrations you’ve made, the easy site menu, the relationships you help instill – it’s many overwhelming, and it’s aiding our son and us understand this subject is amusing, and that is rather mandatory. Thank you for all!

  2. I would like to express some thanks to the writer for rescuing me from this type of crisis. Right after looking out throughout the the web and finding thoughts that were not powerful, I figured my entire life was done. Living without the presence of answers to the difficulties you’ve resolved through your entire short post is a serious case, as well as those that might have negatively affected my career if I had not noticed your blog. Your own personal knowledge and kindness in controlling the whole lot was precious. I don’t know what I would have done if I had not come upon such a solution like this. I can also at this point look forward to my future. Thanks a lot so much for this high quality and amazing help. I won’t think twice to recommend your blog post to anybody who would need care on this situation.

  3. Hi there! This post couldn’t be written any better! Reading through this post reminds me of my previous room mate! He always kept talking about this. I will forward this article to him. Pretty sure he will have a good read. Thank you for sharing!


Leave a Comment

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker🙏.

Powered By
Best Wordpress Adblock Detecting Plugin | CHP Adblock