Aditya Sharma’s Post

🧩 SQL Practice: Finding User Purchases Solved a good SQL problem from StrataScratch: 👉 Find users who made a second purchase within 1–7 days of their first purchase (excluding same-day purchases). 💡 Approach: Get each user’s first purchase date Join it back with all transactions Calculate the day difference Filter users who returned within 1–7 days 📌 Concepts used: CTE (WITH) | Aggregation (MIN) | Joins | Date arithmetic 🔗 Problem link: https://lnkd.in/g9EyimWx Simple problem, but a good way to practice real-world SQL logic. #SQL #DataAnalytics #Practice

  • text

To view or add a comment, sign in

Explore content categories