Skip to content
Interview Bank
SeniorTechnicalData Analyst61 views

01.tech interview

Questions15

  1. Task 1. Remove duplicate emails Given a table Person (prs) with the following schema: | Column Name | Type | |---|---| | id | int | | email | varchar | Table description: Person `id` is the primary key of this table. Each row contains an email address (`email`). Email addresses do not contain uppercase letters. When referencing table fields in a query, explicitly qualify every column name with the table name or its alias. Write a solution to delete all duplicate email addresses from the Person table, keeping only one unique address with the smallest `id`. Note that you must write a DELETE statement, not a SELECT.

    Screenshot
  2. Why do we specify the table name before `id` in the condition (`Person.id`), but not in the subquery for `MIN(id)` and `GROUP BY`?

  3. How do the DELETE, TRUNCATE, and DROP statements differ from one another?

12 more questions from this interview

A subscription opens every question, and Copilot suggests answers live during your 01.tech interview.

Sign in to unlock

Summarized questions based on candidates' accounts. These materials do not represent the official position of the companies and do not disclose internal processes. If you believe a publication violates your rights — contact us.