TGViewer
Channel Public Channel
SQL Programming Resources

SQL Programming Resources

@sqlanalyst

Find top SQL resources from global universities, cool projects, and learning materials for data analytics.

Admin: @coderfun

Useful links: heylink.me/DataAnalytics

Promotions: @love_data
Subscribers
76.7K
Photos
602
Videos
1
Links
572

Showing posts older than #2654 ยท Back to latest

Older Posts 20 shown
Post #2653 2.04K
๐ŸŽฏ Final Portfolio KPIs

๐Ÿ“Š Customer Acquisition, Retention, Churn

๐Ÿ“Š Cohort Retention, Repeat Purchase Rate, CLV

๐Ÿ“Š Revenue Growth, AOV, Purchase Frequency

๐Ÿ“Š RFM Segmentation, High-Value Customer Analysis

๐Ÿ“Š Monthly Revenue, Revenue by Cohort, Customer Engagement 

This project is especially useful for Data Analysts, Product Analysts, Growth Analysts, CRM Analysts, and Business Intelligence professionals because it combines SQL fundamentals with advanced customer analytics.

Double Tap โค๏ธ For More
  • โค 3
Post #2652 1.89K
๐Ÿš€ SQL Project Series #30: E-Commerce Customer Retention & Cohort Analysis ๐Ÿ“Š

Perfect project for Data, Product, and CRM Analysts. This one hits both SQL fundamentals + advanced customer analytics.

๐ŸŽฏ Business Objectives

โœ… Analyze customer retention

โœ… Build monthly customer cohorts

โœ… Measure repeat purchases

โœ… Calculate customer lifetime value

โœ… Identify high-value customers

โœ… Analyze customer churn

โœ… Compare cohort performance

โœ… Measure revenue retention

๐Ÿ“‚ Step 1: Create Database

CREATE DATABASE cohort_analysis_db;
USE cohort_analysis_db;


๐Ÿ“‚ Step 2: Create Customers Table

CREATE TABLE customers (
customer_id INT PRIMARY KEY,
customer_name VARCHAR(100),
signup_date DATE,
city VARCHAR(50)
);


๐Ÿ“‚ Step 3: Create Orders Table

CREATE TABLE orders (
order_id INT PRIMARY KEY,
customer_id INT,
order_date DATE,
order_amount DECIMAL(10,2),
order_status VARCHAR(20),
FOREIGN KEY (customer_id)
REFERENCES customers(customer_id)
);


๐Ÿ“‚ Step 4: Insert Sample Customers

INSERT INTO customers VALUES
(1,'Rahul Sharma','2025-01-05','Mumbai'),
(2,'Priya Verma','2025-01-10','Delhi'),
(3,'Amit Patel','2025-02-15','Pune'),
(4,'Sneha Joshi','2025-02-20','Bangalore'),
(5,'Rohan Gupta','2025-03-05','Hyderabad'),
(6,'Anjali Shah','2025-03-15','Mumbai');


๐Ÿ“‚ Step 5: Insert Sample Orders

INSERT INTO orders VALUES
(1001,1,'2025-01-10',2500,'Completed'),
(1002,1,'2025-02-15',3200,'Completed'),
(1003,1,'2025-03-20',1800,'Completed'),
(1004,2,'2025-01-20',1500,'Completed'),
(1005,2,'2025-03-05',2800,'Completed'),
(1006,3,'2025-02-20',4200,'Completed'),
(1007,3,'2025-03-25',3500,'Completed'),
(1008,4,'2025-02-25',1800,'Completed'),
(1009,5,'2025-03-10',2200,'Completed'),
(1010,5,'2025-04-15',3100,'Completed'),
(1011,6,'2025-03-20',2700,'Completed');


๐Ÿง  SQL Concepts You'll Practice

โœ” Date Functions

โœ” GROUP BY, Aggregate Functions, JOINs

โœ” CTEs, CASE WHEN, Subqueries

โœ” Window Functions, LAG(), DENSE_RANK()

โœ” COUNT DISTINCT, Cohort Analysis

๐Ÿ“Š Business KPIs You Can Build

๐Ÿ“ˆ Monthly Active Customers

๐Ÿ“ˆ New Customers by Month

๐Ÿ“ˆ Repeat Customers, Repeat Purchase Rate

๐Ÿ“ˆ Customer Retention Rate, Churn Rate

๐Ÿ“ˆ Customer Lifetime Value (CLV), AOV

๐Ÿ“ˆ Revenue per Cohort, Cohort Retention Rate

๐Ÿ“ˆ RFM Segmentation, High-Value Customer %

๐Ÿ’ก Example Queries

1. Find Customer Cohort

WITH customer_cohort AS (
SELECT
customer_id,
DATE_TRUNC('month', MIN(signup_date)) AS cohort_month
FROM customers
GROUP BY customer_id
)
SELECT * FROM customer_cohort ORDER BY cohort_month;


2. Monthly Customer Activity

SELECT
DATE_TRUNC('month', order_date) AS order_month,
COUNT(DISTINCT customer_id) AS active_customers
FROM orders
WHERE order_status = 'Completed'
GROUP BY DATE_TRUNC('month', order_date)
ORDER BY order_month;


3. Repeat Customers

SELECT
customer_id,
COUNT(order_id) AS total_orders
FROM orders
WHERE order_status = 'Completed'
GROUP BY customer_id
HAVING COUNT(order_id) > 1;


4. Customer Lifetime Value

SELECT
customer_id,
SUM(order_amount) AS lifetime_value
FROM orders
WHERE order_status = 'Completed'
GROUP BY customer_id
ORDER BY lifetime_value DESC;


5. Rank Customers by Revenue

WITH customer_revenue AS (
SELECT customer_id, SUM(order_amount) AS revenue
FROM orders WHERE order_status = 'Completed' GROUP BY customer_id
)
SELECT
customer_id,
revenue,
DENSE_RANK() OVER (ORDER BY revenue DESC) AS revenue_rank
FROM customer_revenue;
  • โค 4
  • ๐Ÿ‘ 1
Post #2651 1.77K
๐Ÿš€ ๐—ง๐—ผ๐—ฝ ๐—ฃ๐—ผ๐˜„๐—ฒ๐—ฟ ๐—•๐—œ ๐—œ๐—ป๐˜๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฒ๐˜„ ๐—ค๐˜‚๐—ฒ๐˜€๐˜๐—ถ๐—ผ๐—ป๐˜€ ๐—”๐˜€๐—ธ๐—ฒ๐—ฑ ๐—ฏ๐˜† ๐—Ÿ๐—ฒ๐—ฎ๐—ฑ๐—ถ๐—ป๐—ด ๐—–๐—ผ๐—บ๐—ฝ๐—ฎ๐—ป๐—ถ๐—ฒ๐˜€ ๐Ÿ“Š

๐Ÿ’ผ Companies hiring Power BI professionals include: Microsoft, Deloitte, Accenture, Capgemini, TCS, Infosys, Cognizant, EY, PwC, KPMG, IBM, Wipro, and many more.

โœ… Frequently Asked Interview Questions
โœ… Beginner to Advanced Level Coverage
โœ… Improve Your Problem-Solving Skills
โœ… Build Interview Confidence
โœ… Prepare for Top MNC Hiring Drives

๐‹๐ข๐ง๐ค๐Ÿ‘‡:-

https://pdlink.in/4xqxg6v

