-
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)
- Регулярные выражения
- Тестирование приложений
Author Archives: Stanislav_Panteleev
Database.Middle.How does a B-tree index work?
A B-tree index (short for Balanced Tree) is the most common type of index used in relational databases (e.g., PostgreSQL, MySQL InnoDB, Oracle). It organizes data in a way that allows fast lookup, insertion, deletion, and range queries, all in … Continue reading
Posted in Без рубрики
Comments Off on Database.Middle.How does a B-tree index work?
Database.Middle.Is composite indexes better ?
🔹 What Is a Composite Index? A composite index is an index on multiple columns, like: This index helps queries that filter or sort using email, email AND status, but not just status alone. 🧠 When Composite Indexes Are Better … Continue reading
Posted in Без рубрики
Comments Off on Database.Middle.Is composite indexes better ?
Database.Middle.How would you optimize a slow SQL query?
To optimize a slow SQL query, follow a structured approach. Here’s a step-by-step guide with techniques, tools, and tips: 🔍 1. Analyze the Query ✅ Use EXPLAIN (or EXPLAIN ANALYZE) In PostgreSQL: In MySQL: This reveals how the query is … Continue reading
Posted in Без рубрики
Comments Off on Database.Middle.How would you optimize a slow SQL query?
Database.Middle.ClusterIndex.Examples
🐘 PostgreSQL 📌 1. Create a Table ✅ Clustered Index in PostgreSQL PostgreSQL does not have a true clustered index like SQL Server or MySQL’s InnoDB. But you can physically reorder the table using the CLUSTER command on an index: … Continue reading
Posted in Без рубрики
Comments Off on Database.Middle.ClusterIndex.Examples
Database.Middle.What are the differences between clustered and non-clustered indexes?
🔹 Clustered Index Feature Description Data Storage Physically reorders the table’s rows to match the index. The index is the table. Only One A table can have only one clustered index because data rows can be sorted in only one … Continue reading
Posted in Без рубрики
Comments Off on Database.Middle.What are the differences between clustered and non-clustered indexes?
Database.Beginner.How do you prevent SQL injection?
What is SQL Injection? SQL Injection happens when untrusted input (like user input) is mixed into a SQL query without proper handling — allowing an attacker to inject malicious SQL code. 🧨 This can lead to: Data leaks (stealing confidential … Continue reading
Posted in Без рубрики
Comments Off on Database.Beginner.How do you prevent SQL injection?
Database.Beginner.What is the difference between UNION and UNION ALL?
Difference Between UNION and UNION ALL Feature UNION UNION ALL Duplicates Removes duplicate rows (DISTINCT). Keeps all rows, including duplicates. Performance Slower — must sort and remove duplicates. Faster — no extra work to remove duplicates. Result Size Smaller or … Continue reading
Posted in Без рубрики
Comments Off on Database.Beginner.What is the difference between UNION and UNION ALL?
Database.Beginner.StoredProcedures
What are Stored Procedures in SQL? ✅ A Stored Procedure is: A saved collection of SQL statements (plus optional logic like loops, conditions) that you can execute later by calling its name. Think of it like a function in programming … Continue reading
Posted in Без рубрики
Comments Off on Database.Beginner.StoredProcedures
Database.Beginner.How is a correlated subquery different from a regular subquery?
Difference Between Regular Subquery and Correlated Subquery Feature Regular (Non-Correlated) Subquery Correlated Subquery Depends on outer query? ❌ No — runs independently. ✅ Yes — refers to columns from the outer query. Execution Executed once. Executed once for each row … Continue reading
Posted in Без рубрики
Comments Off on Database.Beginner.How is a correlated subquery different from a regular subquery?
Database.Beginner.What is a subquery?
What is a Subquery in SQL? ✅ A subquery is: A query inside another query. It’s enclosed in parentheses (…). It is executed first, and its result is used by the outer query. It can return: A single value (scalar). … Continue reading
Posted in Без рубрики
Comments Off on Database.Beginner.What is a subquery?