SQL is then the programming language. I am aware that this differentiation is outdated; but if one sees a scripting language as something to write a small, self-contained job and a programming language something bigger more thought through and interoperable, (and with a fair bit of hand waving), I think that analogy fits.
Of course here we do not only have a program but tabular data and operations on them.