๐Ÿ”ฅ Master Power BI interview concepts and take one step closer to landing your dream Data Analytics job!
  • โค 1
  • ๐Ÿ‘ 1
Post #2649 2.19K
๐Ÿš€ SQL Project Series #29

Customer Support & Helpdesk Analytics ๐ŸŽง
Analyze customers, support tickets, agents, resolutions, and customer satisfaction using SQL to improve support operations, reduce resolution time, and enhance customer experience.

๐ŸŽฏ Business Objectives
โœ… Analyze support ticket volume
โœ… Monitor agent performance
โœ… Measure response and resolution time
โœ… Identify recurring customer issues
โœ… Analyze customer satisfaction
โœ… Track SLA compliance
โœ… Improve first-contact resolution
โœ… Build executive support dashboards

๐Ÿ“‚ Step 1: Create Database
CREATE DATABASE helpdesk_db;
USE helpdesk_db;

๐Ÿ“‚ Step 2: Create Customers Table
CREATE TABLE customers (
customer_id INT PRIMARY KEY,
customer_name VARCHAR(100),
city VARCHAR(50),
signup_date DATE
);

๐Ÿ“‚ Step 3: Create Support Agents Table
CREATE TABLE support_agents (
agent_id INT PRIMARY KEY,
agent_name VARCHAR(100),
team_name VARCHAR(50),
joining_date DATE
);

๐Ÿ“‚ Step 4: Create Tickets Table
CREATE TABLE tickets (
ticket_id INT PRIMARY KEY,
customer_id INT,
agent_id INT,
issue_category VARCHAR(50),
priority VARCHAR(20),
created_at DATETIME,
resolved_at DATETIME,
ticket_status VARCHAR(20),
satisfaction_rating DECIMAL(2,1),
FOREIGN KEY (customer_id) REFERENCES customers(customer_id),
FOREIGN KEY (agent_id) REFERENCES support_agents(agent_id)
);

๐Ÿ“‚ Step 5: Insert Sample Customers
INSERT INTO customers VALUES
(1,'Rahul Sharma','Mumbai','2025-01-05'),
(2,'Priya Verma','Delhi','2025-01-08'),
(3,'Amit Patel','Pune','2025-01-10'),
(4,'Sneha Joshi','Bangalore','2025-01-12'),
(5,'Rohan Gupta','Hyderabad','2025-01-15');

๐Ÿ“‚ Step 6: Insert Sample Support Agents
INSERT INTO support_agents VALUES
(101,'Ankit Mehta','Technical Support','2024-01-10'),
(102,'Neha Singh','Billing Support','2024-03-15'),
(103,'Vikas Sharma','Customer Success','2024-05-20'),
(104,'Pooja Verma','Technical Support','2024-07-01');

๐Ÿ“‚ Step 7: Insert Sample Tickets
INSERT INTO tickets VALUES
(1001,1,101,'Login Issue','High','2025-02-01 10:00:00','2025-02-01 11:30:00','Resolved',4.8),
(1002,2,102,'Billing Query','Medium','2025-02-02 09:15:00','2025-02-02 10:00:00','Resolved',4.5),
(1003,3,101,'Password Reset','Low','2025-02-02 14:30:00','2025-02-02 14:45:00','Resolved',5.0),
(1004,4,103,'Feature Request','Low','2025-02-03 12:00:00',NULL,'Open',NULL),
(1005,5,104,'Application Crash','Critical','2025-02-03 16:45:00',NULL,'In Progress',NULL);

๐Ÿง  SQL Concepts You'll Practice
โœ” DDL & DML
โœ” INNER JOIN
โœ” LEFT JOIN
โœ” Aggregate Functions
โœ” GROUP BY
โœ” HAVING
โœ” CASE WHEN
โœ” Date & Time Functions
โœ” Common Table Expressions (CTEs)
โœ” Window Functions
โœ” Ranking Functions

๐Ÿ“Š Business KPIs You Can Build
๐Ÿ“ˆ Total Support Tickets
๐Ÿ“ˆ Open Tickets
๐Ÿ“ˆ Resolved Tickets
๐Ÿ“ˆ Pending Tickets
๐Ÿ“ˆ Average Resolution Time
๐Ÿ“ˆ First Response Time
๐Ÿ“ˆ First Contact Resolution Rate
๐Ÿ“ˆ SLA Compliance Rate
๐Ÿ“ˆ Customer Satisfaction Score (CSAT)
๐Ÿ“ˆ Tickets by Priority
๐Ÿ“ˆ Tickets by Category
๐Ÿ“ˆ Tickets by City
๐Ÿ“ˆ Agent Productivity
๐Ÿ“ˆ Tickets Resolved per Agent
๐Ÿ“ˆ Average Rating per Agent
๐Ÿ“ˆ Daily Ticket Volume
๐Ÿ“ˆ Monthly Ticket Trend
๐Ÿ“ˆ Repeat Customer Issues
๐Ÿ“ˆ Escalation Rate
๐Ÿ“ˆ Executive Helpdesk Dashboard

๐ŸŽฏ This project reflects real-world SQL analysis performed by Customer Support Analysts, Operations Analysts, Service Delivery teams, Customer Success teams, and Business Intelligence professionals to improve service quality, optimize support operations, and enhance customer satisfaction.

Double Tap โค๏ธ For More
  • โค 9
  • ๐Ÿ‘ 1
Post #2648 2.13K
๐Ÿš€ ๐—œ๐—•๐—  ๐—™๐—ฅ๐—˜๐—˜ ๐—–๐—ฒ๐—ฟ๐˜๐—ถ๐—ณ๐—ถ๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐—–๐—ผ๐˜‚๐—ฟ๐˜€๐—ฒ๐˜€ ๐ŸŽ“

Upgrade your tech skills with 100% FREE IBM certification courses and build a strong foundation in AI, Data Science, Cloud Computing, SQL, Python, and Machine Learning.

๐ŸŽฏ Perfect For
๐ŸŽ“ Students & Freshers
๐Ÿ‘จโ€๐Ÿ’ป Software Developers
๐Ÿ“Š Data Analysts
๐Ÿค– AI & Data Science Aspirants
๐Ÿ’ผ Working Professionals

๐—˜๐—ป๐—ฟ๐—ผ๐—น๐—น ๐—™๐—ผ๐—ฟ ๐—™๐—ฅ๐—˜๐—˜๐Ÿ‘‡:- 

https://pdlink.in/45KgqDR

๐Ÿ”ฅ Start learning today and prepare yourself for high-paying opportunities in the tech industry!
  • โค 1
Post #2647 2.06K
๐Ÿš€ ๐—™๐—ฅ๐—˜๐—˜ ๐—™๐—ฟ๐—ฒ๐˜€๐—ต๐—ฒ๐—ฟ ๐—›๐—ถ๐—ฟ๐—ถ๐—ป๐—ด ๐——๐—ฟ๐—ถ๐˜ƒ๐—ฒ | ๐—ง๐—ฒ๐—ฐ๐—ต ๐—ฅ๐—ผ๐—น๐—ฒ๐˜€ ๐—จ๐—ฝ ๐˜๐—ผ โ‚น๐Ÿญ๐Ÿฎ ๐—Ÿ๐—ฃ๐—”!๐Ÿ”ฅ

Internship + Pre-Placement Offer

