June 23, 2022, 1:46 p.m. | /u/rotterdamn8

Data Science www.reddit.com

I'm not sure how common this is, but I've seen some analytics people copy and paste SQL code many times, where there's some slight variation. Say, doing a similar transformation but on different columns. It causes the length of the code to blow up.

Just like using functions in programming, you can do for loops, if/then conditions, take input arguments, etc.

But for the love of god please don't copy and paste a code block 20 times lol.

code datascience sql sql code

AI Research Scientist

@ Vara | Berlin, Germany and Remote

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne

Senior Machine Learning Engineer (MLOps)

@ Promaton | Remote, Europe

Senior Machine Learning Engineer

@ Samsara | Canada - Remote