Question Bank

SQL & Databases interview questions

A SQL query must remain correct with duplicates, NULL values and unusual relationships between tables. Explain joins and grouping before considering execution cost. Test your reasoning with a small table containing edge cases.

1635
questions
16
categories
50
companies

Showing 20 of 72 questions

EasySQL & Databases

What is a B-tree index and how does it work?

indexingb-tree
Practice in bot
EasySQL & Databases

Explain the difference between JOIN and SUBQUERY.

sqljoins
Practice in bot
EasySQL & Databases

What is ACID and why is it important for transactions?

transactionsacid
Practice in bot
MediumSQL & Databases

When should you use a CTE instead of a subquery?

sqlcte
Practice in bot
MediumSQL & Databases

Explain how a window function works and provide an example of its use.

sqlwindow-functions
Practice in bot
MediumSQL & Databases

What is replication and what types exist?

replicationdatabases
Practice in bot
HardSQL & Databases

Compare BASE and ACID. In what scenarios is it better to use each model?

acidbase
Practice in bot
HardSQL & Databases

Explain how partitioning works in PostgreSQL.

partitioningpostgresql
Practice in bot
MediumSQL & Databases

What is the difference between data normalization and denormalization, and when should each be applied?

normalizationdata-modeling
Practice in bot
MediumSQL & DatabasesOzon

What would you do if a JOIN operation in a distributed database took too long?

sql-databases
Practice in bot
MediumSQL & Databases

Modify the query: an anomaly is defined as three times the average over the two preceding and two following days, excluding the day itself.

sql-databases
Practice in bot
MediumSQL & Databases

Что посмотреть надо, что проверить надо, что дополнительно запросить надо?

sqldatabase
Practice in bot
MediumSQL & Databases

Why кстати из таблицы table1? Где у них не будет?

general
Practice in bot
MediumSQL & Databases

Может ли быть у тебя тут такое, что левый индекс обгонит правый?

general
Practice in bot
MediumSQL & Databases

Каким кандидатом будем считать, если у нас 2000 кандидатов на каждый запрос?

sqldatabase
Practice in bot
EasySQL & DatabasesАвито

What types of databases are there, and which have you worked with?

Practice in bot
MediumSQL & DatabasesАвито

What can non-relational databases be used for?

Practice in bot
EasySQL & DatabasesАвито

Is PostgreSQL row-oriented or column-oriented?

Practice in bot
MediumSQL & DatabasesГазпромбанк

By simplifying it, do you mean avoiding a subquery?

Practice in bot
MediumSQL & Databases

We will use this query as a subquery.

Practice in bot

Prepare for your next interview with Vibe Interview.

Download Vibe Interview
SQL & Databases interview questions — page 3 | Vibe Interview