Skip to main content
1:1 mock interviews with Sumit, scored on a real hiring rubric.Book a slot →

6 topics · 0/6 read

Databases & SQL

SQL vs NoSQL, joins and the queries interviewers ask, indexes, transactions and isolation levels, schema design and normalization, and the N+1 problem with ORMs.

  1. SQL vs NoSQL: How to Choose

    SQL vs NoSQL is less about which is better and more about your data and queries. Relational databases like PostgreSQL give you joins, constraints and transactions; NoSQL stores like MongoDB, DynamoDB, Redis and Cassandra

    Read now
  2. SQL Joins and Common Interview Queries

    SQL questions appear in almost every backend interview: joins, GROUP BY with HAVING, subqueries, window functions and the classic "second highest salary". Practise writing them by hand.

    Read now
  3. Database Indexes and Query Performance

    Indexes are the first answer to "this query is slow". An index is a sorted structure, usually a B-tree, that lets the database find rows without scanning the whole table. Interviewers want to know how they work, what the

    Read now
  4. Transactions, ACID and Isolation Levels

    Transactions make several writes succeed or fail together. ACID, isolation levels and anomalies like dirty reads and lost updates are standard interview material, especially for anything involving money or stock.

    Read now
  5. Schema Design and Normalization

    Good schema design keeps data correct and queries simple. Interviewers ask you to design tables for a feature, explain normal forms, model many-to-many relationships, and say when denormalizing is worth it.

    Read now
  6. ORMs, the N+1 Problem and Connection Pooling

    ORMs such as Prisma, Drizzle, TypeORM and Sequelize speed up development but hide the SQL they run. The N+1 query problem and connection pool exhaustion are the two ORM issues interviewers ask about most.

    Read now