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
Top Assets by Transaction Volume
00:00
5 left

Top Assets by Transaction Volume

MediumSQL · PostgreSQL

Problem

Write a query to identify top-performing assets based on transaction volume over a specific period in DTCC transaction data.

For this exercise, use the period from January 1, 2025 through March 31, 2025, inclusive. Return the three highest transaction-volume ranks, including all assets tied at the third rank.

Output

  1. One row per qualifying asset with asset_id, asset_name, transaction_volume, and performance_rank
  2. Include only transactions within the period and order by rank ascending, then asset_id ascending

Schema

assets
ColumnTypeDescription
asset_idPKINTUnique identifier for the asset
asset_nameVARCHAR(100)Display name of the asset
asset_typeVARCHAR(40)Asset classification
transactions
ColumnTypeDescription
transaction_idPKINTUnique identifier for the transaction
asset_idINTReferenced asset identifier
transaction_dateDATEDate the transaction was recorded
transaction_typeVARCHAR(30)Transaction classification
Tablesassetstransactions
Interviewer

Whenever you're ready, walk me through your approach or go straight to the code. The requirements and the two tables are in the Question tab.

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.