Mastering Business Analysis & Jira for Modern TeamsLesson 30 of 32
Lesson 30 of 32

SQL & Excel Essentials for Business Analysts: KPIs, Funnels & Data Verification

Overview & Learning Objectives

Modern Business Analysts cannot rely solely on hearsay or manual testing. When engineers claim a feature is "Done," a tech-empowered BA verifies the underlying database to ensure data is written accurately. Furthermore, BAs use SQL and Excel to extract baseline metrics, measure conversion funnels, and quantify ROI. In this lesson, learn the core SQL queries and Excel analytical frameworks essential for modern BA roles.

  • Write multi-table SQL queries with INNER JOIN, LEFT JOIN, and aggregate GROUP BY clauses to verify business requirements.
  • Audit production databases to identify data integrity anomalies, null values, and orphan records.
  • Build executive KPI dashboards in Excel utilizing XLOOKUP, SUMIFS, and dynamic Pivot Tables.
Example

Real-World Example: The School Attendance Register & The Gold Star Highlighter

PRACTICAL CONTEXT
  • Scenario: Cross-referencing the master attendance ledger using color highlighters and quick filter tabs.
  • BA Data Toolkit: SQL JOINs to verify data across multiple tables; Excel XLOOKUP and Pivot Tables for summary analysis.
  • Analyst Value: Empowers BAs to validate backend database realities independently without relying on dev assistance.
Corporate / Tech Term Classroom / Everyday Metaphor What It Actually Means
SELECT (SQL) Show me the names of the students Which columns do you want to see?
WHERE (SQL) Only students wearing green sports t-shirts Filtering out rows that don't match your rules.
XLOOKUP (Excel) Looking up a friend's birthday from their student ID card Connecting two tables using a common key.
Pivot Table (Excel) Sorting your Halloween candy into piles: Chocolate, Gummy, Sour Summarizing thousands of rows into a neat summary box.
Core Principle: A BA who knows SQL never has to beg a busy engineer to pull data for them—you become self-sufficient and 10x faster!
Process

Visual Infographic: SQL vs Excel: When to Use Which

DATA INFOGRAPHIC
Stage 1
Excel (Small & Visual)

Up to 50,000 rows: Quick charts, financial models, executive slide decks.

Stage 2
SQL (Giant Databases)

Millions of rows: Directly queries the live database without crashing your laptop.

Stage 3
The BA Combo

Extract data using SQL Paste summary into Excel Present to Boss!

Industry Standard & Framework

Standard: Data-Driven BA Standard: Validate Acceptance Criteria directly against staging database tables before signing off on QA sprint deliverables.

Real-World Business Application: Blinkit Delivery Partner Incentive & Payout SQL Reconciliation Audit

Blinkit launches rain surge bonuses for delivery partners. The BA writes SQL queries to ensure the surge payout engine credited the correct accounts without double-billing.

SQL Query ClauseExample BA Verification QueryAnalytical Validation Goal
Filtering & Date Range`SELECT * FROM orders WHERE status = 'Delivered' AND delivery_time <= 12`Verify that 10-minute delivery SLAs were met.
Multi-Table Reconciliation`SELECT o.order_id, r.refund_amount FROM orders o LEFT JOIN refunds r ON o.id = r.order_id`Detect whether any refunded orders lack parent transaction records.
Aggregation & Grouping`SELECT dark_store_id, AVG(prep_time) FROM orders GROUP BY dark_store_id HAVING AVG(prep_time) > 8`Identify dark stores breaching warehouse preparation SLAs.
Excel XLOOKUP Audit`=XLOOKUP(A2, StagingDB!A:A, StagingDB!D:D, "Missing")`Reconcile offline finance invoices against staging system transaction dumps.

Step-by-Step UI Tutorial & Visual Workflow Guide

Below is the practical, non-technical walkthrough showing how Business Analysts design, review, and execute this capability inside real-world tools like Jira, Confluence, and enterprise software portals.

Visual SQL & Excel Data Verification Guide for Business Analysts

EXECUTION PHASES
1 Requirement Verification
Why BAs Need Data Skills

Never rely solely on verbal developer updates. A tech-empowered BA verifies staging databases to confirm data integrity.

2 LEFT JOIN Audit
Reconciling Tables with SQL JOINs

Identify orphaned records: find refunds processed in the payment ledger that lack parent order IDs in the order database.

3 Aggregate Analysis
Verifying Delivery SLAs with GROUP BY

Audit average dark store packing times: `SELECT store_id, AVG(prep_time) FROM orders GROUP BY store_id HAVING AVG(prep_time) > 8`.

4 Offline Audit Sheet
Excel XLOOKUP Reconciliation

Reconcile bank settlement CSV dumps against internal accounting ledger using modern `=XLOOKUP()` formulas.

5 Executive Reporting
Dynamic Pivot Table KPI Summaries

Build 1-click pivot tables summarizing monthly refund volumes, top damaged SKU categories, and carrier claim rates.

DBeaver / MySQL Workbench & Microsoft Excel

Step-by-Step UI Tutorial: Auditing Sprint Deliverables via SQL & Excel

Step 1
Step 1: Open SQL Query Editor

Connect to staging database -> Open SQL console -> Query table `orders` and `refunds`.

Step 2
Step 2: Run Left Join Orphan Audit Query

`SELECT r.refund_id, r.order_id FROM refunds r LEFT JOIN orders o ON r.order_id = o.order_id WHERE o.order_id IS NULL;`

Step 3
Step 3: Document Defect with SQL Proof in Jira

If orphan rows return, attach the SQL export to Jira Bug ticket: "Critical: Refund records written without parent order foreign key".

Step 4
Step 4: Build Excel Pivot Dashboard for Product Owner

Import CSV into Excel -> Insert Pivot Table -> Drag "Category" to Rows and "Refund_Amount" to Values -> Sort descending.

BA Data Toolkit: SQL Query Patterns & Excel Formulas

DATA VERIFICATION CHEAT SHEET
itemwhenaudience
SQL Left Join Audit`SELECT * FROM refunds r LEFT JOIN orders o ON r.id = o.id WHERE o.id IS NULL`Detect Missing Data Links
SQL Aggregation`SELECT category, COUNT(*), SUM(amount) FROM refunds GROUP BY category`Identify Top Refund SKUs
Excel XLOOKUP`=XLOOKUP(A2, BankStatements!A:A, BankStatements!D:D, "Missing")`Reconcile Payment Gateways
Excel Pivot TableSummarize 50,000 rows into dynamic monthly KPI breakdown with slicersExecutive Presentation

Implementation Guidelines for Business Analysts

  • Observe how SQL JOIN analysis detects orphaned records (e.g., Refund 502 linked to nonexistent Order 999).
  • Understand why learning basic SQL empowers BAs to write precise, airtight defect tickets for engineering teams.
  • Use Excel Pivot Tables to aggregate monthly conversion metrics across thousands of CSV rows.

Practical Hands-On Exercises

  1. Write a SQL query to calculate the total revenue generated by each customer who made more than 3 purchases in March 2026.
  2. How does XLOOKUP improve upon legacy VLOOKUP in Excel when auditing requirement data tables?