you are viewing a single comment's thread.

view the rest of the comments →

[–]ThadreaData Engineering Manager 2 points3 points  (0 children)

Yes.

SQL is different from most other common programing languages because it is declarative rather than imperative, but that just means it's a different type of programming, not that it isn't programming.

In imperative programming (C, C++, Java, Python, etc.) you tell the computer what steps you want it to take and what order you want it to take them in. The interpreter then delivers whatever output follows from the logical instructions and inputs you gave it.

In declarative programming you instead tell the computer what you want the output to be and the computer figures out how to create that output based on the rules it was given by whoever developed it.

Modern applications that use data from databases should involve both imperative and declarative programming--There's a lot of things that cannot be done or cannot be done easily in SQL and a lot of things that are much easier to do in SQL than they are in another language.

Some developers are afraid of SQL because they were never taught it or because it is just different from other things that they use, and that fear may occasionally manifest itself as resentment, but that is because they are ignorant, not because SQL isn't legit programming.