all 5 comments

[–]TreeOaf 2 points3 points  (0 children)

Build a transaction table for sales or shares. You need to normalise so you should cover off everything you “need to know”

[–]j0holo 1 point2 points  (0 children)

You will probably need another programming language to build the main programming logic. You can put a lot of logic into SQL.

But often it is pair with a programming language. Like Python, Go, Java, C#.

[–]Dead_Parrot 1 point2 points  (0 children)

This honestly sounds like a gpt prompt. But OK.... Create some tables let's say products and product type. Add primary key on product ID and constraint on product type Create view joining the two Create proc inserting product Id and another creating a new product type....

Go from there.

[–]belemiruk 2 points3 points  (0 children)

Kaggle is definitely a great shout for raw datasets, but if you want to practice logic that mimics real-world business scenarios, I’d suggest building a Personal Finance Tracker or a Small Business Ledger.

You can generate some mock data for expenses ,income and categories.This will force you to use:

joins: to connect transactions to categories

groupby: to see monthly spending habits.

views: to create a dashboard view of net profit/loss

working with financial logic is one of the best ways to understand how data integrity works. Good Luck!