When you write an SQL query, the database engine executes the clauses in a specific order, which is different from the sequence in which you…
View More π¦π€π π€ππ²πΏπ ππ π²π°πππΆπΌπ» π’πΏπ±π²πΏ!Category: SQL
Postgres Execution Plans
In this blog post, weβll see What is an SQL Execution Plan? Postgres documentation says: The execution plan shows how the table(s) referenced by the statement will…
View More Postgres Execution PlansHow to Generate a Running(Accumulated) Total in SQL
Have you ever needed to calculate a βrunning totalβ or βcumulative sumβ in SQL? You can do this in SQL without any other programming language…
View More How to Generate a Running(Accumulated) Total in SQLAdvanced SQL Techniques You Should Know
Window Functions Window functions allow you to perform calculations across a set of rows that are related to the current row. For example; we have…
View More Advanced SQL Techniques You Should KnowCorrelated subquery
In a SQL database query, a correlated subquery (also known as a synchronized subquery) is a subquery (a query nested inside another query) that uses values from the outer query. Because…
View More Correlated subqueryFinding Empty Tablespaces in Oracle
I’m given a task to find the empty tablespaces.I’ve checked dev server and majority of the tables’ stats were locked.This solution takes time but works.…
View More Finding Empty Tablespaces in OracleUnderstanding IOPS vs. throughput
Input/output operations per second (IOPS) and data throughput are two popular performance characteristics of any storage system. In the early days of computer technology, when…
View More Understanding IOPS vs. throughputSelectivity vs Cardinality
What is selectivity? Selectivity is the estimated proportion of the rows that will return from our query based on the total rows of that table.…
View More Selectivity vs CardinalityThroughput, latency, concurrency
The difference between making a good and a bad decisions often comes down to the quality of the pre-defined metrics. If the metric is poor…
View More Throughput, latency, concurrencyHow Consistent Data Snapshots Obtained from Tuples in PostgreSQL-4
What is a data snapshot? Data pages can physically contain several versions of the same row. But each transaction must see only one (or none)…
View More How Consistent Data Snapshots Obtained from Tuples in PostgreSQL-4