SQL is Similar to English
At this point, you might be thinking that youre not a programmer and learning a programming language is certainly not up your alley. Fortunately, at its core, SQL is a simple language. It has a limited number of commands and those commands are very readable and are almost structured like English sentences.Introducing Databases
Before we get started, its important that you have a basic understanding of how databases work. If youre comfortable with terms like table, relation and query, feel free to plow right ahead! If not, you may wish to read the article before moving on.Lets look at an example. Suppose you have a simple database designed to keep the inventory for a convenience store. One of the tables in your database might contain the prices of the items on your shelves indexed by unique stock numbers that identify each item. Youd probably give that table a simple name like Prices. If you were considering removing items from your store that were priced over $5, you might want to retrieve this information from your database.
Your First SQL Query
Before we get into the SQL statement required to retrieve this information, lets try phrasing our question in plain English. We want to select all stock numbers from the prices table where the price is over $5. Thats a pretty simple request when expressed in plain English, and its almost as simple in SQL! Heres the corresponding SQL statement:SELECT StockNumberIts as simple as that! If you read the statement above out loud, youll find that its extremely similar to the English question we posed in the last paragraph.
FROM Prices
WHERE Price > 5
Interpreting SQL Statements
Now lets try another example. This time, however, well do it backwards. First, Ill provide you with the SQL statement and lets see if you can explain it in plain English:SELECT Price
FROM Prices
WHERE StockNumber = 3006
So, what do you think this statement does? Thats right, it retrieves the price from the database for item 3006.
Theres one simple lesson you should take away from our discussion at this point: SQL is like English. Dont worry about how you construct SQL statements; well get to that in the rest of our series. Just realize that SQL isnt as intimidating as it may first appear.
Now that you're familiar with the basics of SQL, read the following articles to get some more advanced training:
- Retrieving data with the SELECT command
- Adding data with the INSERT command
- Deleting data with the DELETE and TRUNCATE commands
- Creating new tables with the CREATE command
- Removing tables with the DROP command
- Combining tables with the JOIN command
- Using TRY CATCH to Handle SQL Server Errors
- Classifying Results with SQL CASE Statements

