Ctrl K
QA · Junior · Theory

What types of JOIN are there in SQL, and how do they differ? For example, how would you find users who don't have a single order?

~4 min by voice

How to approach it

The interviewer wants to see whether you understand how a JOIN matches rows from two tables and where NULLs come from, and whether you can write a query to find "missing" data yourself. It's a basic skill for a tester checking data in the database.

Have you seen this question in a real interview?
Answers0
Avg. score—
Strong—
Practiced0
Topics
Similar questionsУ нас есть таблица заказов на сотни миллионов строк и составной B-tree индекс по (user_id, created_at). Расскажите, как устроен такой индекс внутри и как база по нему выполняет запрос «последние 20 заказов пользователя». А если в запросе фильтр только по created_at — индекс поможет? Mid-levelЗапрос, который вчера выполнялся за 10 миллисекунд, сегодня выполняется 30 секунд, хотя код не менялся. Вы сделали EXPLAIN ANALYZE. Что вы будете в нём смотреть и почему планировщик вообще мог изменить план? Mid-levelКак устроена репликация в PostgreSQL от мастера к репликам? Что на самом деле передаётся по сети, и какие проблемы получит приложение, если читать с асинхронной реплики? Mid-levelA query that used to run in milliseconds now takes seconds after the table grew to tens of millions of rows. How would you investigate, and what can you do about it? Mid-levelКак в PostgreSQL устроен MVCC? Что физически происходит со строкой, когда вы делаете UPDATE, и почему одна забытая открытая транзакция может со временем раздуть таблицу? Mid-level

Answer by voice

The interviewer will ask this question and listen. Think out loud and ask for a hint if you need one. When you're done, pause or tap “That's my answer”. In about a minute, your score and the points you covered show up here.

Sign in to answer

Best with headphones · ~4 min