-
MY PROJECTS
-
Recent Posts
- SQL.How can you compare two nullable values safely, and how does IS DISTINCT FROM differ from <>?
- SQL.How are NULL values ordered by ORDER BY, how do defaults differ between databases, and how can you control their placement?
- SQL.How does NULL propagate through arithmetic expressions, and how can COALESCE and NULLIF help handle missing values and division by zero?
- SQL.How does NULL affect join conditions, and why can filtering the right-hand table in WHERE remove unmatched rows from a LEFT JOIN?
- SQL.How do GROUP BY and DISTINCT treat NULL values, even though NULL = NULL evaluates to UNKNOWN?
- SQL.How do aggregate functions handle NULL, and what is the difference between COUNT(*), COUNT(column), and COUNT(DISTINCT column)?
- SQL.How does NULL affect IN and NOT IN, and why can NOT EXISTS be a safer choice when a subquery returns nullable values?
- SQL.How do WHERE, HAVING, and CHECK constraints treat conditions that evaluate to UNKNOWN?
- SQL.Why do column = NULL and column <> NULL not work as expected, and when should you use IS NULL and IS NOT NULL?
- SQL.What is SQL’s three-valued logic (TRUE, FALSE, UNKNOWN), and how do AND, OR, and NOT behave with UNKNOWN?
- ChromeDevTools.Watch all failed requests
- SQL.What are domain types (or constraints on data types), and how do they help enforce data correctness?
- SQL.How does SQL handle comparisons between different data types (for example, string vs number), and why is this dangerous?
- SQL.What is the difference between DATE, TIME, TIMESTAMP, and TIMESTAMPTZ, and which one should be used for business events?
- SQL.How do numeric types like INTEGER, BIGINT, DECIMAL, and FLOAT differ in terms of precision and use cases?
- SQL.What problems can arise from implicit type casting in SQL, and how can it affect indexes?
- SQL.How does NULL differ from 0, an empty string, or FALSE in SQL?
- SQL.What is the difference between CHAR, VARCHAR, and TEXT, and when would you choose each?
- SQL.What is MVCC ?
- SQL.What is AutoVacuum Postgres ?
Categories
- Aptana
- Azure
- C#
- DataSnap
- DBExpress
- Delphi
- Delphi и сети
- Delphi. Язык программирования
- ExtJS
- FastReport
- FireDAC
- FireMonkey
- GIT
- ICS
- IDE
- IIS
- Indy
- InnoSetup
- javascript
- jQuery
- JSON
- LiveBindings
- MSHTML
- MySQL
- PHP
- REST
- Ribbons
- SMS
- SQL инструкции
- SVN
- TRichView
- UniGui
- WebBroker
- WinAPI
- Windows
- Алгоритмы
- Без рубрики
- Деревья
- Ищу ответ
- Компонентостроение
- Мои компоненты
- Начальный уровень
- Обработка исключений
- Парсинг
- Потоки(Threads)
- Регулярные выражения
- Тестирование приложений
Category Archives: Без рубрики
Database.Beginner.What is a self-join?
What is a Self-Join in SQL? ✅ A self-join is when: A table is joined to itself. We treat the same table as if it were two different tables (using aliases). We match rows with other rows in the same … Continue reading
Posted in Без рубрики
Comments Off on Database.Beginner.What is a self-join?
Database.Beginner.Why is CHAR Sometimes Faster Than VARCHAR?
It’s mostly about reading speed — but let’s break it down: Why is CHAR Sometimes Faster Than VARCHAR? Fixed Size = Simple Calculations CHAR(n) always stores exactly n characters. The database can easily calculate: “Where is the 10th record? Just … Continue reading
Posted in Без рубрики
Comments Off on Database.Beginner.Why is CHAR Sometimes Faster Than VARCHAR?
Database.Beginner.What is the difference between CHAR and VARCHAR?
Difference Between CHAR and VARCHAR in SQL Feature CHAR(n) VARCHAR(n) Meaning Fixed-length string Variable-length string Storage Always exactly n characters Only stores the actual length used (up to n) Padding Pads with spaces if shorter than n No padding — … Continue reading
Posted in Без рубрики
Comments Off on Database.Beginner.What is the difference between CHAR and VARCHAR?
Database.Beginner.How would you update all rows in a table to set a column value to a default?
You can use a simple UPDATE statement without a WHERE clause. General Syntax Without WHERE → it affects every row in the table. With WHERE → it affects only rows matching the condition. Example Imagine you have a Users table: … Continue reading
Posted in Без рубрики
Comments Off on Database.Beginner.How would you update all rows in a table to set a column value to a default?
Database.Beginner.What are Aggregate Functions in SQL?
✅ Aggregate functions are special SQL functions that: Take multiple input values (from rows) and return a single value as a summary. They work on a set of rows — not just one row at a time. Used commonly with … Continue reading
Posted in Без рубрики
Comments Off on Database.Beginner.What are Aggregate Functions in SQL?
Database.Beginner.Anomalies.SQL.Example
Perfect! Let’s do a real SQL example where we: Cause a Dirty Read at low isolation. Fix it by changing the isolation level. Step-by-Step Dirty Read Example Assume we have a simple Accounts table: We have: account_id balance 1 1000.00 … Continue reading
Posted in Без рубрики
Comments Off on Database.Beginner.Anomalies.SQL.Example
Database.Beginner.Anomalies
What are Anomalies in Transactions? When multiple transactions run at the same time (concurrency), if the database isn’t careful, weird problems (called anomalies) can happen. 👉 Anomalies are unwanted behaviors like: Reading data that isn’t finished. Seeing inconsistent results. Losing … Continue reading
Posted in Без рубрики
Comments Off on Database.Beginner.Anomalies
Database.Beginner.What is a transaction?
What is a Transaction in SQL? A transaction is a single unit of work that consists of one or more SQL statements, executed together as a group. The database treats a transaction as all or nothing: All statements succeed ➔ … Continue reading
Posted in Без рубрики
Comments Off on Database.Beginner.What is a transaction?
Database.Beginner.Explain ACID properties in databases.
What are ACID Properties in Databases? ACID stands for: Letter Property Meaning A Atomicity All or nothing — a transaction is fully done or fully undone. C Consistency The database moves from one valid state to another. I Isolation Transactions … Continue reading
Posted in Без рубрики
Comments Off on Database.Beginner.Explain ACID properties in databases.
Database.Beginner.How would you find records that exist in one table but not another?
1. Using LEFT JOIN … WHERE NULL This is the most classic and portable method. Example Find rows in TableA that don’t exist in TableB: LEFT JOIN returns all rows from TableA and matches from TableB. Where TableB.id is NULL, … Continue reading
Posted in Без рубрики
Comments Off on Database.Beginner.How would you find records that exist in one table but not another?