> If you know SQL why is this better than just writing SQL? If you don’t know SQL how do you know it’s correct?
You test it.
And what do you mean by “know SQL?” No one knows everything about SQL. Virtually everyone writing SQL is in between the two extreme cases you provide.