-
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.What is clustered index ?
📘 What is a Clustered Index? A clustered index is a special type of index that determines the physical order of rows in a table. In other words: the table’s data is stored in the order of the clustered index. … Continue reading
Posted in Без рубрики
Comments Off on Database.What is clustered index ?
Datasource.What is the difference between clustered and non-clustered indexes?
🗃️ 1. Clustered Index A clustered index determines the physical order of rows in a table. ✅ There can be only one clustered index per table. ✅ The data is stored directly in the index. ✅ The table is the … Continue reading
Posted in Без рубрики
Comments Off on Datasource.What is the difference between clustered and non-clustered indexes?
Database.How EXPLAIN shows B-tree vs. hash usage in query plans ?
EXPLAIN (or EXPLAIN ANALYZE) is a command that shows how the database plans to execute a query, including: Whether it uses an index What type of index How many rows it expects to scan The access type (index, range, ref, … Continue reading
Posted in Без рубрики
Comments Off on Database.How EXPLAIN shows B-tree vs. hash usage in query plans ?
Database.I was sure that Composite Index (Multi-column) is b-tree
✅ Yes — a Composite Index is usually a B-tree index too. Let’s clarify: 📘 Composite Index vs. B-tree: B-tree is the data structure used to implement the index. Composite index refers to the fact that the index is built … Continue reading
Posted in Без рубрики
Comments Off on Database.I was sure that Composite Index (Multi-column) is b-tree
Database.What types of indexes exist?
🧱 1. B-tree Index (Balanced Tree) 🔹 Most common index type (used by MySQL, PostgreSQL, Oracle, etc.) 🔹 Efficient for equality (=) and range queries (<, >, BETWEEN, etc.) ✅ Good for: 🪜 2. Composite Index (Multi-column) 🔹 Index on … Continue reading
Posted in Без рубрики
Comments Off on Database.What types of indexes exist?
Database.What are “indexes”? What are they used for? What are their advantages and disadvantages?
An index is a special lookup data structure that a database uses to speed up the retrieval of rows based on certain column values. Think of an index like the index of a book — it helps you find content … Continue reading
Posted in Без рубрики
Comments Off on Database.What are “indexes”? What are they used for? What are their advantages and disadvantages?
Database.If i define primary key as student_id, course_id, why i use only WHERE student_id = 1, for example, and how index of primary key works here ?
🧱 1. Understanding Composite Primary Key Index When you define: The database creates a composite index on (student_id, course_id) — this is a B-tree index in most databases. Order matters here: It’s indexed like:(student_id → course_id) That means: The index … Continue reading
Posted in Без рубрики
Comments Off on Database.If i define primary key as student_id, course_id, why i use only WHERE student_id = 1, for example, and how index of primary key works here ?
Database.Give example of use of composite primary key
🎓 Example Scenario: Student Course Enrollment You want to track which students are enrolled in which courses, and each student can enroll in many courses, while each course has many students — a many-to-many relationship. You use a junction table … Continue reading
Posted in Без рубрики
Comments Off on Database.Give example of use of composite primary key
Database.Is primary key always indexed ?
✅ Is a Primary Key Always Indexed? Yes — in all major relational database systems, a primary key is automatically indexed. 📌 Why? Because: The primary key must be unique. The database must be able to quickly check for duplicates. … Continue reading
Posted in Без рубрики
Comments Off on Database.Is primary key always indexed ?
Database.What are the types of relationships in a database? Give examples.
In relational databases, relationships define how data in one table is connected to data in another. There are three main types of relationships: 1. 🔁 One-to-One (1:1) ➡️ One record in Table A is related to only one record in … Continue reading
Posted in Без рубрики
Comments Off on Database.What are the types of relationships in a database? Give examples.