Question : What's the difference?

Is creating a query in SQL to obtain specific information the equivalent of programming?

Answer : What's the difference?

From wikipedia, the definition of computer programming is as follows:
"Computer programming (often shortened to programming or coding) is the process of designing, writing, testing, debugging  / troubleshooting, and maintaining the source code of computer programs"

As you are not creating source code of a computer program, instead you are just retrieving or inputting data into a database, you are not programming when writing SQL.

Programming processes include input>functions>output to get something new from the data which you put into the program in the first place. If you are just sending and retreiving the same data in different forms or places, SQL is not technically programming, just as HTML is coding not programming also. Hope this helps.
Random Solutions  
programming4us programming4us