SQL 101: A Beginner’s Handbook

Learn SQL with Udemy

For an instructor lead, in-depth look at learning SQL click below.


Welcome to SQL 101, the series dedicated to guiding you through the basics of SQL. Firstly, what is SQL? SQL stands for Structured Query Language. This is a programming language used for storing, manipulating, and retrieving data stored in relational databases.

Select Statement

The most basic statement in SQL is probably the SELECT statement. It’s used to query the data from a database and retrieve data that matches the criteria that you specify. Here’s the basic syntax:

For example, if we have a Customers table, and we want to retrieve all the customer names and their cities, we would write:

Where Clause

How about getting specific records that meet certain criteria? This is where the WHERE clause comes in handy. The WHERE clause is used to filter records and its syntax is:

For instance, if we want to select only those customers from the city “London”, our query would look like:

Insert Statement

To add new data into a database, we use the INSERT INTO statement. Here’s the basic syntax:

For example, if we want to insert a new customer into our Customers table:

Delete Statement

And of course, if you want to delete any records that match a certain condition, you would use the DELETE statement. Basic syntax:

For example, if we want to delete the customer ‘Cardinal’ from our Customers table:

In conclusion, using SQL can be simple or complex, depending on the task at hand. Whether you’re a beginner or a pro, there’s always more to learn. Today, you’ve learned about SELECT, WHERE, INSERT, AND DELETE statements. But, remember, practice makes perfect. Keep learning and keep coding!

Leave a Comment