-
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.Middle.What is the Seek Method?
The Seek Method paginates by using a stable, indexed column value (like id or created_at) from the last row of the previous page, instead of counting and skipping rows like OFFSET does. 🧠 Core Idea Instead of saying: You say: … Continue reading
Posted in Без рубрики
Comments Off on Database.Middle.What is the Seek Method?
Database.Middle.How would you implement pagination in SQL?
Implementing pagination in SQL lets you retrieve a subset of rows at a time—useful for showing results page-by-page in apps (like social feeds, product listings, etc.). Here’s how to do it using different techniques: ✅ 1. OFFSET-FETCH / LIMIT (Simple … Continue reading
Posted in Без рубрики
Comments Off on Database.Middle.How would you implement pagination in SQL?
Database.Middle.What is eventual consistency?
Eventual consistency is a consistency model used in distributed systems and databases where: ⚠️ Not all nodes are immediately consistent, but if no new updates are made, all replicas will eventually become consistent over time. 🧠 Real-World Analogy Imagine you’re … Continue reading
Posted in Без рубрики
Comments Off on Database.Middle.What is eventual consistency?
Database.Middle.Explain the concept of sharding in databases.
Sharding is a database scaling technique where you split a large database into smaller, faster, more manageable pieces called “shards.” Each shard contains a subset of the data, and all shards together make up the full dataset. 🧠 Why Use … Continue reading
Posted in Без рубрики
Comments Off on Database.Middle.Explain the concept of sharding in databases.
Database.Middle.MaterializedView
A materialized view is a database object that stores the result of a query physically on disk—like a snapshot of data. Unlike regular views (which are virtual and recompute data on access), materialized views cache the results, making read queries … Continue reading
Posted in Без рубрики
Comments Off on Database.Middle.MaterializedView
Database.Middle.How can you detect and resolve deadlocks?
Detecting and resolving deadlocks involves monitoring, logging, and possibly retrying transactions. Here’s a detailed overview: 🔍 How to Detect Deadlocks ✅ 1. Automatic Detection by the DBMS Most modern databases detect deadlocks automatically and: Choose a “victim” transaction to rollback … Continue reading
Posted in Без рубрики
Comments Off on Database.Middle.How can you detect and resolve deadlocks?
Database.Middle.When we start transaction, what is locked, table or row ?
The answer depends on the type of SQL statements you run, your database engine, and the transaction isolation level. Here’s a clear breakdown: 🔐 When You Start a Transaction At this point, nothing is locked yet. ❗ Locks are acquired … Continue reading
Posted in Без рубрики
Comments Off on Database.Middle.When we start transaction, what is locked, table or row ?
Database.Middle.What is a deadlock in a database?
A deadlock in a database occurs when two or more transactions block each other, each waiting for a resource (e.g., a row or table) that the other transaction holds. As a result, none of the transactions can proceed—they’re stuck forever … Continue reading
Posted in Без рубрики
Comments Off on Database.Middle.What is a deadlock in a database?
Database.Middle.How would you design a schema for a social network?
Designing a schema for a social network involves balancing core functionality, scalability, and query efficiency. Here’s a structured breakdown: 🧱 1. Core Entities and Relationships 👤 Users 👥 Friendships / Follows Depending on whether the network is mutual (like Facebook) … Continue reading
Posted in Без рубрики
Comments Off on Database.Middle.How would you design a schema for a social network?
Database.Middle.What is a covering index?
A covering index is an index that contains all the columns a query needs—so the database can satisfy the query entirely from the index, without touching the underlying table (also known as avoiding a table (or heap) lookup). 🧠 Definition … Continue reading
Posted in Без рубрики
Comments Off on Database.Middle.What is a covering index?