Enrolling now
ServiceNow DB Preparation
Self paced, PostgreSQL, 53 sessions, interview and practice tracker
Get ready for the database round of a ServiceNow style interview. The SQL in Depth course, a tracker of 254 problems and day end assessments, in one program.
SQL interview-க்கு தயாராக ஒரு self-paced program. 53 sessions, 254 problems tracker, ஒவ்வொரு நாளும் ஒரு test.
- Self paced, about 72 hoursfrom the first class to the capstone
- 4 stages11 modules and 57 topics, in the order you learn them
- Live in Tamilwith recordings and notes in English
- Hands-onevery topic tried on your own machine
What you will work with
By the end, you can
- Write joins, filters, window functions and time series queries without looking anything up
- Read a query plan and choose an index
- Design tables, draw the ER diagram and explain the relationships
- Explain ACID, locking and backups with examples
- Answer the questions that candidates reported in real interviews
What you get
- SQL in Depth course53 sessions on PostgreSQL 17 with a lab in Docker, every example run for real.
- ServiceNow DB tracker254 problems with your progress saved, including the questions candidates reported in interviews.
- Day end assessmentsA timed multiple choice test for each of five days, with a live leaderboard.
- Quizzes and flashcardsA quiz and a flashcard deck on every session.
Your path, stage by stage
4 stages, in the order you learn them. Each one has a clear goal and ends with something you build and keep. Every topic runs on your own machine first.
-
Stage 1 of 4
Write correct queries
Set up the lab and write filters and joins you can trust.
You buildQueries on DVD Rental and the ticket data
Part 1 . Foundations and mental model3 topics
Set up the lab, learn how a query really runs, and handle NULLs and types.
- Lab setup and the three datasets, Load both databases, read the ER diagrams, find your way with `\d`
- How a query really runs, The logical order of `FROM`, `WHERE`, `GROUP BY`, `HAVING`, windows, `SELECT`, `ORDER BY`, `LIMIT`
- NULLs, three-valued logic and types, `IS DISTINCT FROM`, `COALESCE`, `NULLIF`, `CASE`, casts, `NOT IN` against `NOT EXISTS`
Part 2 . Filters5 topics
Filter on values, dates, groups, absence and top N, and know the traps of each.
- Predicates in depth, `AND`/`OR` precedence, `IN`, `BETWEEN`, `LIKE`, `ILIKE`, regular expressions
- Filtering on dates and timestamps, Half-open ranges, `date_trunc`, intervals, "last 7 days", time zones
- Filtering groups, `HAVING` against `WHERE`, `FILTER (WHERE ...)`
- Filtering by absence and existence, Anti-joins, `EXISTS`, `NOT EXISTS`, the `NOT IN` trap
- Top N and Nth highest, Ties, `LIMIT`/`OFFSET`, `FETCH FIRST ... WITH TIES`
Part 3 . Joins7 topics
Think of a join as matching rows, then write inner, outer, multi table, self and lateral joins.
- The join mental model, Matching rows as sets, join keys, cardinality, predicting the row count
- Inner and outer joins, `LEFT`, `RIGHT`, `FULL`, and the `WHERE` that quietly breaks a `LEFT JOIN`
- Multi-table joins, Customer to rental to inventory to film to category
- Fan-out and double counting, Aggregating before or after a join, pre-aggregating in a CTE
- Self joins and non-equi joins, Org charts, pairs, range joins, `CROSS JOIN` calendars
- `LATERAL` and `DISTINCT ON`, Top N per group, latest row per parent
- Set operations, `UNION [ALL]`, `INTERSECT`, `EXCEPT`, and when they beat a join
-
Stage 2 of 4
Summarise and rank
Group, nest, pivot, rank and follow time.
You buildReports and time series on real tables
Part 4 . Aggregation, subqueries and CTEs4 topics
Group, nest and name your queries, and pivot rows into columns.
- `GROUP BY` in depth, `GROUPING SETS`, `ROLLUP`, `CUBE`, `string_agg`, `percentile_cont`
- Subqueries, Scalar, correlated, `ANY`/`ALL`, rewriting one form as another
- CTEs, Readability, materialisation, chaining, data-modifying CTEs
- Pivoting, `FILTER`, `CASE`, `crosstab`
Part 5 . Window functions7 topics
Rank, compare rows, frame running totals and solve gaps and islands with window functions.
- The `OVER` clause, `PARTITION BY`, `ORDER BY`, why a window does not collapse rows
- Ranking, `ROW_NUMBER`, `RANK`, `DENSE_RANK`, `NTILE`, `PERCENT_RANK`
- Offset functions, `LAG`, `LEAD`, `FIRST_VALUE`, `LAST_VALUE`, `NTH_VALUE`
- Frames, `ROWS`, `RANGE`, `GROUPS`, the `LAST_VALUE` trap, `EXCLUDE`
- Running and moving calculations, Running totals, moving averages, share of total
- Gaps and islands, The `date - ROW_NUMBER()` trick, streaks, sessions
- Window patterns for interviews, Dedup, consecutive values, median, "as of" state from an audit log
Part 6 . Time series5 topics
Work with time types, calendars, buckets, SLA durations and event sequences.
- Time types and arithmetic, `timestamp` against `timestamptz`, `AT TIME ZONE`, `age`, `extract`
- Calendars and gap filling, `generate_series`, calendar tables, zero filled series
- Bucketing and trends, `date_trunc`, `date_bin`, month over month, year over year, rolling 7 days
- Durations and SLA maths, Resolution time, percent breached, business hours, "about to breach"
- Event sequences, Cohorts, retention, time between events, session windows
-
Stage 3 of 4
Design for real systems
Walk hierarchies, read plans, and design and protect the data.
You buildA schema with keys, constraints and migrations
Part 7 . Hierarchies and performance2 topics
Walk hierarchies with recursive CTEs, read query plans and choose indexes.
- Recursive CTEs, Reports at every depth, graphs with cycle detection
- Query plans and indexes, `EXPLAIN (ANALYZE, BUFFERS)`, composite and partial indexes, keyset pagination
Part 8 . Schema design, concurrency and scale10 topics
Design keys, constraints and models, then handle transactions, locking, partitioning and migrations.
- Keys, relationships and normalisation, Many to many membership, normalising a flat sheet, bigint against UUID
- Constraints and foreign keys, `ON DELETE` choices, `CHECK`, unique among active rows, soft delete
- Modelling patterns, Task inheritance, SLA definitions and instances, approvals, closure tables
- Flexible schemas, EAV against `JSONB` against spare columns, per tenant custom fields
- Multi-tenancy, Shared tables, row level security, tenant skew and sharding
- Transactions and lost updates, Isolation levels, optimistic locking, `SELECT ... FOR UPDATE`
- Queues and deadlocks, `FOR UPDATE SKIP LOCKED` job queue, reproducing and preventing a deadlock
- Write skew, The "at least one on call" rule, `SERIALIZABLE` and retries
- Partitioning, archiving and ticket numbers, Partitioning and archiving a huge audit log, `INC0010001` style numbers
- Audit history, reporting offload and safe migrations, Field level history, materialised views and replicas, adding and renaming columns without downtime
-
Stage 4 of 4
Explain and prove it
Answer the interview questions and test yourself.
You buildA mock interview and a tracker of solved problems
Part 9 . Capstone1 topics
Put it all together in a timed mock interview with a scoring rubric.
- Capstone and mock interview, A timed mixed set of joins, filters, windows, time series and design questions with a scoring rubric
Part 10 . Database concepts that interviews ask for7 topics
The concepts that interviews ask for by name, relationships and ER diagrams, ACID and isolation levels, locking, backup and restore, and fifteen ER design problems.
- Relationships and ER diagrams, One to one, one to many and many to many, crow's foot marks, required and optional links, drawing an ER diagram in six steps
- ACID, what a transaction promises, Atomicity, consistency, isolation and durability, each shown on the lab, including a server that is killed
- Pessimistic and optimistic locking, `FOR UPDATE`, `NOWAIT`, a `version` column, advisory locks, and how to choose
- Backup and restore, `pg_dump`, `pg_restore`, restoring one table, `pg_basebackup`, point in time recovery, RPO and RTO
- Isolation levels and read anomalies, Dirty reads, non repeatable reads, phantom reads, lost updates and write skew, each with two live sessions, and which level stops which
- ER diagram parts and how to draw them in drawDB, Table, column, key, line, cardinality, required or optional, `ON DELETE` actions, junction tables, weak entities and self references
- ER diagram practice, Fifteen design problems from basic to advanced, a blog, a school, an online shop, a hospital, ride sharing, a bank and more
The ServiceNow DB tracker6 topics
254 problems with your progress saved, shared with the course pages.
Problems
- 50 ITSM query problems, from basic to hard
- 44 problems that candidates reported in database interviews, each with a solution and examples
- 160 practice problems from LeetCode, HackerRank and DataLemur, matched to the chapter that teaches them
Progress
- Mark each problem as attempted, solved or revisit
- The same status shows on the tracker and on the chapter page
- Notes for each problem
What you will build
- A support ticket schema designed and queried on PostgreSQL
- A timed mock interview with a scoring rubric
- A tracker of 254 solved problems
Who it is for
- Students and engineers preparing for a database or SQL interview round
- Anyone who can write a basic SELECT and wants to be strong in joins and window functions
- Developers who want the design half of a database round as well
What our students say
In their own words, from students of our live GoDisai batches.
Concepts are explained in the simplest way to understand. Doubts are clearly explained on the spot until everyone understands the concept — very useful for preparing for interviews.
If you want to change your role with the current trend, he is the best — and you can learn in your mother tongue. I can now change my role and attend interviews confidently.
The way you teach things from absolute scratch and not from an abstraction level really made me understand a lot of technical topics with much more depth. “I am able to explain why and how things work and know how to do it” — that would be the takeaway from the sessions.
The hands-on examples and doubt-clearing sessions helped me understand how to apply these concepts in my own projects.
Clear explanation with simple examples and a practical approach to real-time issues. You can learn the basics very clearly and gain the confidence to be a developer.
I now have the confidence to crack system design interviews.
ServiceNow DB Preparation
- Self paced, about 72 hours from the first class to the capstone
- 4 stages 11 modules and 57 topics, in the order you learn them
- Live in Tamil with recordings and notes in English
- Hands-on every topic tried on your own machine
- 53 sessions from joins to backups and ER design
- A tracker of 254 interview and practice problems
- A timed test and a live leaderboard for each day
Enrolling now
Leave your email and we will send the joining details and fee.
Or follow the WhatsApp channel, or write to syedjaferk@parottasalna.com.
Not sure this is the one? Take the two-minute course finder.