Innovation – Collaboration

Data Analytics

How SQL was used to alert patients at risk Heart Attack

During a clinical trial the Principal Investigator notified the team that she has seen an uptick in heart attacks for his patients over the past few months. She has been noticing some trends across his patients and wanted to get ahead of things by reaching out to current patients who are at a high risk of a heart attack.

So, we needed to identify which patient she needs to reach out to and provide that information to her.

The criteria was that the patient was over the age of 50, cholesterol level of 240 or over, and weight 200 or greater. If all these criteria was matched then they are at high risk of having a heart attack.

In summary, the SQL query written for the Doctor:

SELECT *
FROM patients
WHERE age > 50 AND cholesterol >= 240 AND weight >= 200
 
 
 

Innovation – Collaboration

Business Analytics

Waterfall vs. Agile

In business analytics, Waterfall and Agile are two distinct methodologies used for managing projects. Each has its own strengths and is suited to different types of business environments and project needs.

I have experienced  methods both over my career in  projects for clients where they were utilized depending on the clients needs:
 

🎯 Real-Life Project: Launching a New Online Banking Feature

 

Client’s Business Goal

Add a “Spend Tracker” feature to a bank’s mobile app that categorizes customer transactions and offers spending insights. 

 

🔵 Waterfall Approach

 

Project:

 

The client which was a traditional bank with strict regulatory and security controls opted for the Waterfall methodology.

 

The process I used

 
  1. Requirement Gathering (BA Role)

    • Conduct detailed stakeholder interviews and workshops.

    • Documents everything in a Business Requirements Document (BRD) and Functional Requirements Document (FRD).

    • These are reviewed, revised, and signed off.

  2. Design

    • The technical part of the team designs the system based entirely on the signed-off documents.

  3. Development

    • Work with the developers code the full feature as per specs. No major changes are accepted mid-project.

  4. Testing

    • Team up with the QA to test the complete system against original specs using test cases written from the FRD.

  5. Deployment

    • The final product is released only after all phases are complete.

 

Pros

 

Clear roadmap

Thorough documentation

Easy to measure progress

 

Cons

 

Slow to deliver value

Inflexible to changes

Risk of misaligned outcomes if initial assumptions were off

 

🟢 Agile Approach

 

Project:

 

A fintech start-up wants to implement the Spend Tracker in their mobile app. They use Agile for speed and flexibility.

 

The process I used

 
  1. Sprint Planning (BA Role)

    • Worked with the Product Owner and team to break the features into small user stories (e.g., “As a user, I want to see my spending by category”).

  2. Incremental Delivery

    • Myself and the Developers build and release small parts of the feature every 2 weeks (sprint).

    • I would then refine and update requirements as feedback comes in.

  3. Daily Stand-ups & Backlog Grooming

    • Continuous collaboration with the team to clarify or adjust requirements.

  4. Iterative Testing

    • BA & QA tests in each sprint.

    • Changes and improvements happen continuously.

  5. Frequent Releases

    • Users start seeing value after the first few sprints rather than waiting months.

 

Pros

 

Fast feedback loops

Highly adaptable

Early value delivery

 

Cons

 

Less formal documentation

Requires high team involvement

Scope creep can be a risk if not managed well

 

🔍 Waterfall vs. Agile Summary Table

 
 
 

Aspect

 
 

Waterfall

 
 
 

Agile

 
 

Project Structure

 
 

Sequential (phases: plan → build → test)

 
 
 

Iterative (sprints/cycles)

 
 

BA Involvement

 
 

Front-loaded

 
 
 

Continuous

 
 

Documentation

 
 

Extensive (BRD, FRD, RTM, etc.)

 
 
 

Lightweight (User Stories, AC)

 
 

Change Handling

 
 

Difficult once dev starts

 
 
 

Expected and welcomed

 
 

Delivery Timeline

 
 

One big release at end

 
 
 

Frequent small releases

 
 

Stakeholder Engagement

 
 

At milestones

 
 
 

Ongoing and active

 
 
 

Best For

 
 
 

Fixed-scope, compliance-heavy projects

 
 
 
 Innovative, evolving, user-focused work
 

🧠 In Summary My Viewpoint

 

Use Waterfall for: Government systems, infrastructure projects, banking/insurance/pharmaceutical/oil and gas compliance.

Use Agile for: Customer-facing apps, SaaS tools, products with fast-changing requirements.

 

Innovation – Collaboration

Customer Churn Analysis My SQL Breakdown

 

Below are BA-style SQL queries I’ve used on  projects. I’ll explain why I ran each query, what question I was answering, and how it influenced the project.


 

