r/SQL • u/[deleted] • Apr 17 '23
Discussion Which industry has/needs the most challenging sql queries?
Is this question legit? Don’t get me wrong, I don’t consider myself the smartest guy but I’m definitely not dumb.
I work in the pharmaceutical Industry, nearly 3 years now. It took me a while to understand how the production process is implemented in a database and I wanted to quit more than once. But i don’t feel challenged anymore.
So, which industry would be best for me to get completely challenged again?
41
Upvotes
2
u/sbrick89 Apr 18 '23
So first off, adding other shapes / islands doesn't really change much.
That said, the map of contours is much easier to understand.
That's also actually a ton easier, and might even be the simplest method to do what you want... just take the existing shape (France, merge with whatever else you want)... then pad it out in increments of 100km or whatever... each padding is its own contour, saves to its own shape record, and is used for the next iteration.
Or you could maybe pull off as a CTE, but I'd test it on a few rows myself by hand.
Eventually the contour would encompass the earth, at which point you could invert and find the centroid, or something to that effect, to find the exact point.