LEARNING SQL / CATATAN</>↗Learning SQL30 Jul 2026
A SELECT statement can easily return thousands or millions of rows, but in most real applications you only need a handful of them at a time — the ten cheapest books, the top five customers, the most recent orders, or a single page of search results. Downloading everything and discarding the rest wastes memory, network […]
LEARNING SQL / CATATAN</>↗Learning SQL27 Jul 2026
When you run a SELECT statement, the database does not promise to return rows in any particular order. If you want a predictable sequence — the cheapest books first, the newest orders on top, or authors listed alphabetically — you have to ask for it explicitly. The tool SQL gives you for that is the […]
LEARNING SQL / CATATAN</>↗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 / CATATAN</>↗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 / CATATAN</>↗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 / CATATAN</>↗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 […]