반응형

SQL & DB/HackerRank SQL Problem 29

[HackerRank SQL] Weather Observation Station 19, 20(MySQL)

www.hackerrank.com/challenges/weather-observation-station-19/problem Weather Observation Station 19 | HackerRank Query the Euclidean Distance between two points and round to 4 decimal digits. www.hackerrank.com Answer select round(sqrt(power(max(lat_n) - min(lat_n),2) + power(max(long_w) - min(long_w),2)),4) from station www.hackerrank.com/challenges/weather-observation-station-20/problem Weathe..

[HackerRank SQL] Weather Observation Station 17, 18(MySQL)

www.hackerrank.com/challenges/weather-observation-station-17/problem Weather Observation Station 17 | HackerRank Query the Western Longitude for the smallest value of the Northern Latitudes greater than 38.7780 in STATION and round to 4 decimal places. www.hackerrank.com Answer select round(long_w,4) from station where lat_n > 38.7780 order by lat_n limit 1 www.hackerrank.com/challenges/weather-..

[HackerRank SQL] Weather Observation Station 15, 16(MySQL)

www.hackerrank.com/challenges/weather-observation-station-15/problem Weather Observation Station 15 | HackerRank Query the Western Longitude for the largest Northern Latitude under 137.2345, rounded to 4 decimal places. www.hackerrank.com Answer select round(long_w,4) from station where LAT_N < 137.2345 order by lat_n desc limit 1 www.hackerrank.com/challenges/weather-observation-station-16/prob..

[HackerRank SQL] Weather Observation Station 13, 14(MySQL)

www.hackerrank.com/challenges/weather-observation-station-13/problem Weather Observation Station 13 | HackerRank Query the sum of Northern Latitudes having values greater than 38.7880 and less than 137.2345, truncated to 4 decimal places. www.hackerrank.com Answer select Truncate(sum(lat_n),4) #Truncate your answer to 4 decimal places. from station where LAT_N between 38.7890 and 137.2345; www.h..

반응형