Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Find Missing Bot Assignments

EasySQL · PostgreSQL00:00
Practice interviewer
In session
5 left
00:00

Your question is Find Missing Bot Assignments. Start with the requirements and the two tables on the right.

Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.

You need to log in / sign up to run or submit.

Problem

Write a PostgreSQL query to find customers in Automation Anywhere data who require a bot assignment but do not currently have a matching active assignment. A match must use both customer_id and bot_name, and inactive assignments should still count as missing.

Schema

ColumnTypeDescription
requirement_id
customer_id
customer_name
customer_tier
bot_name
requires_assignment
ColumnTypeDescription
assignment_id
customer_id
bot_name
assigned_on
is_active
Tablescustomer_bot_requirementsbot_assignments
Your solutionPostgreSQL
You need to log in / sign up to run or submit.
Run a query to see results