-
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: Без рубрики
SQL.What guarantees does the relational model provide, and what does SQL not guarantee?
What the relational model guarantees The relational model defines what states of data are valid. These guarantees are logical, not performance-related. 1️⃣ Set-based data (no duplicates by default) Relations are sets, not lists Rows have no inherent order Duplicates are … Continue reading
Posted in Без рубрики
Comments Off on SQL.What guarantees does the relational model provide, and what does SQL not guarantee?
SQL.How logical and physical schemas implemented on practice (in Postgres for ex.) ?
High-level idea (keep this in mind) In PostgreSQL, you define the logical schema explicitly,and PostgreSQL derives and manages the physical schema implicitly, with optional tuning knobs. You declare intent → Postgres decides storage. 1️⃣ Logical schema in PostgreSQL (what you … Continue reading
Posted in Без рубрики
Comments Off on SQL.How logical and physical schemas implemented on practice (in Postgres for ex.) ?
SQL.What is the difference between a logical schema and a physical schema?
Logical schema vs Physical schema Logical schema describes what the data model is.Physical schema describes how it is stored and accessed. That sentence alone already scores points. 1️⃣ Logical schema What it is The logical schema defines: Entities and attributes … Continue reading
Posted in Без рубрики
Comments Off on SQL.What is the difference between a logical schema and a physical schema?
SQL.Why are foreign keys needed, and what problems do they solve beyond JOINs?
Why are foreign keys needed (beyond JOINs)? Foreign keys are about data correctness and lifecycle guarantees — not query syntax. JOINs are just a query feature.Foreign keys are integrity constraints. What a foreign key actually guarantees A foreign key enforces … Continue reading
Posted in Без рубрики
Comments Off on SQL.Why are foreign keys needed, and what problems do they solve beyond JOINs?
SQL.What are the problems of composite keys to equals / hash code in ORM ?
Why composite keys break equals() / hashCode() in ORM ORMs rely on equals() / hashCode() to track entity identity.Composite keys make identity mutable, incomplete, or unstable during an entity’s lifecycle. That’s the root problem. First: how ORM uses equals() / … Continue reading
Posted in Без рубрики
Comments Off on SQL.What are the problems of composite keys to equals / hash code in ORM ?
SQL.What problems do we have with ORM when we use composite keys?
Why ORMs (JPA / Hibernate) struggle with composite primary keys First: what ORM expects An ORM assumes: One column = one identity Identity is simple, immutable, comparable Identity is used for: Persistence context (1st-level cache) Equality checks Lazy loading Proxies … Continue reading
Posted in Без рубрики
Comments Off on SQL.What problems do we have with ORM when we use composite keys?
SQL.Why is it bad to use composite key on many to many table ?
Short answer (interview-ready) Using a composite primary key in a many-to-many table is often problematic because it tightly couples identity to business columns, complicates foreign keys, hurts ORM usability, and makes future schema evolution harder — even though it looks … Continue reading
Posted in Без рубрики
Comments Off on SQL.Why is it bad to use composite key on many to many table ?
SQL.What pros with having surrogate key and unique business fields. Give examples ?
Pros of having surrogate key + unique business fields This pattern separates technical identity from business rules — which is the core reason it scales in real systems. 1️⃣ Stable identity + flexible business rules Why it matters Business data … Continue reading
Posted in Без рубрики
Comments Off on SQL.What pros with having surrogate key and unique business fields. Give examples ?
SQL.Why do we need enforce naural keys when we have surrogate ones ?
Short answer (interview-ready) Surrogate keys provide technical identity, but natural keys enforce business correctness.Without enforcing natural keys, a relational database cannot protect the domain from invalid or duplicate business data. That’s the essence. Now let’s break it down. What surrogate … Continue reading
Posted in Без рубрики
Comments Off on SQL.Why do we need enforce naural keys when we have surrogate ones ?
SQL.What is surrogate key and why is it called so ?
What is a Surrogate Key? Definition A surrogate key is an artificial, system-generated identifier used as a primary key that has no business meaning. Typical forms: Auto-increment integer (SERIAL, IDENTITY) Sequence-based BIGINT UUID Example: Why is it called surrogate? Surrogate … Continue reading
Posted in Без рубрики
Comments Off on SQL.What is surrogate key and why is it called so ?