How to Optimize a Slow Query

Analyze the slow execution plan with EXPLAIN Use the database’s EXPLAIN or EXPLAIN ANALYZE (PostgreSQL), EXPLAIN PLAN (Oracle), or SHOW PLAN (SQL Server) to see how the database executes the query...
0 Read More

Desire for Structure (read “SQL”)

Desire for Structure (read “SQL”)
Or obsession for control?Let’s admit it: we love the idea of running SQL queries on ALL our data! Not just a preference — it feels like an obsession. No matter how old or how rarely accessed, we c...
0 Read More

Hacker rank's Median SQL Solution

Hacker rank's Median SQL Solution
Let's get to know the questionA median is defined as a number separating the higher half of a data set from the lower half. Query the median of the Northern Latitudes (LAT_N) from STATION and round yo...
0 Read More