Querying data with SQL

Querying data means asking questions of a database by writing queries in the structured query language.

Also called: SQL · queries · database · joins · data extraction · query optimisation

1What it is

Querying data means asking questions of a database by writing queries in the structured query language. The skill covers selecting and filtering rows, joining tables, summing and counting by group, the ordering and shaping of results, the checking of a result against a known total, and the saving of queries so that a report can be repeated. It is not database design and it is not statistics. Done well, it produces a result that answers the question asked, agrees with a known total and can be rerun the next period.

2Who needs it

Dots: how well the role needs each skill · ●○○ understand · ●●○ do · ●●● design

Critical for
Data Scientist●●●
Data Scientist (Banking)●●●
Growth Marketing Analyst●●●
BI Analyst (Banking)●●○
Business Operations Analyst●●○
+ 7 more
CRM Specialist●●○
Data Analyst●●○
Data Analyst (Banking)●●○
Data Governance Analyst●●○
GIS Analyst●●○
People Analytics Analyst●●○
Sales Operations Analyst●●○
Important for
Actuarial Analyst●●○
AI Business Analyst●●○
ALM Analyst●●○
Business Analyst●●○
+ 53 more
Business Analyst (Banking)●●○
Capital Reporting Analyst●●○
Client Reporting Analyst●●○
Corporate Credit Analyst●●○
Credit Risk Analyst●●○
Credit Risk Model Developer●●○
Demand Planner●●○
Forensic Accounting●●○
Liquidity Reporting Analyst●●○
Liquidity Risk Analyst●●○
Market Risk Analyst●●○
Model Risk & Validation●●○
Operational Risk Analyst●●○
P&L Analyst●●○
Portfolio Analyst●●○
Pricing Analyst●●○
Process Analyst (Banking)●●○
Product Control Analyst●●○
Quantitative Developer●●○
Statistician●●○
Supply Chain Planner●●○
Traded Risk Analyst●●○
Underwriting Analyst●●○
Valuation Control Analyst●●○
Agency Operations Analyst●○○
Confirmations Analyst●○○
Corporate Actions Analyst●○○
Fund Accountant●○○
Fund Reporting Analyst●○○
Loan Operations Analyst●○○
Master Data Specialist●○○
Middle Office Analyst●○○
Private Fund Administrator●○○
Procurement Analyst●○○
Reconciliations Analyst●○○
Settlements Analyst●○○
Transfer Agency Analyst●○○
Supporting for
Fund Selection Analyst●●○
Index & ETF Analyst●●○
Investment Risk Analyst●●○
Portfolio Management●●○
+ 132 more
AML Analyst●○○
Buyer●○○
Claims Analyst●○○
Commercial Finance Analyst●○○
Compliance Officer●○○
Conduct Risk Analyst●○○
Contract Manager●○○
Corporate Treasury Analyst●○○
Customer Service Specialist●○○
Customer Success Manager●○○
Data Entry Clerk●○○
ESG Reporting Specialist●○○
FP&A Analyst●○○
Fraud Analyst●○○
KYC Analyst●○○
Market Research Analyst●○○
Merchandise Planner●○○
Payments Operations Analyst●○○
Product Owner●○○
Product Owner (Banking)●○○
Regulatory Change Analyst●○○
Sanctions Analyst●○○
Treasury Analyst●○○
Treasury Operations Analyst●○○
Bid & Proposal ManagerUseful●○○
BookkeepingUseful●○○
Business ControllerUseful●○○
Change ManagerUseful●○○
Change Manager (Banking)Useful●○○
Civil Service Administrative OfficerUseful●○○
Collections & Recoveries SpecialistUseful●○○
Company SecretaryUseful●○○
Company Secretary (Listed Companies)Useful●○○
Corporate Banking AnalystUseful●○○
Corporate Development AnalystUseful●○○
Credit Research AnalystUseful●○○
CSR & Social Impact ManagerUseful●○○
Customs Broker / Customs DeclarantUseful●○○
Cyber Risk Consultant (Banking)Useful●○○
Cybersecurity GRC ConsultantUseful●○○
Data Protection SpecialistUseful●○○
Debt Capital MarketsUseful●○○
Document ControllerUseful●○○
EconomistUseful●○○
Equity Capital MarketsUseful●○○
Equity ResearchUseful●○○
ESG Investment AnalystUseful●○○
ESG Research AnalystUseful●○○
External AuditUseful●○○
External Audit (Financial Services)Useful●○○
Facilities ManagerUseful●○○
Family Office AnalystUseful●○○
FIG CoverageUseful●○○
Finance Transformation ConsultantUseful●○○
Freight Forwarding CoordinatorUseful●○○
Fundraising ManagerUseful●○○
General AccountantUseful●○○
Group Reporting AccountantUseful●○○
HR Business PartnerUseful●○○
Import/Export SpecialistUseful●○○
Insurance Broker / Account HandlerUseful●○○
Internal Audit ConsultantUseful●○○
Internal AuditorUseful●○○
Investment Banking (M&A)Useful●○○
IT AuditorUseful●○○
Learning & Development SpecialistUseful●○○
Legal CounselUseful●○○
Leveraged FinanceUseful●○○
Loan Officer (Retail & SME Lending)Useful●○○
Logistics & Distribution ManagerUseful●○○
Macro Research AnalystUseful●○○
Management ConsultantUseful●○○
Markets Sales AnalystUseful●○○
Merchant Acquiring Sales ExecutiveUseful●○○
Operations & Office CoordinatorUseful●○○
PMO AnalystUseful●○○
PMO Analyst (Banking)Useful●○○
Policy OfficerUseful●○○
Portfolio Analyst (PMO)Useful●○○
Privacy Specialist (Technology)Useful●○○
Private Banking AnalystUseful●○○
Private Credit AnalystUseful●○○
Private Equity AnalystUseful●○○
Product Marketing ManagerUseful●○○
Production PlannerUseful●○○
Programme ManagerUseful●○○
Programme Manager (Banking)Useful●○○
Project Finance AnalystUseful●○○
Project ManagerUseful●○○
Project Manager (Banking)Useful●○○
Property ManagerUseful●○○
Public Finance & Budget AnalystUseful●○○
Quantity Surveyor / Cost EstimatorUseful●○○
Real Estate AnalystUseful●○○
Records & Information ManagerUseful●○○
Reinsurance Operations AnalystUseful●○○
Restructuring & TurnaroundUseful●○○
Retail Banking AdvisorUseful●○○
Risk Advisory ConsultantUseful●○○
SecuritisationUseful●○○
Strategy AnalystUseful●○○
StructuringUseful●○○
Sustainable Finance AnalystUseful●○○
Talent Acquisition SpecialistUseful●○○
Tax AdvisoryUseful●○○
Trade Finance AnalystUseful●○○
Trading AnalystUseful●○○
Transaction Banking AnalystUseful●○○
Transfer Pricing AnalystUseful●○○
Transformation Programme ManagerUseful●○○
Transition Manager (Outsourcing)Useful●○○
Venture Capital AnalystUseful●○○
Warehouse & Inventory CoordinatorUseful●○○
Wholesale Account ManagerUseful●○○

