Monday, 25 March 2019

Weather Observation Station 13 HackerRank SQL Solution

Problem:-

Query the sum of Northern Latitudes (LAT_N) from STATION having values greater than  and less than . Truncate your answer to  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.

Solution:-

SELECT ROUND(SUM(Lat_N), 4)
FROM STATION

WHERE Lat_N > 38.7880 AND Lat_N < 137.2345;

No comments:

Post a Comment

Error While embed the video in Your website page

Error:- Refused to display '<URL>' in a frame because it set 'X-Frame-Options' to 'sameorigin Solution:- if ...