1️⃣ Customer Churn Analysis

 

Project: Telecom – Understanding Why Customers Leave

 

Business question

“Who is churning, and when does it happen?”

 

SQL I used

 
SELECT
c.contract_type,
COUNT(*) AS total_customers,
SUM(CASE WHEN c.churn_flag = 'Y' THEN 1 ELSE 0 END) AS churned_customers,
ROUND(
SUM(CASE WHEN c.churn_flag = 'Y' THEN 1 ELSE 0 END) * 100.0 / COUNT(*),
2
) AS churn_rate_pct
FROM customers c
GROUP BY c.contract_type
ORDER BY churn_rate_pct DESC;

 

🔍 Step-by-Step Explanation


1️⃣ FROM customers c

FROM customers c

  • This tells SQL we’re querying the customers table.

  • c is an alias — it makes the query shorter and easier to read.

🧠 BA thinking:

“This table should have one row per customer with contract and churn info.”

 

2️⃣ SELECT c.contract_type

SELECT c.contract_type,

  • This groups customers by contract type
    (e.g. Monthly, 12-Month, 24-Month)

🧠 BA insight:

“I want to compare churn across different contract models.”

 

3️⃣ COUNT(*) AS total_customers

COUNT(*) AS total_customers,

  • Counts how many customers are in each contract type.

  • COUNT(*) counts all rows in that group.

📊 Example output:

contract_typetotal_customers
Monthly8,000
12-Month5,000

🧠 Why I need this:

I can’t talk about churn percentages without knowing the base size.

 

4️⃣ Counting Churned Customers

SUM(CASE WHEN c.churn_flag = ‘Y’ THEN 1 ELSE 0 END)

 

SUM(CASE WHEN c.churn_flag = ‘Y’ THEN 1 ELSE 0 END) AS churned_customers,

 

What this does

  • CASE checks each customer:

    • If churn_flag = 'Y' → count as 1

    • Otherwise → count as 0

  • SUM() adds them up per contract type.

📊 Example:

contract_typechurned_customers
Monthly2,400
12-Month400

🧠 BA translation:

“How many customers actually left under each contract?”

 

5️⃣ Calculating Churn Rate (%)

ROUND( churned / total * 100, 2 )

 

ROUND(
SUM(CASE WHEN c.churn_flag = ‘Y’ THEN 1 ELSE 0 END) * 100.0 / COUNT(*),
2
) AS churn_rate_pct

 

Step-by-step logic

  1. Numerator:

SUM(CASE WHEN churn_flag = ‘Y’ THEN 1 ELSE 0 END)

→ number of churned customers

2. Denominator:

COUNT(*)

→ total customers

3. Multiply by 100.0

    • Forces decimal calculation (important!)

    • Avoids integer division (e.g. 1/10 = 0)

4. ROUND(..., 2)

      • Rounds to 2 decimal places

      • Makes it presentation-ready for stakeholders

contract_typechurn_rate_pct
Monthly30.00
12-Month8.00

🧠 Why this matters:

Percentages tell a much clearer story than raw numbers.

 

6️⃣ GROUP BY c.contract_type

GROUP BY c.contract_type

  • This tells SQL:

    “Do all these calculations per contract type

Without this:

  • SQL wouldn’t know how to group the counts and sums.

 

 (%)7️⃣ ORDER BY churn_rate_pct DESC

ORDER BY churn_rate_pct DESC;

  • Sorts results from highest churn to lowest

  • Puts the biggest problem at the top

🧠 BA move:

I can immediately say:
“Monthly contracts are our biggest churn risk.”

contract_typetotal_customerschurned_customerschurn_rate_pct
Monthly8,0002,40030.00
12-Month5,0004008.00
24-Month3,000903.00

 

🎯 How I Used This as a Business Analyst

I took this result and:

  • Presented it in stakeholder workshops

  • Used it to justify onboarding improvements

  • Feed it into dashboards

  • Define targeted retention initiatives

  • Influence product and pricing decisions

🧠 Key Takeaway

This query doesn’t just “show data” —
it supports a business decision.

How SQL helped

  • Showed churn was highest on monthly contracts

  • Proved churn wasn’t evenly distributed

  • Gave evidence to redesign contract terms and onboarding

👉 This shaped the business case, not just a report.

Innovation – Collaboration

Graphic Design

We designed custom graphic assets for Deep Sounds Music, a music production company. Collaborating with their team, we delivered a visually striking, modern style that enhances audience engagement and strengthens brand identity.