r/SQL • • May 15 '26

Discussion Entry level jobs

What kind of SQL should I expect to write in entry-level data roles? I've seen some rather more complex stuff on here and is that the stuff I should expect? Or should the basic joins, group by, and when should be enough? If anyone is in an entry level role and could give examples of their queries(with names/variables changed ofc) that would be helpful!

44 Upvotes

24 comments sorted by

View all comments

Show parent comment

1

u/DrNoCool May 16 '26

And when is a subquery better than a CTE?

3

u/theRealHobbes2 May 16 '26

For debate: I have to rules for saying yes to a sub query.

  1. If I'm exploring data and trying to figure out what I need then it's ok because it can be cleaned up after the data is right.
  2. If I need a simple list for filter criteria. But only if that subquery is a single column from a single table with simple filter logic. Anything more and I'll CTE-it-out.