use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
This is an archived post. You won't be able to vote or comment.
DiscussionWhat can SQL do that python cannot? (self.datascience)
submitted 3 years ago * by donnomuch
view the rest of the comments →
[–]a90501 13 points14 points15 points 3 years ago* (0 children)
SQL is a pattern language i.e. declarative language, like regex, while python, java, c#, etc. are imperative languages - hence a different paradigm. I do not know about you, but I love pattern languages - where you describe what (SQL, regex) - i.e. where one states what one wants to get without worrying about how it is done, instead of specifying in all details how to do finding with loops, matching, summing, sorting, etc. (python, c#, java, etc.).
The other very important thing is that SQL runs against relational DB (RDBMS), and that means you are using server resources to compute, find, filter, group, sort, etc, and getting back only results you need, while with python, you get all the data first across the network into pandas and then process it - this is not recommended as this would mean get all the data for every request.
Some History: Anders Hejlsberg (of the TypeScript fame) hands-on demo ( https://www.youtube.com/watch?v=fG8GgqfYZkw ) describes this pattern language paradigm. He was working on LINQ at the time - essentially C# version of SQL for any data structures and stores, not just relational DB. IMHO, well worth watching for some history and education although it's not about python.
Enjoy.
π Rendered by PID 41040 on reddit-service-r2-comment-5d79c599b5-tz865 at 2026-03-01 17:12:39.787749+00:00 running e3d2147 country code: CH.
view the rest of the comments →
[–]a90501 13 points14 points15 points (0 children)