Database development

Creating Dynamic Pivot Table with QUOTENAME Function

Database development, Statements, Tables

In my previous article on the basic pivot operator, we saw how pivot operator could be used to...
Read More

Database Optimization: Indexes

Database administration, Database development, Database Optimization & Structure, Indexes

I noticed that very few people understand how indexes work in SQL Server, especially Included Columns. Nevertheless, indexes are the great...
Read More

Methods to Rank Rows in SQL Server: ROW_NUMBER(), RANK(), DENSE_RANK() and NTILE()

Database development, Statements

SQL Server provides us with a number of window functions that help us to perform calculations across a set of rows, without the need to...
Read More

Performance of Table Variables in SQL Server

Database administration, Database development, Performance Tuning, Tables

In this article, we are going to touch upon the topic of performance of table variables. In SQL...
Read More

Understanding Pivot Operator in SQL

Database development, Statements

The pivot operator in SQL Server converts each row in the aggregated result set into corresponding columns in the output set. The pivot...
Read More

Query Optimization in PostgreSQL. EXPLAIN Basics – Part 2

Database development, PostgreSQL, Statements

In my previous article, we started to describe the basics of the EXPLAIN command and analyzed what happens in PostgreSQL when executing a...
Read More

Query Optimization in PostgreSQL. EXPLAIN Basics – Part 1

Database development, PostgreSQL, Statements

Why does it take so much time to execute a query? Why are there no indexes? Chances are...
Read More

Oracle as Workaround of Mutating Tables

Computer Environment, Database development, Tables

The Oracle mutating trigger error occurs when a trigger references the table that owns the trigger, resulting in the “ORA-04091:...
Read More

Oracle Regular Expressions. Dangerous Range

Computer Environment, Database development, Statements

An Oracle developer who often uses regular expressions in code sooner or later can face a phenomenon that is indeed mystical. Long-term...
Read More

Don’t like database triggers? You just don’t know how to work with them!

Database development, Triggers

When designing large relational databases, we often make a decision to diverge from a normal form,...
Read More
Close