-
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 primary key?
A primary key is a column (or a set of columns) in a database table that uniquely identifies each row in that table. Key points about a primary key: Uniqueness: No two rows can have the same value in the … Continue reading
Posted in Без рубрики
Comments Off on Database.Beginner.What is a primary key?
Database.ExplainCommand
EXPLAIN in SQL The EXPLAIN (or sometimes EXPLAIN PLAN) command is used to display the execution plan of a SQL query. In simple terms: It shows how the database engine will execute your query. It helps understand and optimize query … Continue reading
Posted in Без рубрики
Comments Off on Database.ExplainCommand
Database.What problems can arise with concurrent access using transactions?
Excellent question! When multiple transactions access the same data concurrently, various data anomalies can occur — especially if isolation levels are low. These problems can cause inconsistent, incorrect, or even lost data if not handled properly. 🔍 Common Problems with … Continue reading
Posted in Без рубрики
Comments Off on Database.What problems can arise with concurrent access using transactions?
Database.What are the levels of transaction isolation?
Transaction isolation levels define how isolated a transaction is from others — i.e., how much one transaction can “see” the uncommitted changes of another. They are standardized by SQL ANSI and help balance data consistency vs performance. 🔒 The 4 … Continue reading
Posted in Без рубрики
Comments Off on Database.What are the levels of transaction isolation?
Database.What are the main properties of a transaction?
The main properties of a transaction are summarized by the acronym ACID, which ensures reliability and consistency in database operations. 🔐 ACID Properties: Property Description A – Atomicity A transaction is all-or-nothing: either every operation succeeds, or none do. If … Continue reading
Posted in Без рубрики
Comments Off on Database.What are the main properties of a transaction?
Database.What is a “transaction”?
💼 What is a Transaction in a Database? A transaction is a sequence of one or more SQL operations (such as INSERT, UPDATE, DELETE) that are executed as a single logical unit of work. A transaction must either complete fully … Continue reading
Posted in Без рубрики
Comments Off on Database.What is a “transaction”?
Database.What is Low Selectivity problem, when we speaking about indexes ?
Selectivity = the percentage of rows that match a given condition. High selectivity: few rows match→ e.g. WHERE email = ‘alice@example.com’→ ✅ index is efficient Low selectivity: many rows match→ e.g. WHERE gender = ‘M’ in a table where 60% … Continue reading
Posted in Без рубрики
Comments Off on Database.What is Low Selectivity problem, when we speaking about indexes ?
Datasource.When is a full scan of a data set more advantageous than index access?
Despite indexes often improving performance, there are important cases where a full table scan is actually better than using an index. ✅ When Is a Full Table Scan More Efficient? 1. When a Large Portion of the Table Matches If … Continue reading
Posted in Без рубрики
Comments Off on Datasource.When is a full scan of a data set more advantageous than index access?
Database.Does it make sense to index data that has a small number of possible values?
Great question — the answer is: Usually, no, it does not make sense to index columns with a small number of distinct values (i.e., low cardinality), unless there’s a very specific reason. 📉 Why Not? Columns like: Have very few … Continue reading
Posted in Без рубрики
Comments Off on Database.Does it make sense to index data that has a small number of possible values?
Database.How do i define my clustered index ?
✅ 1. In MySQL (InnoDB) 🔹 By default: The primary key becomes the clustered index. If no primary key is defined, InnoDB picks: the first unique NOT NULL index, or creates a hidden row_id. 🔹 To define your own clustered … Continue reading
Posted in Без рубрики
Comments Off on Database.How do i define my clustered index ?