LEARNING SQL / NOTES</>↗Learning SQL19 Jul 2026
When you query a table, you rarely want every row it contains. Most of the time you want specific rows — customers from a certain city, orders above a certain price, or books written by a particular author. The WHERE clause is the tool SQL gives you to express exactly which rows should be returned. […]
LEARNING SQL / NOTES</>↗Learning SQL19 Jul 2026
The SELECT statement is the most fundamental SQL command — it lets you read (query) data from one or more tables in a relational database. Here’s a comprehensive guide to using it effectively. 1. The Basic Syntax SELECT column1, column2, … FROM table_name; SELECT — tells the database what columns you want. FROM — tells […]
LEARNING SQL / NOTES</>↗Learning SQL18 Jul 2026
To insert data into a SQL table, you use the INSERT INTO statement. Here’s a breakdown of the syntax, common patterns, and how it fits into a Spring Data JPA project. 1. Basic Syntax INSERT INTO table_name (column1, column2, column3) VALUES (value1, value2, value3); Example — inserting a user into a users table: INSERT INTO […]
LEARNING SQL / NOTES</>↗Learning SQL18 Jul 2026
Choosing the right data type is one of the most important decisions when designing a database schema. It affects storage size, performance, data integrity, and future maintainability. Here’s a practical guide to help you decide. 1. Start With the Nature of the Data Ask yourself: What kind of value will this column hold? Data Nature […]
LEARNING SQL / NOTES</>↗Learning SQL18 Jul 2026
Now that you have a database server installed, let’s walk through creating your first database and table. I’ll show you how to do this both directly with SQL (recommended for learning) and briefly mention the programmatic approach. Part 1: Create Your First Database Step 1: Connect to Your Database Server Open a terminal and connect […]
LEARNING SQL / NOTES</>↗Learning SQL18 Jul 2026
Getting a local database up and running is the first step toward learning SQL hands-on. Here’s a practical, beginner-friendly guide. Step 1: Choose a Database System For learning SQL, I recommend one of these free options: Database Best For SQLite Absolute beginners, no setup MySQL Web development, widely used PostgreSQL Modern SQL features, professional use […]