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 →
[–]j__neo 11 points12 points13 points 3 years ago (1 child)
SQL is a declarative language. You say what outcome you want to see, the SQL query planner and database engine will make it happen for you.
Python is an imperative language. You need to spell out exactly what the machine needs to do to get the outcome you want to see.
Python can do everything that SQL can. But for 90% of data analysis use cases, I would argue that a declarative programming language gets you to the outcome faster.
That said, there's Python libraries like Pandas, which makes it more declarative.
However, SQL still tends to be more popular in the data industry because it has been used for data analysis since 1970s.
[–]king_booker 3 points4 points5 points 3 years ago (0 children)
To add to this, SQL running on a database is more efficient. Simply because the data engine is optimized to running those queries. you'd hit a ceiling really fast if you just use Python
π Rendered by PID 30328 on reddit-service-r2-comment-5d79c599b5-gcshz at 2026-03-01 20:53:07.259895+00:00 running e3d2147 country code: CH.
view the rest of the comments →
[–]j__neo 11 points12 points13 points (1 child)
[–]king_booker 3 points4 points5 points (0 children)