๐Ÿ’ผ Company: GoComet
๐Ÿ’ฐ Stipend: โ‚น30,000โ€“35,000/Month
๐Ÿš€ PPO: Up to โ‚น12 LPA

๐Ÿ“ Assessment Centres: Pune | Hyderabad | Noida | Chennai | Bangalore

๐Ÿ”— ๐—”๐—ฝ๐—ฝ๐—น๐˜† ๐—ก๐—ผ๐˜„ ๐Ÿ‘‡:

Full Stack Intern:- https://pdlink.in/4z3vF8o

AI First SDET Interns :- https://pdlink.in/4hS1Am2

โณ Limited Hiring Slots Available
  • โค 1
Post #2646 2.2K
๐Ÿš€ SQL Project Series #28

Library Management Analytics ๐Ÿ“š

Analyze books, members, authors, borrowings, returns, and fines using SQL to improve library operations, monitor book circulation, and enhance member engagement.

๐ŸŽฏ Business Objectives
โœ… Track book borrowings
โœ… Monitor overdue books
โœ… Analyze member activity
โœ… Measure book popularity
โœ… Track fine collections
โœ… Analyze author performance
โœ… Improve inventory utilization
โœ… Build executive library dashboards

๐Ÿ“‚ Step 1: Create Database
CREATE DATABASE library_db;
USE library_db;

๐Ÿ“‚ Step 2: Create Members Table
CREATE TABLE members (
member_id INT PRIMARY KEY,
member_name VARCHAR(100),
membership_type VARCHAR(30),
join_date DATE,
city VARCHAR(50)
);

๐Ÿ“‚ Step 3: Create Authors Table
CREATE TABLE authors (
author_id INT PRIMARY KEY,
author_name VARCHAR(100),
country VARCHAR(50)
);

๐Ÿ“‚ Step 4: Create Books Table
CREATE TABLE books (
book_id INT PRIMARY KEY,
title VARCHAR(200),
author_id INT,
genre VARCHAR(50),
publication_year INT,
available_copies INT,
FOREIGN KEY (author_id)
REFERENCES authors(author_id)
);

๐Ÿ“‚ Step 5: Create Borrowings Table
CREATE TABLE borrowings (
borrowing_id INT PRIMARY KEY,
member_id INT,
book_id INT,
borrow_date DATE,
due_date DATE,
return_date DATE,
fine_amount DECIMAL(10,2),
FOREIGN KEY (member_id)
REFERENCES members(member_id),
FOREIGN KEY (book_id)
REFERENCES books(book_id)
);

๐Ÿ“‚ Step 6: Insert Sample Members
INSERT INTO members VALUES
(1,'Rahul Sharma','Premium','2024-01-10','Mumbai'),
(2,'Priya Verma','Standard','2024-02-15','Delhi'),
(3,'Amit Patel','Premium','2024-03-08','Pune'),
(4,'Sneha Joshi','Student','2024-04-20','Bangalore'),
(5,'Rohan Gupta','Standard','2024-05-12','Hyderabad');

๐Ÿ“‚ Step 7: Insert Sample Authors
INSERT INTO authors VALUES
(101,'James Clear','USA'),
(102,'Morgan Housel','USA'),
(103,'Yuval Noah Harari','Israel'),
(104,'Robert C. Martin','USA');

๐Ÿ“‚ Step 8: Insert Sample Books
INSERT INTO books VALUES
(201,'Atomic Habits',101,'Self Help',2018,12),
(202,'The Psychology of Money',102,'Finance',2020,8),
(203,'Sapiens',103,'History',2011,10),
(204,'Clean Code',104,'Programming',2008,6);

๐Ÿ“‚ Step 9: Insert Sample Borrowings
INSERT INTO borrowings VALUES
(1001,1,201,'2025-01-05','2025-01-19','2025-01-17',0),
(1002,2,202,'2025-01-08','2025-01-22','2025-01-25',150),
(1003,3,204,'2025-01-10','2025-01-24',NULL,0),
(1004,4,203,'2025-01-12','2025-01-26','2025-01-24',0),
(1005,5,201,'2025-01-15','2025-01-29',NULL,0);

โ–Ž๐Ÿง  SQL Concepts You'll Practice

โœ” DDL & DML
โœ” INNER JOIN
โœ” LEFT JOIN
โœ” Aggregate Functions
โœ” GROUP BY
โœ” HAVING
โœ” CASE WHEN
โœ” Date Functions
โœ” CTEs
โœ” Window Functions
โœ” Ranking Functions

โ–Ž๐Ÿ“Š Business KPIs You Can Build

๐Ÿ“ˆ Total Books
๐Ÿ“ˆ Total Members
๐Ÿ“ˆ Active Members
๐Ÿ“ˆ Total Borrowings
๐Ÿ“ˆ Books Currently Issued
๐Ÿ“ˆ Overdue Books
๐Ÿ“ˆ Overdue Percentage
๐Ÿ“ˆ Total Fine Collected
๐Ÿ“ˆ Average Fine per Member
๐Ÿ“ˆ Most Borrowed Books
๐Ÿ“ˆ Least Borrowed Books
๐Ÿ“ˆ Most Popular Authors
๐Ÿ“ˆ Genre-wise Borrowings
๐Ÿ“ˆ Monthly Borrowing Trend
๐Ÿ“ˆ Book Availability Rate
๐Ÿ“ˆ Average Borrowing Duration
๐Ÿ“ˆ Repeat Borrowers
๐Ÿ“ˆ Member Activity by City
๐Ÿ“ˆ Library Utilization Rate
๐Ÿ“ˆ Executive Library Dashboard

๐ŸŽฏ This project reflects real-world SQL analysis performed by Library Administrators, Educational Institutions, Public Libraries, Digital Library Platforms, and Business Intelligence professionals to optimize inventory, improve member engagement, and monitor library performance.

Double Tap โค๏ธ For More
  • โค 3
Post #2645 2.13K
๐Ÿš€ ๐Ÿฐ ๐—™๐—ฅ๐—˜๐—˜ ๐—–๐—ฒ๐—ฟ๐˜๐—ถ๐—ณ๐—ถ๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐—–๐—ผ๐˜‚๐—ฟ๐˜€๐—ฒ๐˜€ ๐—ง๐—ผ ๐—•๐—ผ๐—ผ๐˜€๐˜ ๐—ฌ๐—ผ๐˜‚๐—ฟ ๐—ฅ๐—ฒ๐˜€๐˜‚๐—บ๐—ฒ๐Ÿ”ฅ

Add these 100% FREE certification courses to your resume and gain valuable, job-ready skills that employers look for.

โœ… 100% FREE Certification Courses
โœ… Beginner-Friendly Learning
โœ… Industry-Relevant Skills
โœ… Self-Paced Online Learning
โœ… Strengthen Your Resume & LinkedIn Profile
โœ… Improve Your Job & Internship Opportunities

๐—˜๐—ป๐—ฟ๐—ผ๐—น๐—น ๐—™๐—ผ๐—ฟ ๐—™๐—ฅ๐—˜๐—˜๐Ÿ‘‡:- 

https://pdlink.in/4bwkOtA

๐Ÿ”ฅ Invest in your skills today and give your resume the competitive edge it deserves!
  • โค 1
Post #2643 2.27K
๐Ÿš€ SQL Project Series #27

Stock Market Analytics ๐Ÿ“ˆ

Analyze stocks, investors, portfolios, trades, and market performance using SQL to gain insights into trading behavior, portfolio performance, and investment trends.

