Placements roadmap

SQL

Most service and product companies give a SQL round or a SQL question. Practise writing queries, not just reading them. 2 topics, about 9 hours.

  1. Queries, grouping and subqueries

    About 6 h.

    • Write SELECT with WHERE, GROUP BY, HAVING and ORDER BY without looking anything up
    • Find the second highest salary in two different ways
    • Use window functions such as RANK and ROW_NUMBER
  2. Joins

    About 3 h.

    • Predict the rows from inner, left, right and full outer joins, including NULLs
    • Write a self join and an anti join

    Visualisers: SQL joins