SQL is the language to use for communicating with databases. SQL stands for Structured Query Language and is pronounced like 'sequel.'
Almost all web and mobile apps store information in a database. For example, Everpath stores information about each of our courses in a database, and this information is easily accessible through our course pages.
But sometimes business users want to directly access the information. For example, let's say I want to know how many free courses are in our catalog. In this case, I'll need to query the database directly using SQL.
(Note: this is written from the perspective of a business user, not as a developer or database administrator.)
Knowing SQL is a valuable skill for accessing and analyzing information that is stored in a database. There are several flavors of the SQL language depending on the database type, but the variations are relatively minor. SQL can be used to query data in places like Microsoft Access, MySQL, Microsoft SQL Server, Oracle SQL, and more.
Some of these databases have 'drag and drop' interfaces that can help you construct a SQL query. Still, it's helpful to understand SQL syntax so that you can modify queries as you wish.
To read data from a database, your SQL query will generally have the following three components:
Although there are many more components that can be added, queries for reading data will generally follow the SELECT, FROM, WHERE format. (Queries for updating, inserting, or deleting data have different formats that aren't covered here.)
If I wanted to list the free courses in the Everpath catalog, I'd use the following query:
Here are our recommendations for SQL tutorials: