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
ExperiencesCoaching
New
Practice
Mock InterviewsTimed interview simulations with feedbackSuccess 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
Get started
Find Qualifying January Trade Requests
00:00
5 left

Find Qualifying January Trade Requests

MediumSQL · PostgreSQL

Problem

Write an SQL query to join two tables and filter the results based on certain conditions.

Asked in the Technical round stage. Using the provided tables, return pending trade requests from active analysts on the Equities or Fixed Income desks, requested during January 2025, with a positive notional amount.

Output

  1. One row per qualifying trade request.
  2. Return request_id, analyst_name, desk, request_type, and requested_at.
  3. Sort by requested_at ascending, then request_id ascending.

Schema

analysts
ColumnTypeDescription
analyst_idPKINTUnique analyst identifier
analyst_nameVARCHAR(100)Analyst full name
deskVARCHAR(50)Assigned business desk
is_activeBOOLEANWhether the analyst is currently active
trade_requests
ColumnTypeDescription
request_idPKINTUnique trade request identifier
analyst_idINTAnalyst submitting the request
request_typeVARCHAR(40)Type of trade request
statusVARCHAR(20)Current request status
requested_atDATEDate the request was submitted
notional_amountNUMERIC(14,2)Requested trade notional amount
Tablesanalyststrade_requests
Interviewer

Your question is Find Qualifying January Trade Requests. 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.