9 ZoomInfo SQL Interview Questions (Updated 2024)

Updated on

March 1, 2024

At ZoomInfo, SQL is used often for analyzing and cleaning their company and contact information databases. Unsurprisingly this is why ZoomInfo asks SQL problems during interviews for Data Science, Analytics, and & Data Engineering jobs.

As such, to help you practice for the ZoomInfo SQL interview, we've collected 9 ZoomInfo SQL interview questions – how many can you solve?

Zoominfo SQL Interview

9 ZoomInfo SQL Interview Questions

SQL Question 1: Compute the Monthly Active Users for ZoomInfo

As part of ZoomInfo's data analytics team, you are asked to analyze user engagement data. Specifically, you are tasked to compute the monthly active users (MAU) using SQL. Monthly active user is defined as a unique user who has logged in or used the service at least once in a calendar month.

Given the following table of user activities:

Example Input:

Can you write a SQL query to generate a table which shows the number of unique active users for each month? The output table should be sorted in an ascending order by the month-year.

Example Output:


Here is an SQL query in PostgreSQL which uses window functions to solve this:

This query first truncates the to the month level, groups by this new field, and counts distinct 's in each group to get the monthly active users. The clause at the end sorts the resulting table in ascending order by .

For more window function practice, solve this Uber SQL problem on DataLemur's online SQL code editor:

Uber SQL problem

SQL Question 2: Database Design for Contact Management System

ZoomInfo is a SaaS company that sells access to its database of business professionals for lead generation, focusing on providing accurate and detailed information about business professionals and companies.

Let’s assume that ZoomInfo needs to better manage its contacts raw data by creating two main tables: and . Here's the information they want to keep:

  • For each contact: ID, first name, last name, email, the company he/she works for, the contact's position, and phone number.

  • For each company: ID, name, industry, size, and location.

The relationship between contacts and companies is that a contact works for only one company, but companies can have multiple contacts.

Provide SQL database tables which can handle this situation in PostgreSQL.

Example Input:
Example Input:
40001Acme CorpManufacturing100-500New York
40002Globex CorpTechnology500-1000San Francisco


In the PostgreSQL database, we can create these two tables using the following commands:

The in the table is a foreign key referencing in the table. This enables us to link the contact to the company they work for and ensure database integrity.

SQL Question 3: How does and differ?

The clause is used to filter rows from the result set of a , , or statement. It allows you to specify a condition that must be met for a row to be included in the result set.

The clause is used to filter groups created by the clause. It is similar to the clause, but it is used to specify conditions on the groups created by the clause, rather than on the individual rows of the table.

Say you were working on a social media analytics project for ZoomInfo.

Here is an example of a SQL query that you might write which uses both the WHERE and HAVING clauses:

This query retrieves the total impressions and average conversions for each platform in the table, the date of the campaign is in January 2023. The rows are grouped by platform and the clause filters the groups to include only those with more than 5000 impressions and an average conversion rate above 0.2.

ZoomInfo SQL Interview Questions

SQL Question 4: Filter Customers by Subscription and Activity Status

Given a table with fields , (with values 'Active' or 'Inactive'), and , write a query to find all customers who have an 'Active' subscription status and have not logged into their account for at least 30 days. Assume today's date is '2022-07-30'.

Example Input:


The PostgreSQL query for this would be:

This query filters the table to only include records where is 'Active' and is before '2022-06-30'. The resulting set of records will represent customers who are currently subscribed, but have not logged in within the last 30 days.

Example Output:


SQL Question 5: How are and similar, and how are they different?

Both the and window functions are used to access a row at a specific offset from the current row.

However, the function retrieves a value from a row that follows the current row, whereas the function retrieves a value from a row that precedes the current row.

Often, the offset for both functions is 1, which gives access to the immediately following/preceding row. Here's a SQL query example:

SQL Question 6: Find the Average Transaction Value Per Client

You have a database of all transactions made by clients of ZoomInfo's enterprise product. You would like to find out the average transaction value for each client.

Please, consider the following tables:

Example Input:
Example Output:


This PostgreSQL query will group the table by the column and calculate the average value of transactions for each client. The output table shows each unique from the transactions table along with the average transaction value per client. This allows ZoomInfo to identify the clients spending the most on average and potentially identify opportunities for upselling or providing additional customer support.

