Logo/
Amiaa Bubbles

Shared by Amiaa Bubbles

Log in

Make a lecture like this from your own PDF

Drop a PDF, slides or notes here. You'll sign up, then yours starts.

0:00 / 5:23

0:00 / 5:23Introduction to SQL Foundations
Month 1 SQL Foundations: SQL for Fintech Analysts
Amiaa Bubbles

Shared by Amiaa Bubbles

Summary

Think of SQL as your primary tool for asking a database specific questions. At its core, a database is just a collection of tables, and your job is to pull information from them. Remember that every row in a table represents one specific record—like one customer or one transaction—and understanding exactly what that single row represents is the secret to accurate analysis. Always watch out for NULL values, which aren't zero; they simply mean the data is missing or unknown.

To write a query, you’ll mostly use a handful of building blocks: SELECT to pick your columns, FROM to name the table, and WHERE to filter your results. You can also clean things up with ORDER BY to sort data, LIMIT to keep the list short, and DISTINCT to remove duplicates. A huge tip is to stop reading your query from top to bottom. Databases actually process them in a different order—starting with FROM and WHERE before finally selecting the columns—which explains why some filters don't work if you try to use them too early.

When you're troubleshooting, look out for common traps like missing commas, forgetting quotes around text, or trying to use "= NULL" (always use IS NULL instead). If you're ever unsure about your results, run a quick row count to make sure everything looks right. The best way to learn is to stop guessing and start being precise: identify exactly which tables you need, define your business rules clearly, and practice typing the queries yourself until you can explain the logic out loud.

Full transcript

0:00Welcome to Month 1 SQL Foundations. This lesson is for complete beginners, and the goal is not to memorize jargon — it is to become comfortable reading small datasets, writing simple queries, and explaining what the results mean. We start with what SQL is, then look at a tiny fictional fintech dataset, then build the basic query tools, and finally apply them to a realistic business question. The whole month is about careful thinking, not fast guessing.

0:32SQL stands for Structured Query Language. It is the language analysts use to ask a database precise questions. A database is an organized place where data is stored, usually across many connected tables. A table holds one kind of thing, like customers or transactions. A row is one record, and a column is one field or attribute. In fintech, this matters because analysts use SQL to answer real business questions about onboarding, failed payments, fraud signals, fees, and reporting.

1:10The lesson uses four fictional tables: customers, accounts, merchants, and transactions. One row in customers means one customer, one row in accounts means one account, one row in merchants means one merchant, and one row in transactions means one money movement or payment event. That row-level thinking is essential. If you do not know what one row represents, your analysis is already unstable. Also notice NULL: it means missing, unknown, or not applicable, not zero and not an empty string.

1:48The core SQL toolkit starts with SELECT and FROM. SELECT chooses the columns you want to see, and FROM tells SQL which table to use. Then WHERE filters rows, ORDER BY sorts the result, and LIMIT keeps only the first few rows. DISTINCT removes duplicates, aliases rename output columns, and calculations let you combine values such as amount plus an FX fee. These are the building blocks you will reuse constantly in beginner analysis.

2:23Once you know WHERE, the next step is choosing the right kind of filter. Use comparisons like =, >, or >= for exact rules and thresholds. Use AND when all conditions must be true, and OR when any one condition is enough — with brackets if the logic could become unclear. IN is cleaner than a long OR list. BETWEEN keeps values inside an inclusive range. LIKE searches text patterns. And for missing data, remember the rule: use IS NULL or IS NOT NULL, never = NULL. A quick row count is a useful safety check before you trust the result.

3:07A big beginner mistake is reading SQL in the order it is written instead of the order the database executes it. The practical order is FROM, then WHERE, then SELECT, then ORDER BY, then LIMIT. That explains why aliases often do not work inside WHERE in the same query: the alias is created later. The other big traps are missing commas, forgetting quotes around text, using = NULL, confusing WHERE with SELECT, leaving out brackets around OR logic, using SELECT star too casually, and not checking row counts when something looks off.

3:49Here is the kind of question a business analyst might actually face: which customers made successful GBP card transactions over 100 in the last 30 days? First, clarify the business rules: successful means status equals successful, card transaction means transaction_type equals card, and over 100 means amount above 100 in GBP, without mixing currencies. Next, identify the tables: transactions for the payment event, accounts to link account_id to customer_id, and customers for names. The final result in this fictional dataset is two rows: Nora Ahmed and Amina Hassan, both with successful GBP card transactions over 100.

4:40To finish Month 1, do not just read the answers — type the queries yourself. The lesson gives beginner practice, slightly harder practice, and business-style questions, plus oral check questions to test whether you can explain the ideas clearly. The homework is simple but important: drill queries in a SQL sandbox, write your own notes for each keyword, and produce a short business report from the fictional outputs. If you can write simple queries without copying, explain your filters out loud, handle NULLs correctly, and check row counts before trusting an output, you are ready to move on.

Ask AI about this video

Answers cite the source. Free account, no credit card.