Blog Posts

Introduction to SQL

March 7, 2025 | Categories: Intro

Welcome to the SQL Playground. This space allows for learning SQL through exercises, coding challenges, and hands-on practice.

What is SQL?

SQL (Structured Query Language) is a powerful language used to interact with relational databases. Whether you are a beginner or an experienced developer, SQL is an essential skill for …

SQL Lesson 1: SELECT statement

March 27, 2025 | Categories: Information

To retrieve data from a SQL database, we use SELECT statements, which are commonly referred to as queries. A query is simply a request that tells the database what data we need, where to find it, and optionally, how to process it before returning the results. Queries follow a specific …

Tables

April 2, 2025 | Categories: Information

Tables are the main structures in the relational database. Each table always represents a single specific subject. The logical order of rows and columns within the table is of absolutely no importance. Every table contains at least one column, known as a primary key, that uniquely identifies each of its …

SQL Lesson 2: Queries with constraints

April 3, 2025 | Categories: Information

In the previous lesson, we explored how to retrieve data using the SELECT statement. Now it’s time to make our queries smarter by filtering the data to return only the rows we’re interested in. This is where the WHERE clause comes into play.

Imagine you’re working with a large dataset …

Relationships

April 4, 2025 | Categories: Information

If rows in a given table can be associated in some way with rows in another table, the tables are said to have a relationship between them. The manner in which the relationship is established depends on the type of relationship. Three types of relationships can exist between a pair …

SQL Lesson 3: Filtering and Sorting Query Results

April 22, 2025 | Categories: Information

In previous lessons, we learned how to retrieve data from a database using the SELECT statement and apply conditions using WHERE. Now, let’s dive into more ways to refine your query results by: