Which SQL does a data engineer write at work?
A data engineer writes SQL that builds tables, where an analyst's mostly reads them, so mistakes cost more: a join that duplicates rows overstates every number built on it, and a load that is not safe to rerun doubles a table on retry. SQL leads the India Tech Hiring Report's data-engineer skills at 48.6% of 1,470 postings.
| Pattern | What it does in a pipeline | How interviews test it |
|---|---|---|
| Joins at scale | Combines tables without duplicating or losing rows | Revenue rose after you added a join. Why? |
| Window functions | Picks the latest record, ranks, compares a row with the previous one | Keep the latest row per customer |
| CTEs | Splits a long transformation into named, testable steps | Rewrite this nested query as CTEs |
| MERGE (upsert) | Updates changed rows and inserts new ones in one statement | Write a load that is safe to run twice |
| Slowly changing dimensions | Keeps the history of an attribute, such as a customer's city | Design an SCD Type 2 load and say which rows it touches |
| Partition pruning | Reads only the partitions a query needs | This query scans the whole table every day. Why? |
| Query plans | Shows the scans, joins and shuffles the engine chose | Read this plan and say what you would change |
| Data quality checks | Stops a bad load before anyone reads it | Which checks run before this table is published? |