SQL Question 7: Why should you normalize your database?

Database normalization is a good idea to implement because it can reduce redundancy which can improve performance and database flexibility.

By dividing larger tables into smaller, more modular and specific tables which are linked via foreign keys, this can usually improve the speed of some queries because it minimizes the amount of random data the query has to sift through. However, it's not always 100% true that there is a query speed-up, because joins are an expensive operation.

Nonetheless, by reducing redundancy, besides improved performance you also get more database flexibility. By making tables more modular and reducing overlap, you're able to more easily, since one table can be changed more effortlessly without affecting others. This makes it easier to adapt the database schema to ZoomInfo's evolving business needs.

SQL Question 8: Analyzing Customer Behavior

We have two relational databases: one for customers and another for transactions. In the database, each row represents a unique customer identified by a . This database also provides basic customer information such as , , and .

Meanwhile, the database keeps track of all purchases made by customers. It also lists the , the of the buyer, of the item, and .

Your task is to write a SQL query that lists all the customers who purchased a 'Pro' product from New York in the year 2020, and the total number of products they bought.

The query should return a new table that includes , , , , and .

Example Input:
1John Doe2017-05-16FreeNY
2Jane Smith2018-11-22ProNY
3Mike Johnson2019-04-30ProCA
4Emma Wilson2020-03-05FreeTX
5Jack Davis2020-01-01ProNY
Example Input:


Here is the PostgreSQL query that would achieve this:

The query joins the customers and transactions tables using INNER JOIN on the common field, . It then filters the results for customers from New York who have a 'Pro' plan and made purchases in 2020. The clause groups the result by customer, counting the total number of purchases that each customer made during 2020. The result is ordered in descending order based on the total number of purchases. This helps to identify the top Pro customers from New York in 2020.

Since joins come up so often during SQL interviews, try this interactive Snapchat JOIN SQL interview question: Snapchat Join SQL question

SQL Question 9: Analyse Webinar Attendee Data

Imagine you are a data analyst at ZoomInfo and will access data relating to the webinars conducted by the company. The task is to find out the number of attendees per webinar per month for the year 2021. This will give the company an insight into which months had the most interactions and whether any specific webinar attracted more attendees.

Assume that you have access to a table which logs the details of every attendee of every webinar.

Example Input:
001100101/12/2021 00:00:00
001100201/12/2021 00:00:00
002100302/12/2021 00:00:00
003100402/12/2021 00:00:00
003100502/12/2021 00:00:00
Example Output:


The PostgreSQL query is as follows:

This query uses the EXTRACT function to get the month from the attend_date field and the COUNT function to count the number of attendees for each webinar. It groups the results by month and webinar_id, and it orders the results by month and the total number of attendees in descending order. The WHERE clause is used to filter for only data from 2021.

Preparing For The ZoomInfo SQL Interview

The key to acing a ZoomInfo SQL interview is to practice, practice, and then practice some more! Beyond just solving the above ZoomInfo SQL interview questions, you should also solve the 200+ tricky sql questions on DataLemur which come from companies like Google, Microsoft and Silicon Valley startups. DataLemur Question Bank

Each DataLemur SQL question has multiple hints, full answers and best of all, there's an online SQL code editor so you can right in the browser run your SQL query answer and have it executed.

To prep for the ZoomInfo SQL interview you can also be useful to practice SQL questions from other tech companies like:

In case your SQL skills are weak, forget about going right into solving questions – go learn SQL with this free SQL tutorial.

SQL tutorial for Data Scientists & Analysts

This tutorial covers topics including 4 types of JOINS and filtering on multiple conditions using AND/OR/NOT – both of these come up often in SQL interviews at ZoomInfo.

ZoomInfo Data Science Interview Tips

What Do ZoomInfo Data Science Interviews Cover?

In addition to SQL query questions, the other types of questions to practice for the ZoomInfo Data Science Interview are:

ZoomInfo Data Scientist

How To Prepare for ZoomInfo Data Science Interviews?

The best way to prepare for ZoomInfo Data Science interviews is by reading Ace the Data Science Interview. The book's got:

  • 201 Interview Questions from tech companies like Netflix, Google, & Airbnb
  • A Crash Course on Python, SQL & ML
  • Great Reviews (900+ reviews, 4.5-star rating)

Ace the Data Science Interview Book on Amazon