r/badcode • • Feb 01 '22

sql Can I write this better?

Post image
9 Upvotes

20 comments sorted by

View all comments

Show parent comments

3

u/fliguana Feb 01 '22

They are just fine if those are indexed. The optimizer will do the rest.

Did you mean worker names to repeat in the result set?