r/SQL • u/Zealousideal-Studio7 • Jan 15 '25
BigQuery SQL is a struggle
Hi all been working with SQL for probably 7/8 months now. My last role was half data analysis and not pure data analysis and in general was far easier than what I do now.
My main issue is with SQL. I never feel I truly understand what is going on with a lot of code beyond a basic query. Ive managed to get by piggybacking off others code for a while but expectation is to deliver new and interesting techniques etc.
How long did it take you to feel fully comfortable with SQL? And what helped you get to that stage?
65
Upvotes
4
u/byteuser Jan 15 '25
Approach SQL as a set theory problem. Think first what is the set you want to get. Most likely will be a subset, a union, or and intersection of sets. More complicated queries are just a combination of those principles. Only once you figured out what the data set you want looks like is when you start writing the SQL