-
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 is the purpose of DISTINCT?
✅ DISTINCT is used to: Remove duplicate rows from the result set. It ensures that the output has only unique rows — no duplicates. It compares all selected columns — if all columns in a row match, it’s considered a … Continue reading
Posted in Без рубрики
Comments Off on Database.Beginner.What is the purpose of DISTINCT?
Database.Beginner.What is the default sort order of ORDER BY?
What is the Default Sort Order of ORDER BY? ✅ By default, ORDER BY sorts in: Ascending (ASC) order — from smallest to largest, A → Z, 0 → 9. If you don’t specify anything, this: is the same as: … Continue reading
Posted in Без рубрики
Comments Off on Database.Beginner.What is the default sort order of ORDER BY?
Database.Beginner.How to Fetch the Top N Records in SQL ?
It depends a little on the SQL dialect (MySQL, PostgreSQL, SQL Server, etc.), but the general idea is: 1. Using LIMIT (MySQL, PostgreSQL, SQLite) ✅ Example — get top 5 employees with highest salary: ORDER BY salary DESC — sort … Continue reading
Posted in Без рубрики
Comments Off on Database.Beginner.How to Fetch the Top N Records in SQL ?
Database.Beginner.What is the difference between DELETE, TRUNCATE, and DROP?
DELETE vs TRUNCATE vs DROP Command What it Does Speed Can Rollback? Affects Structure? DELETE Deletes specific rows based on WHERE condition (or all if no condition). Slow for big tables ✅ Yes (if in a transaction) ❌ No — … Continue reading
Posted in Без рубрики
Comments Off on Database.Beginner.What is the difference between DELETE, TRUNCATE, and DROP?
Database.Beginner.Is primary key only about uniquness ?
Uniqueness: ✅ No two rows can have the same value (or same combination, for composite keys). NOT NULL: ✅ No NULLs allowed in any column that is part of the Primary Key. Every row must have a real, non-missing value … Continue reading
Posted in Без рубрики
Comments Off on Database.Beginner.Is primary key only about uniquness ?
Database.Beginner.What is primary key?
What is a Composite Key? A Composite Key is a Primary Key (or sometimes a Unique Key) that is made up of two or more columns. It’s called composite because it’s combined from multiple columns to uniquely identify a row. … Continue reading
Posted in Без рубрики
Comments Off on Database.Beginner.What is primary key?
Database.Beginner.Can i group by many columns ?
Absolutely YES! ✅ You can GROUP BY many columns — and it’s very common in real-world SQL queries! GROUP BY Many Columns — How It Works When you group by multiple columns: SQL will create a separate group for each … Continue reading
Posted in Без рубрики
Comments Off on Database.Beginner.Can i group by many columns ?
Database.Beginner.What is the purpose of the GROUP BY clause?
The GROUP BY clause is used to: Group rows that have the same values in specified columns into summary rows — like totals, counts, averages, etc. ✅ It’s most commonly used with aggregate functions like: SUM() COUNT() AVG() MAX() MIN() … Continue reading
Posted in Без рубрики
Comments Off on Database.Beginner.What is the purpose of the GROUP BY clause?
Database.Beginner.What is a VIEW in SQL?
What is a VIEW in SQL? A VIEW is a virtual table in SQL. It’s a saved SQL query that you can treat like a table when writing queries. A VIEW does not store actual data — it just stores … Continue reading
Posted in Без рубрики
Comments Off on Database.Beginner.What is a VIEW in SQL?
Database.Beginner.What about composite primary key and many unique constraints ?
Composite Primary Key A Primary Key doesn’t have to be just one column — it can be a combination of multiple columns. That’s called a composite primary key. ✅ Example: Here: (student_id, course_id) together uniquely identify each row. A student … Continue reading
Posted in Без рубрики
Comments Off on Database.Beginner.What about composite primary key and many unique constraints ?