Dataford
Interview QuestionsInterview GuidesExperiencesCoaching
New
Pricing
Get started
Dataford
Popular roles
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Browse
Browse All RolesEvery role hub, from analyst to MLBrowse All CompaniesCompany-specific interview loopsAll Interview GuidesThe full guide library
Top questions by role
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Top questions by skill
SQLPythonStatisticsMachine LearningA/B TestingSystem DesignGenerative AIProduct SenseMetricsBehavioral
Browse all questions →Try a mock interview
Experiences
Practice
Mock InterviewsTimed interview simulations with feedbackCoaching1:1 coaching with people at your target companiesSuccess PathYour 6-week structured planModulesCurated lessons by topicWebinarsTalks from ex-Big Tech data leadsPlaygroundA free-form scratch editor
Learn
BlogInterview strategy and career adviceTech Job Market ReportHiring trends across data and AI rolesFor UniversitiesDataford for career centersAbout DatafordWho we are and how we build
Pricing
Build my plan
Using Marketing Execution Tools
00:00
5 left

Using Marketing Execution Tools

MediumSQL · PostgreSQL

Problem

Describe how you use tools in marketing execution.

For this SQL exercise, translate the question into a report of marketing execution tool usage during January 2025. Include tools with no qualifying activity so usage gaps are visible.

Output

  1. One row per tool, with tool_name, execution_count, distinct_campaigns, completed_count, completion_rate, and last_used_at.
  2. Include only January 2025 activities in the metrics.
  3. Order by completion_rate descending, execution_count descending, then tool_name ascending.

Schema

marketing_tools
ColumnTypeDescription
tool_idPKINTUnique marketing tool identifier
tool_nameVARCHAR(100)Marketing tool name
categoryVARCHAR(50)Tool category
marketing_activities
ColumnTypeDescription
activity_idPKINTUnique execution activity identifier
tool_idINTMarketing tool used for the activity
campaign_idINTCampaign associated with the activity
executed_atDATEDate the activity was executed
statusVARCHAR(20)Execution status
channelVARCHAR(30)Marketing channel
Tablesmarketing_toolsmarketing_activities
Interviewer

Your question is Using Marketing Execution Tools. Start with the requirements and the two tables in the Question tab.

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.
CodePostgreSQL
Sign up free to run your codeLog inLn 1
Run your query to see results here.