As you've realized by now, SQL is very different than most programming languages. Most programming languages deal with sets of linear instructions that kick off when something happens. For example, a user clicks a button that says print, a series of commands kick off to print the document. It might also check to see if the printer is on or available before proceeding.