๐ŸŽฏ Business Objectives
โœ… Analyze stock trading activity
โœ… Track investor portfolios
โœ… Monitor stock price movements
โœ… Measure portfolio performance
โœ… Identify top-performing stocks
โœ… Analyze trading volume
โœ… Calculate investment returns
โœ… Build executive investment dashboards

๐Ÿ“‚ Step 1: Create Database
CREATE DATABASE stock_market_db;
USE stock_market_db;

๐Ÿ“‚ Step 2: Create Investors Table
CREATE TABLE investors (
investor_id INT PRIMARY KEY,
investor_name VARCHAR(100),
city VARCHAR(50),
account_open_date DATE
);

๐Ÿ“‚ Step 3: Create Stocks Table
CREATE TABLE stocks (
stock_id INT PRIMARY KEY,
stock_symbol VARCHAR(20),
company_name VARCHAR(100),
sector VARCHAR(50)
);

๐Ÿ“‚ Step 4: Create Trades Table
CREATE TABLE trades (
trade_id INT PRIMARY KEY,
investor_id INT,
stock_id INT,
trade_date DATE,
transaction_type VARCHAR(10),
quantity INT,
price DECIMAL(10,2),
FOREIGN KEY (investor_id) REFERENCES investors(investor_id),
FOREIGN KEY (stock_id) REFERENCES stocks(stock_id)
);

๐Ÿ“‚ Step 5: Create Daily Prices Table
CREATE TABLE daily_prices (
price_id INT PRIMARY KEY,
stock_id INT,
price_date DATE,
open_price DECIMAL(10,2),
close_price DECIMAL(10,2),
high_price DECIMAL(10,2),
low_price DECIMAL(10,2),
volume BIGINT,
FOREIGN KEY (stock_id) REFERENCES stocks(stock_id)
);

๐Ÿ“‚ Step 6: Insert Sample Investors
INSERT INTO investors VALUES
(1,'Rahul Sharma','Mumbai','2023-01-15'),
(2,'Priya Verma','Delhi','2023-04-20'),
(3,'Amit Patel','Pune','2024-02-10'),
(4,'Sneha Joshi','Bangalore','2024-05-05'),
(5,'Rohan Gupta','Hyderabad','2024-07-18');

๐Ÿ“‚ Step 7: Insert Sample Stocks
INSERT INTO stocks VALUES
(101,'TCS','Tata Consultancy Services','IT'),
(102,'INFY','Infosys','IT'),
(103,'RELIANCE','Reliance Industries','Energy'),
(104,'HDFCBANK','HDFC Bank','Banking'),
(105,'TATAMOTORS','Tata Motors','Automobile');

๐Ÿ“‚ Step 8: Insert Sample Trades
INSERT INTO trades VALUES
(1001,1,101,'2025-01-05','BUY',10,4200),
(1002,2,102,'2025-01-06','BUY',20,1800),
(1003,3,103,'2025-01-07','SELL',5,2900),
(1004,4,104,'2025-01-08','BUY',15,1650),
(1005,5,105,'2025-01-09','BUY',25,980);

๐Ÿ“‚ Step 9: Insert Sample Daily Prices
INSERT INTO daily_prices VALUES
(1,101,'2025-01-05',4180,4215,4235,4170,1200000),
(2,102,'2025-01-06',1785,1810,1822,1778,980000),
(3,103,'2025-01-07',2880,2910,2925,2870,2100000),
(4,104,'2025-01-08',1640,1665,1672,1635,1750000),
(5,105,'2025-01-09',970,990,995,965,3100000);

๐Ÿง  SQL Concepts You'll Practice
โœ” DDL & DML
โœ” INNER JOIN
โœ” LEFT JOIN
โœ” Aggregate Functions
โœ” GROUP BY
โœ” HAVING
โœ” CASE WHEN
โœ” Date Functions
โœ” CTEs
โœ” Window Functions
โœ” Ranking Functions

๐Ÿ“Š Business KPIs You Can Build
๐Ÿ“ˆ Total Investors
๐Ÿ“ˆ Total Trades
๐Ÿ“ˆ Buy vs Sell Transactions
๐Ÿ“ˆ Total Trading Volume
๐Ÿ“ˆ Portfolio Value
๐Ÿ“ˆ Profit & Loss (P&L)
๐Ÿ“ˆ Return on Investment (ROI)
๐Ÿ“ˆ Average Buy Price
๐Ÿ“ˆ Average Sell Price
๐Ÿ“ˆ Top Performing Stocks
๐Ÿ“ˆ Worst Performing Stocks
๐Ÿ“ˆ Daily Price Change
๐Ÿ“ˆ Monthly Trading Volume
๐Ÿ“ˆ Sector-wise Performance
๐Ÿ“ˆ Most Traded Stocks
๐Ÿ“ˆ Investor Portfolio Diversification
๐Ÿ“ˆ Average Holding Size
๐Ÿ“ˆ Stock Volatility
๐Ÿ“ˆ Market Capitalization Trend
๐Ÿ“ˆ Executive Investment Dashboard

๐ŸŽฏ Double Tap โค๏ธ For More
  • โค 8
  • ๐Ÿ‘ 1
Post #2642 2.33K
๐Ÿš€ ๐— ๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ ๐—”๐—œ ๐—™๐—ผ๐—ฟ ๐—™๐—ฅ๐—˜๐—˜ | ๐Ÿฑ ๐— ๐˜‚๐˜€๐˜-๐—ง๐—ฎ๐—ธ๐—ฒ ๐—š๐—ผ๐—ผ๐—ด๐—น๐—ฒ ๐—”๐—œ ๐—–๐—ผ๐˜‚๐—ฟ๐˜€๐—ฒ๐˜€ ๐Ÿ”ฅ

Artificial Intelligence is transforming every industryโ€”and now you can learn directly from Google with 100% FREE AI courses!

๐ŸŽฏ Perfect For
๐ŸŽ“ Students & Freshers
๐Ÿ‘จโ€๐Ÿ’ป Software Developers
๐Ÿ“Š Data Analysts
๐Ÿ’ซ AI & Machine Learning Aspirants
๐Ÿ’ผ Working Professionals

๐—˜๐—ป๐—ฟ๐—ผ๐—น๐—น ๐—™๐—ผ๐—ฟ ๐—™๐—ฅ๐—˜๐—˜๐Ÿ‘‡:- 

https://pdlink.in/45HWa5Q

๐Ÿ”ฅ Start your AI journey today and stay ahead in the era of Artificial Intelligence!
Post #2641 2.57K
๐Ÿš€ SQL Project Series #26

SaaS Product Analytics ๐Ÿ’ป

Analyze users, subscriptions, feature usage, payments, and customer behavior using SQL to improve product adoption, retention, and revenue.

๐ŸŽฏ Business Objectives
โœ… Analyze user growth
โœ… Track subscription plans
โœ… Monitor feature adoption
โœ… Measure Monthly Recurring Revenue (MRR)
โœ… Analyze customer retention
โœ… Identify customer churn
โœ… Measure product engagement
โœ… Build executive SaaS dashboards

๐Ÿ“‚ Step 1: Create Database
CREATE DATABASE saas_analytics_db;
USE saas_analytics_db;

