0% found this document useful (0 votes)
7 views16 pages

SQL Proj

The document provides a set of 10 SQL interview questions and answers, categorized from beginner to advanced levels, along with practice datasets related to Netflix movies and employee information. It includes specific questions aimed at analyzing the datasets, such as counting titles, calculating percentages, and determining growth rates. The document is designed to help individuals prepare for data-related job interviews by mastering SQL skills.

Uploaded by

Samridh Vikhas S
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views16 pages

SQL Proj

The document provides a set of 10 SQL interview questions and answers, categorized from beginner to advanced levels, along with practice datasets related to Netflix movies and employee information. It includes specific questions aimed at analyzing the datasets, such as counting titles, calculating percentages, and determining growth rates. The document is designed to help individuals prepare for data-related job interviews by mastering SQL skills.

Uploaded by

Samridh Vikhas S
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

Beginner to Advanced

SQL Interview
Questions
10 questions & answers
with practice datasets

Dawn Choo
Applying for Data Analyst jobs?
Applying for Data Scientist jobs?
Applying for Data Engineering jobs?

You need to be a master at SQL.


Here are 10 SQL interview
questions to practice with
from Beginner to Advanced levels

wers
h an s
e r w it
ogeth ts
T at ase
& d
1. Netflix movies & shows
Dataset
https://www.kaggle.com/datasets/rahulvyasm/
netflix-movies-and-tv-shows/data

You have this dataset, netflix_titles, that contains


comprehensive information about movies and TV shows
available on Netflix.

The columns in your dataset are as follows:


show_id: A unique identifier for each title
type: The category of the title
title: The name of the movie or TV show
director: The director(s) of the movie or TV show
cast: The list of main actors or actresses in the title
country: The countries where the movie or show was
produced
date_added: The date the title was added to Netflix
release_year: The year the movie or TV show was
released
rating: The age rating of the title
duration: The duration of the title
listed_in: The genres the title falls under
description: A brief summary of the title
1. Netflix movies & shows
Questions
Beginner
1. How many movies and TV shows are there in the
dataset? Display the count for each type.
2. What percentage of content doesn’t have a country
associated with it?

Intermediate
1. Find the top 3 directors with the most content on
Netflix. Display the director's name, the count of
their titles, and the year of their most recent content.
2. For each year from 2015 to 2021, calculate the
percentage of movies vs TV shows added to Netflix

Advanced

1. Calculate the average month-over-month growth


rate of content added to Netflix for each genre.
What are the top 5 fastest growing genres?
1. Netflix movies & shows
Answers
Beginner Question 1:
How many movies and TV shows are there in the
dataset? Display the count for each type.

Beginner Question 2:
What percentage of content doesn’t have a country
associated with it?
1. Netflix movies & shows
Answers

Intermediate Question 1:
Find the top 3 directors with the most content on
Netflix. Display the director's name, the count of their
titles, and the year of their most recent content.
1. Netflix movies & shows
Answers

Intermediate Question 2:
For each year from 2015 to 2021, calculate the
percentage of movies vs TV shows added to Netflix.
1. Netflix movies & shows
Answers
Advanced Question 1:
Calculate the average month-over-month growth rate
of content added to Netflix for each genre. What are
the top 5 fastest growing genres?
Ready for the next
set of questions?
do it
Let’s
2. Employee Information
Dataset
https://www.kaggle.com/datasets/tawfikelmetwally/
employee-dataset

You have this dataset called employee_information


that contains data about employees in a company.

The columns in your dataset are as follows:


Education: Highest level of education and field of study
JoiningYear: Year the employee started at the company
City: Employee's work location
PaymentTier: Salary category
Age: Current age of the employee
Gender: Employee's gender identity
EverBenched: If employee was ever without assigned work
ExperienceInCurrentDomain: Years in current field
LeaveOrNot: Whether employee has taken leave
2. Employee Information
Questions
Beginner
1. How many employees are in each Payment Tier?
2. Calculate the average age of employees for each
gender.

Intermediate
1. Find the top 3 cities with the highest percentage of
employees who have been benched at least once.
2. For each Education level, calculate the average
experience in the current domain for employees who
joined before 2015 and those who joined in 2015 or
later.

Advanced

1. Calculate an Employee's likelihood to leave based


on their Payment Tier, Experience in Current Domain,
and the average leave rate of their city.
2. Employee Information
Answers

Beginner Question 1:
How many employees are in each Payment Tier?

Beginner Question 2:
Calculate the average age of employees for each
gender.
2. Employee Information
Answers
Intermediate Question 1:
Find the top 3 cities with the highest percentage of
employees who have been benched at least once.

Intermediate Question 2:
For each Education level, calculate the average
experience in the current domain for employees who
joined before 2015 vs. in 2015 or later.
2. Employee Information
Answers
Advanced Question 1:
Calculate an Employee's likelihood to leave based on
their Payment Tier, Experience in Current Domain, and
the average leave rate of their city.
Found this
useful?
Save it
Follow me
Dawn Choo
Share with a friend

You might also like