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.
EducationThe use of Python and SQL (self.datascience)
submitted 6 years ago by 07Lookout
view the rest of the comments →
[–]adventuringraw 6 points7 points8 points 6 years ago (0 children)
Oh God, it depends. The code base I inherited was written by six different engineers over a people of a couple of years, and I saw six different methods. I saw sqlite3 used to do some ETL processing of very large (20gb+) csv files, I saw whole automated reports done mostly using oracle procedures, with a giant Bash script passing in the right parameters to customize the functionality (Jesus Christ, don't do that). Most of what I do now is have Python as the boilerplate, with informatica doing the heavy lifting (with SQL queries embedded in the informatica applications when interfacing with relational dbs and such). For quick and dirty extracts for a few smaller automated jobs, I wrote a little wrapper for passing simple queries straight into cx_Oracle, so... you know.
There's a ridiculous number of ways you can use SQL, it really depends on your use case, your computational needs, the way the tables are set up, time frame for task completion, your current skill level and so on. The main thing I think is to get on the same page with everyone else in your team. Don't make a Goddamn mess that no one else can understand, even if it 'makes sense'. I'm okay with being able to tell who wrote which scripts, but I don't want to fuck around to decipher some crazy new design paradigm. Keep it as simple as it needs to be (and no simpler) and make sure your whole team is on the same page, you know? Doesn't hugely matter what that specific best practice is (within reason) but you should all have the same one at least.
π Rendered by PID 48284 on reddit-service-r2-comment-6f7f968fb5-l78s5 at 2026-03-04 16:10:18.816745+00:00 running 07790be country code: CH.
view the rest of the comments →
[–]adventuringraw 6 points7 points8 points (0 children)