← 🗄️ Data & SQL EngineeringNEXT IN DATA & SQL ENGINEERINGPartitioning and Clustering→
Core
Indexing Strategies
An index is a secondary data structure that lets the database find rows without scanning the whole table, trading write cost and storage for read speed. The choices that matter are index type (B-tree for ranges and sorting, hash for equality, covering for index-only scans), composite-index column order, and selectivity (an index on a low-cardinality column is often useless). Applied-AI interviews probe indexing because it is the first lever for a slow read, and the candidates who understand why the planner sometimes ignores an index are the ones who have actually tuned a database.
a free account unlocks the core curriculum tier · no card
RELATED CONCEPTS
PRACTICE THIS IN REAL QUESTIONS
SQL & Data EngineeringImplement Slowly Changing Dimension Type 2 history tracking in a Delta lakehouse.→SQL & Data EngineeringGroup a stream of user events into sessions in SQL (30-minute inactivity gap) using window functions.→SQL & Data EngineeringFind the top-N records per group and a running total per group in SQL.→SQL & Data EngineeringA SQL query is slow. How do you diagnose and optimize it?→SQL & Data EngineeringYou have a wide table with one column per month. How do you unpivot it into tidy (key, month, value) rows?→SQL & Data EngineeringGiven rows with start and end timestamps, merge all overlapping intervals per user in SQL.→
COMPANIES THAT ASSUME THIS