๐Ÿ“‚ Step 2: Create Users Table
CREATE TABLE users (
user_id INT PRIMARY KEY,
user_name VARCHAR(100),
company_name VARCHAR(100),
country VARCHAR(50),
signup_date DATE
);

๐Ÿ“‚ Step 3: Create Subscription Plans Table
CREATE TABLE subscription_plans (
plan_id INT PRIMARY KEY,
plan_name VARCHAR(50),
monthly_price DECIMAL(10,2)
);

๐Ÿ“‚ Step 4: Create Subscriptions Table
CREATE TABLE subscriptions (
subscription_id INT PRIMARY KEY,
user_id INT,
plan_id INT,
start_date DATE,
end_date DATE,
subscription_status VARCHAR(20),
FOREIGN KEY (user_id) REFERENCES users(user_id),
FOREIGN KEY (plan_id) REFERENCES subscription_plans(plan_id)
);

๐Ÿ“‚ Step 5: Create Feature Usage Table
CREATE TABLE feature_usage (
usage_id INT PRIMARY KEY,
user_id INT,
feature_name VARCHAR(100),
usage_date DATE,
usage_count INT,
FOREIGN KEY (user_id) REFERENCES users(user_id)
);

๐Ÿ“‚ Step 6: Create Payments Table
CREATE TABLE payments (
payment_id INT PRIMARY KEY,
subscription_id INT,
payment_date DATE,
amount DECIMAL(10,2),
payment_status VARCHAR(20),
FOREIGN KEY (subscription_id) REFERENCES subscriptions(subscription_id)
);

๐Ÿ“‚ Step 7-11: Sample Data
Users, Subscription Plans, Subscriptions, Feature Usage, and Payments tables are populated with sample data for Rahul, Priya, John, Emma, and Amit across Free, Basic, Pro, and Enterprise plans.

๐Ÿง  SQL Concepts You'll Practice
โœ” DDL & DML
โœ” INNER JOIN / LEFT JOIN
โœ” Aggregate Functions
โœ” GROUP BY / HAVING
โœ” CASE WHEN
โœ” Date Functions
โœ” CTEs
โœ” Window Functions
โœ” Ranking Functions

๐Ÿ“Š Business KPIs You Can Build
๐Ÿ“ˆ Growth: Total Users, Active Users, Paid Users, Free vs Paid Users, Subscription Growth
๐Ÿ“ˆ Revenue: MRR, ARR, ARPU, CLV, Revenue by Subscription Plan, Payment Success Rate
๐Ÿ“ˆ Retention: Customer Churn Rate, Customer Retention Rate, DAU, MAU, DAU/MAU Ratio
๐Ÿ“ˆ Product: Feature Adoption Rate, Most Used Features, Feature Usage by Plan
๐Ÿ“ˆ Customers: Top Enterprise Customers, Executive SaaS Dashboard

This project reflects real-world SQL analysis performed by Product Analysts, Growth Analysts, Customer Success teams, Revenue Operations teams, and BI professionals at SaaS companies like Salesforce, HubSpot, Atlassian, Notion, Slack, and Zoom.

Double Tap โค๏ธ For More
  • โค 6
  • ๐Ÿ‘ 1
  • ๐Ÿ‘ 1
Post #2640 2.34K
๐Ÿฏ ๐—ง๐—ผ๐—ฝ ๐—–๐—ฒ๐—ฟ๐˜๐—ถ๐—ณ๐—ถ๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐—–๐—ผ๐˜‚๐—ฟ๐˜€๐—ฒ๐˜€ | ๐—•๐—ผ๐—ผ๐—ธ ๐—™๐—ฅ๐—˜๐—˜ ๐—–๐—ผ๐˜‚๐—ป๐˜€๐—ฒ๐—น๐—น๐—ถ๐—ป๐—ด ๐—ฆ๐—ฒ๐˜€๐˜€๐—ถ๐—ผ๐—ป ๐—œ๐—ป ๐—–๐—ต๐—ฒ๐—ป๐—ป๐—ฎ๐—ถ๐Ÿ˜
โ€‹
Learnfrom India's Best Mentors , Get 100% Placement Assistance

๐Ÿ’ซData Analytics :- https://pdlink.in/4q59ef1
โ€‹
๐Ÿ’ซFullstack :- https://pdlink.in/4he12a2
โ€‹
๐Ÿ’ซAI :- https://pdlink.in/4he5mpO
โ€‹
In Today's competitive world, you need industry-relevant skills taught by the best.
  • โค 5
Post #2639 2.29K
๐Ÿš€ ๐— ๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ ๐—œ๐—ป-๐——๐—ฒ๐—บ๐—ฎ๐—ป๐—ฑ ๐—ฆ๐—ธ๐—ถ๐—น๐—น๐˜€ ๐—ณ๐—ผ๐—ฟ ๐—™๐—ฅ๐—˜๐—˜! ๐Ÿ’ป๐Ÿ”ฅ

Want to future-proof your career without spending a single rupee? These 4 beginner-friendly FREE courses will help you build practical, job-ready skills

๐Ÿ“š FREE Courses Included
๐Ÿ“Š Business Intelligence Using Excel
๐Ÿค– Generative AI for Beginners
๐Ÿ’ป C Programming for Beginners
๐Ÿ’ซ Python Interview Questions & Answers

๐—˜๐—ป๐—ฟ๐—ผ๐—น๐—น ๐—™๐—ผ๐—ฟ ๐—™๐—ฅ๐—˜๐—˜๐Ÿ‘‡:- 

https://pdlink.in/4hSgTuW

๐Ÿ”ฅ Don't waitโ€”start learning today and unlock better career opportunities!
Post #2638 2.48K
๐Ÿง  SQL Concepts You'll Practice

โœ” DDL & DML

โœ” INNER JOIN

โœ” LEFT JOIN

โœ” Aggregate Functions

โœ” GROUP BY

โœ” HAVING

โœ” CASE WHEN

โœ” Date Functions

โœ” CTEs

โœ” Window Functions

โœ” Ranking Functions

๐Ÿ“Š Business KPIs You Can Build

๐Ÿ“ˆ Total Units Produced

๐Ÿ“ˆ Production Efficiency

๐Ÿ“ˆ Machine Utilization Rate

๐Ÿ“ˆ Production by Machine

๐Ÿ“ˆ Production by Product

๐Ÿ“ˆ Daily Production Trend

๐Ÿ“ˆ Monthly Production Trend

๐Ÿ“ˆ Defect Rate

๐Ÿ“ˆ Quality Yield

๐Ÿ“ˆ Total Defective Units

๐Ÿ“ˆ Top Performing Machines

๐Ÿ“ˆ Lowest Performing Machines

๐Ÿ“ˆ Machine Downtime

๐Ÿ“ˆ Maintenance Cost

๐Ÿ“ˆ Maintenance Frequency

๐Ÿ“ˆ Production Hours Analysis

๐Ÿ“ˆ Cost per Unit Produced

๐Ÿ“ˆ Production Line Performance

๐Ÿ“ˆ Product-wise Manufacturing Cost

๐Ÿ“ˆ Executive Manufacturing Dashboard

๐ŸŽฏ This project reflects real-world SQL analysis performed by Manufacturing Analysts, Operations Analysts, Production Engineers, Supply Chain teams, and Business Intelligence professionals to improve production efficiency, reduce defects, minimize downtime, and optimize manufacturing costs.

Double Tap โค๏ธ For More
  • โค 10
  • ๐Ÿ‘ 1
Post #2637 2.06K
๐Ÿš€ SQL Project Series #25

Manufacturing Production Analytics ๐Ÿญ

Analyze production, machines, inventory, quality, and maintenance using SQL to improve operational efficiency, reduce downtime, and optimize manufacturing performance.

๐ŸŽฏ Business Objectives

โœ… Monitor production output

โœ… Analyze machine utilization

โœ… Track product quality

โœ… Measure production efficiency

โœ… Identify production bottlenecks

โœ… Analyze inventory consumption

โœ… Monitor machine maintenance

โœ… Build executive manufacturing dashboards

๐Ÿ“‚ Step 1: Create Database

CREATE DATABASE manufacturing_db;
USE manufacturing_db;


๐Ÿ“‚ Step 2: Create Products Table

CREATE TABLE products (
product_id INT PRIMARY KEY,
product_name VARCHAR(100),
category VARCHAR(50),
standard_cost DECIMAL(10,2)
);


๐Ÿ“‚ Step 3: Create Machines Table

CREATE TABLE machines (
machine_id INT PRIMARY KEY,
machine_name VARCHAR(100),
production_line VARCHAR(50),
installation_date DATE
);


๐Ÿ“‚ Step 4: Create Production Table

CREATE TABLE production (
production_id INT PRIMARY KEY,
product_id INT,
machine_id INT,
production_date DATE,
units_produced INT,
defective_units INT,
production_hours DECIMAL(5,2),
FOREIGN KEY (product_id) REFERENCES products(product_id),
FOREIGN KEY (machine_id) REFERENCES machines(machine_id)
);


๐Ÿ“‚ Step 5: Create Maintenance Table

CREATE TABLE maintenance (
maintenance_id INT PRIMARY KEY,
machine_id INT,
maintenance_date DATE,
maintenance_type VARCHAR(50),
downtime_hours DECIMAL(5,2),
maintenance_cost DECIMAL(10,2),
FOREIGN KEY (machine_id) REFERENCES machines(machine_id)
);


๐Ÿ“‚ Step 6: Insert Sample Products

INSERT INTO products VALUES
(101,'Laptop','Electronics',45000),
(102,'Smartphone','Electronics',25000),
(103,'Tablet','Electronics',18000),
(104,'Smart Watch','Wearables',8000),
(105,'Wireless Earbuds','Accessories',3500);


๐Ÿ“‚ Step 7: Insert Sample Machines

INSERT INTO machines VALUES
(201,'Assembly Line A','Line 1','2022-01-15'),
(202,'Assembly Line B','Line 1','2022-06-20'),
(203,'Packaging Machine','Line 2','2023-02-10'),
(204,'Quality Inspection','Line 3','2023-08-18');


๐Ÿ“‚ Step 8: Insert Sample Production Data

INSERT INTO production VALUES
(1001,101,201,'2025-01-05',250,5,8.5),
(1002,102,202,'2025-01-05',420,8,9.0),
(1003,103,201,'2025-01-06',180,3,7.5),
(1004,104,203,'2025-01-06',520,10,8.0),
(1005,105,204,'2025-01-07',650,6,7.0);


๐Ÿ“‚ Step 9: Insert Sample Maintenance Data

INSERT INTO maintenance VALUES
(1,201,'2025-01-08','Preventive',2.5,12000),
(2,202,'2025-01-10','Corrective',5.0,25000),
(3,203,'2025-01-12','Preventive',1.5,9000),
(4,204,'2025-01-15','Inspection',1.0,5000);
  • โค 4
  • ๐Ÿ‘ 1
Post #2636 2.41K
๐Ÿš€ SQL Project Series #24

Real Estate Property Analytics ๐Ÿ 

Analyze properties, buyers, agents, sales, and rentals using SQL to understand market trends, optimize pricing, and improve business performance.

๐ŸŽฏ Business Objectives
โœ… Analyze property sales
โœ… Monitor rental performance
โœ… Evaluate agent performance
โœ… Track customer preferences
โœ… Analyze property prices
โœ… Measure market trends
โœ… Identify high-demand locations
โœ… Build executive dashboards

๐Ÿ“‚ Step 1: Create Database

CREATE DATABASE real_estate_db;
USE real_estate_db;


๐Ÿ“‚ Step 2: Create Agents Table

CREATE TABLE agents (
agent_id INT PRIMARY KEY,
agent_name VARCHAR(100),
city VARCHAR(50),
experience_years INT
);


๐Ÿ“‚ Step 3: Create Customers Table

CREATE TABLE customers (
customer_id INT PRIMARY KEY,
customer_name VARCHAR(100),
city VARCHAR(50),
customer_type VARCHAR(20)
);


๐Ÿ“‚ Step 4: Create Properties Table

CREATE TABLE properties (
property_id INT PRIMARY KEY,
property_type VARCHAR(50),
city VARCHAR(50),
bedrooms INT,
listing_price DECIMAL(12,2),
listing_date DATE,
agent_id INT,
FOREIGN KEY (agent_id)
REFERENCES agents(agent_id)
);


๐Ÿ“‚ Step 5: Create Transactions Table

CREATE TABLE transactions (
transaction_id INT PRIMARY KEY,
property_id INT,
customer_id INT,
transaction_type VARCHAR(20),
transaction_date DATE,
sale_price DECIMAL(12,2),
FOREIGN KEY (property_id)
REFERENCES properties(property_id),
FOREIGN KEY (customer_id)
REFERENCES customers(customer_id)
);


๐Ÿ“‚ Step 6: Insert Sample Agents

INSERT INTO agents VALUES
(101,'Amit Sharma','Mumbai',8),
(102,'Priya Singh','Delhi',6),
(103,'Rahul Mehta','Pune',10),
(104,'Sneha Patel','Bangalore',5);


๐Ÿ“‚ Step 7: Insert Sample Customers

INSERT INTO customers VALUES
(1,'Rahul Verma','Mumbai','Buyer'),
(2,'Anjali Gupta','Delhi','Tenant'),
(3,'Rohan Patel','Pune','Buyer'),
(4,'Neha Sharma','Bangalore','Tenant'),
(5,'Aakash Shah','Hyderabad','Buyer');


๐Ÿ“‚ Step 8: Insert Sample Properties

INSERT INTO properties VALUES
(1001,'Apartment','Mumbai',2,8500000,'2025-01-05',101),
(1002,'Villa','Delhi',4,22000000,'2025-01-08',102),
(1003,'Apartment','Pune',3,9500000,'2025-01-12',103),
(1004,'Studio','Bangalore',1,4200000,'2025-01-15',104),
(1005,'Villa','Hyderabad',5,28000000,'2025-01-18',103);


๐Ÿ“‚ Step 9: Insert Sample Transactions

INSERT INTO transactions VALUES
(5001,1001,1,'Sale','2025-02-01',8300000),
(5002,1002,2,'Rent','2025-02-03',45000),
(5003,1003,3,'Sale','2025-02-05',9200000),
(5004,1004,4,'Rent','2025-02-08',28000),
(5005,1005,5,'Sale','2025-02-12',27500000);


๐Ÿง  SQL Concepts You'll Practice
โœ” DDL & DML
โœ” INNER JOIN
โœ” LEFT JOIN
โœ” Aggregate Functions
โœ” GROUP BY
โœ” HAVING
โœ” CASE WHEN
โœ” Date Functions
โœ” CTEs
โœ” Window Functions
โœ” Ranking Functions

๐Ÿ“Š Business KPIs You Can Build
๐Ÿ“ˆ Total Properties Listed
๐Ÿ“ˆ Total Properties Sold
๐Ÿ“ˆ Total Rental Properties
๐Ÿ“ˆ Total Sales Revenue
๐Ÿ“ˆ Average Property Price
๐Ÿ“ˆ Average Rent
๐Ÿ“ˆ Revenue by City
๐Ÿ“ˆ Revenue by Property Type
๐Ÿ“ˆ Top Performing Agents
๐Ÿ“ˆ Agent-wise Sales
๐Ÿ“ˆ Average Selling Time
๐Ÿ“ˆ Property Listing Trend
๐Ÿ“ˆ Monthly Sales Trend
๐Ÿ“ˆ Most Expensive Property Sold
๐Ÿ“ˆ Cheapest Property Sold
๐Ÿ“ˆ Property Demand by City
๐Ÿ“ˆ Buyer vs Tenant Ratio
๐Ÿ“ˆ Average Bedrooms Sold
๐Ÿ“ˆ Conversion Rate (Listed to Sold)
๐Ÿ“ˆ Executive Real Estate Dashboard

๐ŸŽฏ This project reflects real-world SQL analysis performed by Real Estate Analysts, Property Management teams, Sales Analysts, and Business Intelligence professionals to optimize pricing, monitor sales performance, and identify market trends.

Double Tap โค๏ธ For More
  • โค 12
Post #2635 2.34K
๐Ÿ“Š ๐——๐—ฎ๐˜๐—ฎ ๐—”๐—ป๐—ฎ๐—น๐˜†๐˜๐—ถ๐—ฐ๐˜€ ๐—œ๐—ป๐˜๐—ฒ๐—ฟ๐—ป๐˜€๐—ต๐—ถ๐—ฝ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ ๐Ÿš€

Company Name :- Collegedunia

โœ… Role: Data Analyst Intern
๐Ÿ“ Location: Gurugram, Haryana
๐Ÿข Work Mode: On-site
๐Ÿ‘ฉโ€๐Ÿ’ป Experience: Freshers / Students

๐Ÿ”— ๐—”๐—ฝ๐—ฝ๐—น๐˜† ๐—ก๐—ผ๐˜„ ๐Ÿ‘‡:

https://pdlink.in/3RNPbF7

โณ Apply Before the link expires!
  • โค 2
Post #2634 2.33K
๐Ÿš€ SQL Project Series #23

Movie Ticket Booking Analytics ๐ŸŽฌ

Analyze movies, theatres, customers, bookings, and payments using SQL to improve occupancy, revenue, and customer experience.

๐ŸŽฏ Business Objectives
โœ… Analyze ticket bookings
โœ… Track movie performance
โœ… Measure theatre occupancy
โœ… Analyze customer behavior
โœ… Monitor payment trends
โœ… Identify peak show timings
โœ… Optimize pricing strategy
โœ… Build executive dashboards

๐Ÿ“‚ Step 1: Create Database
CREATE DATABASE movie_booking_db;
USE movie_booking_db;

๐Ÿ“‚ Step 2: Create Customers Table
CREATE TABLE customers (
customer_id INT PRIMARY KEY,
customer_name VARCHAR(100),
gender VARCHAR(10),
city VARCHAR(50),
signup_date DATE
);

๐Ÿ“‚ Step 3: Create Movies Table
CREATE TABLE movies (
movie_id INT PRIMARY KEY,
movie_name VARCHAR(100),
genre VARCHAR(50),
language VARCHAR(30),
duration_minutes INT
);

๐Ÿ“‚ Step 4: Create Theatres Table
CREATE TABLE theatres (
theatre_id INT PRIMARY KEY,
theatre_name VARCHAR(100),
city VARCHAR(50),
total_seats INT
);

๐Ÿ“‚ Step 5: Create Bookings Table
CREATE TABLE bookings (
booking_id INT PRIMARY KEY,
customer_id INT,
movie_id INT,
theatre_id INT,
show_date DATETIME,
seats_booked INT,
ticket_amount DECIMAL(10,2),
booking_status VARCHAR(20),
payment_method VARCHAR(30),
FOREIGN KEY (customer_id) REFERENCES customers(customer_id),
FOREIGN KEY (movie_id) REFERENCES movies(movie_id),
FOREIGN KEY (theatre_id) REFERENCES theatres(theatre_id)
);

๐Ÿ“‚ Step 6: Insert Sample Customers
INSERT INTO customers VALUES
(1,'Rahul Sharma','Male','Mumbai','2025-01-10'),
(2,'Priya Verma','Female','Delhi','2025-01-15'),
(3,'Amit Patel','Male','Pune','2025-01-18'),
(4,'Sneha Joshi','Female','Bangalore','2025-01-20'),
(5,'Rohan Gupta','Male','Hyderabad','2025-01-22');

๐Ÿ“‚ Step 7: Insert Sample Movies
INSERT INTO movies VALUES
(101,'Leo','Action','Tamil',164),
(102,'Pushpa 2','Action','Telugu',180),
(103,'12th Fail','Drama','Hindi',147),
(104,'Inside Out 2','Animation','English',96);

๐Ÿ“‚ Step 8: Insert Sample Theatres
INSERT INTO theatres VALUES
(201,'PVR Phoenix','Mumbai',250),
(202,'INOX Select City','Delhi',220),
(203,'Cinepolis Seasons','Pune',180),
(204,'PVR Orion','Bangalore',240);

๐Ÿ“‚ Step 9: Insert Sample Bookings
INSERT INTO bookings VALUES
(1001,1,101,201,'2025-02-01 18:30:00',2,900,'Confirmed','UPI'),
(1002,2,102,202,'2025-02-01 20:00:00',3,1350,'Confirmed','Credit Card'),
(1003,3,103,203,'2025-02-02 16:00:00',1,350,'Cancelled','UPI'),
(1004,4,104,204,'2025-02-02 19:30:00',4,1800,'Confirmed','Debit Card'),
(1005,5,101,201,'2025-02-03 21:00:00',2,900,'Confirmed','Wallet');

๐Ÿง  SQL Concepts You'll Practice
โœ” DDL & DML
โœ” INNER JOIN
โœ” LEFT JOIN
โœ” Aggregate Functions
โœ” GROUP BY
โœ” HAVING
โœ” CASE WHEN
โœ” Date Functions
โœ” CTEs
โœ” Window Functions
โœ” Ranking Functions

๐Ÿ“Š Business KPIs You Can Build
๐Ÿ“ˆ Total Bookings
๐Ÿ“ˆ Total Tickets Sold
๐Ÿ“ˆ Total Revenue
๐Ÿ“ˆ Average Ticket Price
๐Ÿ“ˆ Average Booking Value
๐Ÿ“ˆ Booking Cancellation Rate
๐Ÿ“ˆ Occupancy Rate
๐Ÿ“ˆ Revenue by Movie
๐Ÿ“ˆ Revenue by Theatre
๐Ÿ“ˆ Revenue by City
๐Ÿ“ˆ Most Popular Movie
๐Ÿ“ˆ Most Popular Genre
๐Ÿ“ˆ Peak Booking Hours
๐Ÿ“ˆ Peak Show Timings
๐Ÿ“ˆ Weekend vs Weekday Bookings
๐Ÿ“ˆ Payment Method Distribution
๐Ÿ“ˆ Customer Retention Rate
๐Ÿ“ˆ Repeat Customers
๐Ÿ“ˆ Top Spending Customers
๐Ÿ“ˆ Theatre Utilization
๐Ÿ“ˆ Language-wise Revenue
๐Ÿ“ˆ Monthly Revenue Trend
๐Ÿ“ˆ Movie Performance Dashboard
๐Ÿ“ˆ Executive Booking Dashboard

