English
Open in Telegram

Post SQL Project Series #3

26 September 2026
D
Data Analytics Projects - SQL, Excel, Tableau, Python & Power BI Interview Resources
SQL Project Series #3 E-Commerce Sales Analysis – Intermediate SQL Business Questions Let's solve more real-world business problems using SQL. Business Questions 11. Find Repeat Customers SELECT customer_id, COUNT(order_id) AS total_orders FROM orders GROUP BY customer_id HAVING COUNT(order_id) > 1; 12. Find Customers Who Never Placed an Order SELECT c.customer_id, c.customer_name FROM customers c LEFT JOIN orders o ON c.customer_id = o.customer_id WHERE o.order_id IS NULL; 13. Find Inactive Customers (No Orders in the Last 90 Days) SELECT c.customer_id, c.customer_name FROM customers c LEFT JOIN orders o ON c.customer_id = o.customer_id GROUP BY c.customer_id, c.customer_name HAVING MAX(o.order_date) < CURRENT_DATE - INTERVAL '90 days' OR MAX(o.order_date) IS NULL; 14. Find the Best-Selling Product Category SELECT p.category, SUM(oi.quantity) AS units_sold FROM products p JOIN order_items oi ON p.product_id = oi.product_id GROUP BY p.category ORDER BY units_sold DESC LIMIT 1; 15. Find the Highest Revenue Product SELECT p.product_name, SUM(oi.quantity * oi.unit_price) AS revenue FROM products p JOIN order_items oi ON p.product_id = oi.product_id GROUP BY p.product_name ORDER BY revenue DESC LIMIT 1; 16. Find the Lowest Revenue Product SELECT p.product_name, SUM(oi.quantity * oi.unit_price) AS revenue FROM products p JOIN order_items oi ON p.product_id = oi.product_id GROUP BY p.product_name ORDER BY revenue LIMIT 1; 17. Calculate Average Products per Order SELECT ROUND(AVG(product_count), 2) AS avg_products_per_order FROM ( SELECT order_id, SUM(quantity) AS product_count FROM order_items GROUP BY order_id ) t; 18. Find Orders Worth More Than 10,000 SELECT order_id, SUM(quantity * unit_price) AS order_value FROM order_items GROUP BY order_id HAVING SUM(quantity * unit_price) > 10000; 19. Find Customers with the Highest Average Order Value SELECT customer_id, ROUND(AVG(order_value), 2) AS avg_order_value FROM ( SELECT o.customer_id, o.order_id, SUM(oi.quantity * oi.unit_price) AS order_value FROM orders o JOIN order_items oi ON o.order_id = oi.order_id GROUP BY o.customer_id, o.order_id ) t GROUP BY customer_id ORDER BY avg_order_value DESC; 20. Find the Top 3 Cities by Revenue SELECT c.city, SUM(oi.quantity * oi.unit_price) AS revenue FROM customers c JOIN orders o ON c.customer_id = o.customer_id JOIN order_items oi ON o.order_id = oi.order_id GROUP BY c.city ORDER BY revenue DESC LIMIT 3; SQL Concepts Practiced • LEFT JOIN • HAVING • Aggregate Functions • Nested Queries • GROUP BY • Business KPI Analysis • Customer Segmentation • Revenue Analysis 💡 Double Tap ❤️ For More
467 ·

Nearby in the feed

DData Analytics Projects - SQL, Excel, Tableau, Python & Power BI Interview Resources🚀 𝐁𝐞𝐜𝐨𝐦𝐞 𝐚𝐧 𝐀𝐈 𝐄𝐧𝐠𝐢𝐧𝐞𝐞𝐫 𝐢𝐧 𝟐𝟎𝟐𝟔 🎯 Choose Your Learning Track: 💻 Java Full Stack + AI Engineering 🌐 MERN Full Stack + AI Engineering Placement Highlights: ₹41 LPDData Analytics Projects - SQL, Excel, Tableau, Python & Power BI Interview Resources🚀 𝗚𝗼𝗼𝗴𝗹𝗲 𝗣𝗿𝗼𝗳𝗲𝘀𝘀𝗶𝗼𝗻𝗮𝗹 𝗖𝗲𝗿𝘁𝗶𝗳𝗶𝗰𝗮𝘁𝗲𝘀 𝗶𝗻 𝗗𝗮𝘁𝗮 𝗔𝗻𝗮𝗹𝘆𝘁𝗶𝗰𝘀 & 𝗔𝗜! 📊 Explore these 4 Google learning programs and develop practical, career-relevant skills. 🎓 Explore t
this message
DData Analytics Projects - SQL, Excel, Tableau, Python & Power BI Interview Resources𝗟𝗲𝘃𝗲𝗹 𝗨𝗽 𝗬𝗼𝘂𝗿 𝗦𝗸𝗶𝗹𝗹𝘀 𝘄𝗶𝘁𝗵 𝗧𝗵𝗲𝘀𝗲 𝗚𝗮𝗺𝗲-𝗖𝗵𝗮𝗻𝗴𝗶𝗻𝗴 𝗖𝗼𝘂𝗿𝘀𝗲𝘀! ​ Looking to learn practical, in-demand skills? These courses cover Generative AI, Cybersecurity, AI toolDData Analytics Projects - SQL, Excel, Tableau, Python & Power BI Interview ResourcesSQL Project Series #4 E-Commerce Sales Analysis – Advanced SQL with Window Functions 🚀 Window functions are widely used by Data Analysts to calculate rankings,
DData Analytics Projects - SQL, Excel, Tableau, Python & Power BI Interview ResourcesData Analytics Projects - SQL, Excel, Tableau, Python & Power BI Interview Resources@sqlproject · channel · Tech
39 664subscribers554average post reach
Venue feed Open in Telegram

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · Index limits · Remove a page · Catalog · Search · How we count