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 18 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 Problem – Weather Observation Station 18 sql – Hacker Rank Solution
Weather Observation Station 18 sql – Hacker Rank Solution
Problem:
Consider and to be two points on a 2D plane.
- a happens to equal the minimum value in Northern Latitude (LAT_N in STATION).
- b happens to equal the minimum value in Western Longitude (LONG_W in STATION).
- c happens to equal the maximum value in Northern Latitude (LAT_N in STATION).
- d happens to equal the maximum value in Western Longitude (LONG_W in STATION).
Query the Manhattan Distance between points and and round it to a scale of 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.
Weather Observation Station 18 sql – Hacker Rank Solution
SELECT ROUND(ABS(MIN(LAT_N)-MAX(LAT_N)) + ABS(MIN(LONG_W)-MAX(LONG_W)), 4) FROM STATION;
Wonderful blog! I found it while surfing around on Yahoo News. Do you have any suggestions on how to get listed in Yahoo News? I’ve been trying for a while but I never seem to get there! Thank you
Good write-up, I?¦m regular visitor of one?¦s website, maintain up the excellent operate, and It is going to be a regular visitor for a long time.
Enjoyed looking through this, very good stuff, thankyou.
Does your site have a contact page? I’m having trouble locating it but, I’d like to shoot you an email. I’ve got some suggestions for your blog you might be interested in hearing. Either way, great site and I look forward to seeing it improve over time.
Usually I don’t read article on blogs, but I wish to say that this write-up very forced me to check out and do it! Your writing taste has been surprised me. Thanks, very great article.
Keep up the good piece of work, I read few blog posts on this website and I think that your web site is very interesting and holds sets of excellent information.
Hello There. I found your blog using msn. This is a really well written article. I will make sure to bookmark it and come back to read more of your useful info. Thanks for the post. I’ll certainly return.
I have been browsing online more than 3 hours lately, but I by no means discovered any interesting article like yours. It is pretty price enough for me. Personally, if all web owners and bloggers made just right content as you probably did, the web might be much more helpful than ever before.
Loving the info on this site, you have done outstanding job on the blog posts.
fantastic post, very informative. I wonder why the other specialists of this sector do not notice this. You must continue your writing. I am sure, you have a great readers’ base already!
You made some clear points there. I did a search on the issue and found most persons will consent with your site.
Thank you a lot for giving everyone a very superb possiblity to read critical reviews from here. It’s usually so amazing and as well , full of a great time for me and my office colleagues to visit the blog not less than 3 times in a week to read through the newest items you have. And indeed, I am certainly satisfied considering the dazzling thoughts you serve. Selected 1 facts in this posting are basically the most efficient we’ve ever had.
Excellent read, I just passed this onto a friend who was doing a little research on that. And he actually bought me lunch since I found it for him smile Thus let me rephrase that: Thanks for lunch!
Thanks for sharing excellent informations. Your web site is very cool. I’m impressed by the details that you’ve on this web site. It reveals how nicely you perceive this subject. Bookmarked this website page, will come back for more articles. You, my pal, ROCK! I found just the info I already searched everywhere and simply couldn’t come across. What a great website.
The next time I read a blog, I hope that it doesnt disappoint me as much as this one. I mean, I know it was my choice to read, but I actually thought youd have something interesting to say. All I hear is a bunch of whining about something that you could fix if you werent too busy looking for attention.
Very clear site, thankyou for this post.
I like this post, enjoyed this one thankyou for posting.
Aw, this was a really nice post. In concept I wish to put in writing like this additionally – taking time and actual effort to make a very good article… but what can I say… I procrastinate alot and under no circumstances seem to get something done.
Howdy! This post couldn’t be written any better! Reading this post reminds me of my old room mate! He always kept talking about this. I will forward this write-up to him. Fairly certain he will have a good read. Many thanks for sharing!
I’m no longer sure where you’re getting your information, but good topic. I must spend some time studying more or understanding more. Thanks for excellent information I used to be searching for this info for my mission.
I like what you guys are up too. Such smart work and reporting! Keep up the excellent works guys I?¦ve incorporated you guys to my blogroll. I think it’ll improve the value of my site 🙂
I was wondering if you ever thought of changing the page layout of your site? Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better. Youve got an awful lot of text for only having 1 or 2 pictures. Maybe you could space it out better?
I couldn’t resist commenting
I went over this website and I think you have a lot of excellent info , saved to my bookmarks (:.
Hi there very nice website!! Guy .. Excellent .. Wonderful .. I will bookmark your blog and take the feeds also…I’m satisfied to find so many helpful info right here in the post, we need work out more strategies in this regard, thank you for sharing. . . . . .
This is a topic close to my heart cheers, where are your contact details though?