๐ŸŽฏ This project reflects real-world SQL analysis performed by cinema chains, online ticketing platforms like BookMyShow, entertainment companies, and Business Intelligence teams to optimize occupancy, improve customer experience, and maximize revenue.

Double Tap โค๏ธ For More
  • โค 10
  • ๐Ÿค” 1
Post #2633 2.4K
๐๐š๐ฒ ๐€๐Ÿ๐ญ๐ž๐ซ ๐๐ฅ๐š๐œ๐ž๐ฆ๐ž๐ง๐ญ - ๐†๐ž๐ญ ๐๐ฅ๐š๐œ๐ž๐ ๐ˆ๐ง ๐“๐จ๐ฉ ๐Œ๐๐‚'๐ฌ ๐Ÿ˜

Learn Coding From Scratch - Lectures Taught By IIT Alumni

๐Ÿ’ซUpskill on the most in-demand skills in the market

๐—›๐—ถ๐—ด๐—ต๐—น๐—ถ๐—ด๐—ต๐˜๐˜€:-

๐Ÿ’ผ Avg. Package: โ‚น7.2 LPA | Highest: โ‚น41 LPA

๐ŸŒŸ Trusted by 7500+ Students
๐Ÿค 500+ Hiring Partners

Eligibility: BTech / BCA / BSc / MCA / MSc

๐‘๐ž๐ ๐ข๐ฌ๐ญ๐ž๐ซ ๐๐จ๐ฐ ๐Ÿ‘‡:-

 https://pdlink.in/42WOE5H

Hurry! Limited seats are available.๐Ÿƒโ€โ™‚๏ธ
  • โค 1
Post #2632 2.7K
๐Ÿš€ SQL Project Series #22

Digital Marketing Campaign Analytics ๐Ÿ“ข

Analyze marketing campaigns, customers, leads, conversions, and advertising performance using SQL to optimize ROI and improve campaign effectiveness.

๐ŸŽฏ Business Objectives
โœ… Analyze marketing campaign performance
โœ… Track leads and conversions
โœ… Measure campaign ROI
โœ… Optimize advertising spend
โœ… Analyze customer acquisition
โœ… Measure conversion funnel
โœ… Evaluate marketing channels
โœ… Build executive marketing dashboards

๐Ÿ“‚ Step 1: Create Database
CREATE DATABASE marketing_analytics_db;
USE marketing_analytics_db;

๐Ÿ“‚ Step 2: Create Campaigns Table
CREATE TABLE campaigns (
campaign_id INT PRIMARY KEY,
campaign_name VARCHAR(100),
marketing_channel VARCHAR(50),
campaign_start DATE,
campaign_end DATE,
budget DECIMAL(12,2)
);

๐Ÿ“‚ Step 3: Create Customers Table
CREATE TABLE customers (
customer_id INT PRIMARY KEY,
customer_name VARCHAR(100),
city VARCHAR(50),
acquisition_channel VARCHAR(50),
signup_date DATE
);

๐Ÿ“‚ Step 4: Create Leads Table
CREATE TABLE leads (
lead_id INT PRIMARY KEY,
campaign_id INT,
customer_id INT,
lead_date DATE,
lead_status VARCHAR(30),
conversion_date DATE,
FOREIGN KEY (campaign_id)
REFERENCES campaigns(campaign_id),
FOREIGN KEY (customer_id)
REFERENCES customers(customer_id)
);

๐Ÿ“‚ Step 5: Insert Sample Campaigns
INSERT INTO campaigns VALUES
(101,'Summer Sale','Google Ads','2025-01-01','2025-01-31',500000),
(102,'New Year Offer','Facebook Ads','2025-01-05','2025-01-25',350000),
(103,'Email Promotion','Email','2025-01-10','2025-01-30',100000),
(104,'Influencer Campaign','Instagram','2025-01-15','2025-02-05',450000);

๐Ÿ“‚ Step 6: Insert Sample Customers
INSERT INTO customers VALUES
(1,'Rahul Sharma','Mumbai','Google Ads','2025-01-08'),
(2,'Priya Verma','Delhi','Facebook Ads','2025-01-10'),
(3,'Amit Patel','Pune','Email','2025-01-12'),
(4,'Sneha Joshi','Bangalore','Instagram','2025-01-18'),
(5,'Rohan Gupta','Hyderabad','Google Ads','2025-01-22');

๐Ÿ“‚ Step 7: Insert Sample Leads
INSERT INTO leads VALUES
(1001,101,1,'2025-01-03','Converted','2025-01-08'),
(1002,102,2,'2025-01-06','Converted','2025-01-10'),
(1003,103,3,'2025-01-12','Open',NULL),
(1004,104,4,'2025-01-18','Converted','2025-01-21'),
(1005,101,5,'2025-01-22','Lost',NULL);

๐Ÿง  SQL Concepts You'll Practice
โœ” DDL & DML
โœ” Joins
โœ” Aggregate Functions
โœ” GROUP BY
โœ” HAVING
โœ” CASE WHEN
โœ” CTEs
โœ” Window Functions
โœ” Date Functions
โœ” Marketing KPI Analysis

๐Ÿ“Š Business KPIs You Can Build
๐Ÿ“ˆ Total Campaigns
๐Ÿ“ˆ Total Leads
๐Ÿ“ˆ Total Conversions
๐Ÿ“ˆ Conversion Rate
๐Ÿ“ˆ Cost Per Lead (CPL)
๐Ÿ“ˆ Cost Per Acquisition (CPA)
๐Ÿ“ˆ Campaign ROI
๐Ÿ“ˆ Campaign Spend vs Revenue
๐Ÿ“ˆ Leads by Marketing Channel
๐Ÿ“ˆ Conversions by Marketing Channel
๐Ÿ“ˆ Customer Acquisition by Channel
๐Ÿ“ˆ Monthly Lead Trend
๐Ÿ“ˆ Monthly Conversion Trend
๐Ÿ“ˆ Average Conversion Time
๐Ÿ“ˆ Top Performing Campaigns
๐Ÿ“ˆ Lowest Performing Campaigns
๐Ÿ“ˆ Budget Utilization
๐Ÿ“ˆ Revenue by Campaign
๐Ÿ“ˆ Revenue by Marketing Channel
๐Ÿ“ˆ Customer Acquisition Cost (CAC)
๐Ÿ“ˆ Funnel Drop-off Analysis
๐Ÿ“ˆ Channel-wise Performance Dashboard
๐Ÿ“ˆ Campaign Performance Dashboard
๐Ÿ“ˆ Marketing Executive Dashboard

๐ŸŽฏ This project reflects real-world SQL analysis performed by Marketing Analysts, Growth Analysts, Performance Marketing teams, Product Analysts, and Business Intelligence professionals to optimize campaign performance and maximize return on investment.

Double Tap โค๏ธ For More
  • โค 12
Older posts โ†’
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook โ†’Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 โ†’