3Three levels of this skill

Every role needs this skill at one of three levels. The dots next to a role, here and on the role’s page, say which.

●○○ Understand itYou can follow a report or a conversation about it and ask the right questions; you do not produce it yourself.For this skill: Understands that data sits in related tables and can be asked questions with a query language; recognises selection, filtering and grouping, and knows that a result needs checking; can read a simple query and say what it returns.
●●○ Do itYou produce it yourself, every day, and can explain it to a colleague.For this skill: Writes queries that join several tables and aggregate by period, entity or product, checks totals against reports, documents the logic, and hands queries on so that a report can be rerun.
●●● Design itYou decide how it is done, set the method and the limits, and answer for them to management and the supervisor.For this skill: Handles large and messy data sets, tunes slow queries, designs views and reusable logic for the finance team, and reviews the queries of others. Advises on where data should be prepared and how its meaning is documented.

4Concepts behind it

In the topics Selecting and filtering data · Joining and aggregating tables · Checking query results · Reusable queries for reporting

5Common mistakes

Joins on a field that is not unique, so rows are duplicated and totals are too high
Filters out rows without noticing, so the total does not match the ledger
Aggregates at the wrong level, so an average is taken of averages
Leaves a query undocumented, so no one can rerun it after the author leaves
Does not check the result, so an error reaches a report

Updated 5 Nov 2026