-
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 are NULL Values in SQL?
NULL in SQL means: Missing, unknown, or not applicable value. It’s not zero 0, it’s not an empty string ”. It literally means “I don’t know” or “value does not exist.” NULL ≠ 0NULL ≠ ”NULL = unknown Key Characteristics … Continue reading
Posted in Без рубрики
Comments Off on Database.Beginner.What are NULL Values in SQL?
Database.Beginner.What is a UNIQUE constraint?
What is a UNIQUE Constraint? A UNIQUE constraint ensures that all values in a column (or a combination of columns) are different — no duplicates are allowed. Similar to a PRIMARY KEY, but: A table can have only one primary … Continue reading
Posted in Без рубрики
Comments Off on Database.Beginner.What is a UNIQUE constraint?
Database.Beginner.What is the difference between WHERE and HAVING clauses?
Difference Between WHERE and HAVING WHERE HAVING Filters rows before grouping or aggregation. Filters groups after aggregation. Used with SELECT, UPDATE, DELETE Used only with GROUP BY (aggregated queries). Cannot use aggregate functions (SUM(), COUNT(), etc.) in WHERE. Can use … Continue reading
Posted in Без рубрики
Comments Off on Database.Beginner.What is the difference between WHERE and HAVING clauses?
Database.Beginner.Ways to Fix Fragmentation
There are two main strategies depending on how bad the fragmentation is: 1. REORGANIZE the Index (Light Defragmentation) What it does: Defragment leaf pages online, without locking the table. Moves rows between pages to compact them. Does NOT rebuild the … Continue reading
Posted in Без рубрики
Comments Off on Database.Beginner.Ways to Fix Fragmentation
Database.Beginner.Keystones: Why Fragmentation of leaf pages in b-tree is Bad
1. More Pages to Read Fragmentation = each page holds fewer rows (wasted space). To find or scan the same number of rows, the database needs to read more pages. More pages = more I/O operations. 👉 Disk I/O is … Continue reading
Posted in Без рубрики
Comments Off on Database.Beginner.Keystones: Why Fragmentation of leaf pages in b-tree is Bad
Database.Beginner.What is Fragmentation in a Database?
Fragmentation happens when the physical storage of data (or indexes) on disk becomes disorganized. In an ideal world: Data is stored contiguously — nice and neat. In reality (especially after lots of INSERTs, UPDATEs, DELETEs): Data gets scattered — small … Continue reading
Posted in Без рубрики
Comments Off on Database.Beginner.What is Fragmentation in a Database?
Database.Beginner.Understanding b-tree and leaf pages in db
Big Picture: What is an Index Structure? Most database indexes (like MySQL InnoDB, PostgreSQL B-tree indexes, SQL Server) are stored as a B-tree or B+ tree structure. Think of it as a tree — like an upside-down real tree: The … Continue reading
Posted in Без рубрики
Comments Off on Database.Beginner.Understanding b-tree and leaf pages in db
Database.Beginner.What is an Index Page in a Database?
An index page is a block of memory/disk storage where part of the index data is stored. More precisely: A page is a fixed-size block of data — typically 8 KB (in systems like SQL Server, PostgreSQL, MySQL with InnoDB). … Continue reading
Posted in Без рубрики
Comments Off on Database.Beginner.What is an Index Page in a Database?
Database.Beginner.Any disadvantages of using index ?
1. Slower Write Operations INSERT, UPDATE, DELETE operations become slower. Why? Every time you modify the table, the database has to: Update the table and Update all related indexes. Example: If there’s an index on customer_id, the database must: Insert … Continue reading
Posted in Без рубрики
Comments Off on Database.Beginner.Any disadvantages of using index ?
Database.Beginner.What is index ?
What is an Index in SQL? An index in a database is like an index in a book: Instead of scanning the whole book (all pages), you look at the index to find the page number directly. In a database, … Continue reading
Posted in Без рубрики
Comments Off on Database.Beginner.What is index ?