This media is not supported in your browser
VIEW IN TELEGRAM
Mastering SQL Query Execution Order
Did you know? The way SQL executes a query is not the same as how we write it!
Understanding this execution flow can optimize performance and prevent errors.
Here’s the logical order of execution in SQL:
1️⃣ FROM– Retrieves data from the specified table(s).
2️⃣ WHERE– Filters rows based on conditions.
3️⃣ GROUP BY– Groups data based on specified columns.
4️⃣ HAVING– Filters groups created by
5️⃣ SELECT– Determines which columns/expressions to return. (`DISTINCT` applies here!)
6️⃣ ORDER BY– Sorts the result set.
7️⃣ LIMIT– Restricts the number of rows returned.
🔹 Example SQL Query:
SELECT department, COUNT(employee_id) AS total_employees
FROM employees
WHERE status = 'active'
GROUP BY department
HAVING total_employees > 5
ORDER BY total_employees DESC
LIMIT 10;
🛠️ Execution happens in this order:
1️⃣ FROM → 2️⃣ WHERE → 3️⃣ GROUP BY → 4️⃣ HAVING → 5️⃣ SELECT → 6️⃣ ORDER BY → 7️⃣ LIMIT
Did you know? The way SQL executes a query is not the same as how we write it!
Understanding this execution flow can optimize performance and prevent errors.
Here’s the logical order of execution in SQL:
1️⃣ FROM– Retrieves data from the specified table(s).
2️⃣ WHERE– Filters rows based on conditions.
3️⃣ GROUP BY– Groups data based on specified columns.
4️⃣ HAVING– Filters groups created by
GROUP BY. 5️⃣ SELECT– Determines which columns/expressions to return. (`DISTINCT` applies here!)
6️⃣ ORDER BY– Sorts the result set.
7️⃣ LIMIT– Restricts the number of rows returned.
🔹 Example SQL Query:
SELECT department, COUNT(employee_id) AS total_employees
FROM employees
WHERE status = 'active'
GROUP BY department
HAVING total_employees > 5
ORDER BY total_employees DESC
LIMIT 10;
🛠️ Execution happens in this order:
1️⃣ FROM → 2️⃣ WHERE → 3️⃣ GROUP BY → 4️⃣ HAVING → 5️⃣ SELECT → 6️⃣ ORDER BY → 7️⃣ LIMIT
👍2
Cracking Flipkart’s Business Analyst Interview (1–3 Experience )| CTC – ₹14 LPA
Real Questions | Real Experience | Real Prep
Here’s a breakdown of the actual questions asked across rounds – from SQL to Python, guesstimates, case studies, and managerial round.
🧠 SQL Questions:
1. What are window functions vs. aggregate functions? Share a use case.
2. Explain indexing. When can it reduce performance? How do you build an indexing strategy?
3. Retrieve customers who purchased in the last 30 days but *not* in the previous 30 days.
4. Find the top 3 most purchased products in each category.
5. Identify and remove duplicate records while retaining the first occurrence.
📊 Guesstimates:
1. Estimate monthly online food orders in a metro city.
2. Estimate daily customer care calls for a telecom with 1M users.
🧩 Case Studies:
1. Conversion rates dropped for a product category — how do you debug this?
2. Flipkart wants to launch a subscription model — how do you assess its impact on revenue and CLTV?
🤝 Managerial Round:
1. Share a time you managed conflicting priorities under tight deadlines.
2. How would you resolve disagreements on an analytical approach?
🐍 Python Questions
1. Write a function to find the longest sequence of unique consecutive numbers in a list.
2. How do you handle missing values in large datasets? Which Python libraries and why?
Real Questions | Real Experience | Real Prep
Here’s a breakdown of the actual questions asked across rounds – from SQL to Python, guesstimates, case studies, and managerial round.
🧠 SQL Questions:
1. What are window functions vs. aggregate functions? Share a use case.
2. Explain indexing. When can it reduce performance? How do you build an indexing strategy?
3. Retrieve customers who purchased in the last 30 days but *not* in the previous 30 days.
4. Find the top 3 most purchased products in each category.
5. Identify and remove duplicate records while retaining the first occurrence.
📊 Guesstimates:
1. Estimate monthly online food orders in a metro city.
2. Estimate daily customer care calls for a telecom with 1M users.
🧩 Case Studies:
1. Conversion rates dropped for a product category — how do you debug this?
2. Flipkart wants to launch a subscription model — how do you assess its impact on revenue and CLTV?
🤝 Managerial Round:
1. Share a time you managed conflicting priorities under tight deadlines.
2. How would you resolve disagreements on an analytical approach?
🐍 Python Questions
1. Write a function to find the longest sequence of unique consecutive numbers in a list.
2. How do you handle missing values in large datasets? Which Python libraries and why?
👍1
Scenario:
You're a data analyst at a top e-commerce company. You're asked to identify customers with suspicious return behavior.
📦 Input Tables:
- Orders:
- Returns:
✅ Requirement:
Write an SQL query to find customers who returned more than 50% of their total order amount.
Think joins, aggregations, and smart filtering — this is the kind of real-world question interviewers LOVE to ask!
You're a data analyst at a top e-commerce company. You're asked to identify customers with suspicious return behavior.
📦 Input Tables:
- Orders:
order_id, customer_id, order_date, amount - Returns:
return_id, order_id, return_date
✅ Requirement:
Write an SQL query to find customers who returned more than 50% of their total order amount.
Think joins, aggregations, and smart filtering — this is the kind of real-world question interviewers LOVE to ask!
Hiring open for a Business Analyst position.
A high-impact role, working directly.
A few things to know:
You need to know your way around SQL. Hands on with PostgreSQL is a bonus.
This is a Bangalore-based, in-office role (5 days a week).
Apply now
https://forms.gle/Z1XW4gza6Bm3t5xb7
A high-impact role, working directly.
A few things to know:
You need to know your way around SQL. Hands on with PostgreSQL is a bonus.
This is a Bangalore-based, in-office role (5 days a week).
Apply now
https://forms.gle/Z1XW4gza6Bm3t5xb7
Job Title: ML Engineer
Experience: 5+ to 12+ years
Location: Chennai / Bangalore
Key Skills and Qualifications:
- Python Developer with extensive experience
- Proficiency in Deep Learning and Machine Learning
- Strong background in Bug handling, GitHub, and Deployment
- Knowledge of Natural Language Processing (NLP) and Image Processing
- Expertise in Error Handling and Flask / Django
- Coding experience is a must
- Exceptional written, communication, and presentation skills
To apply, please submit your CV to:
Email ID: revathy.srikanth@innovasolutions.com / hemanandhini.vijayan@innovasolutions.co
Experience: 5+ to 12+ years
Location: Chennai / Bangalore
Key Skills and Qualifications:
- Python Developer with extensive experience
- Proficiency in Deep Learning and Machine Learning
- Strong background in Bug handling, GitHub, and Deployment
- Knowledge of Natural Language Processing (NLP) and Image Processing
- Expertise in Error Handling and Flask / Django
- Coding experience is a must
- Exceptional written, communication, and presentation skills
To apply, please submit your CV to:
Email ID: revathy.srikanth@innovasolutions.com / hemanandhini.vijayan@innovasolutions.co
SQL Junction
Job Title: ML Engineer Experience: 5+ to 12+ years Location: Chennai / Bangalore Key Skills and Qualifications: - Python Developer with extensive experience - Proficiency in Deep Learning and Machine Learning - Strong background in Bug handling, GitHub, and…
I can personally refer anyone for this position
If anyone interested
If anyone interested
SQL Junction
Job Title: ML Engineer Experience: 5+ to 12+ years Location: Chennai / Bangalore Key Skills and Qualifications: - Python Developer with extensive experience - Proficiency in Deep Learning and Machine Learning - Strong background in Bug handling, GitHub, and…
Please message me on LinkedIn
If anyone needs referral for this
https://www.linkedin.com/in/adityabansal095
If anyone needs referral for this
https://www.linkedin.com/in/adityabansal095
Job Alert
Urgent Hiring
Snowflake with DBT
Job description
Experience: 5-10 Years
Mandatory skills: Candidate should be on Data Engineer background, Snowflake, SQL, Looker (All mandatory)
Good to have: Python, Terraform.
Skills:
1. Expertise in building data platforms & warehouses with Snowflake covering all aspects of data engineering practices.
2. Expertise in using ETL tools like DBT etc.
3. Expert at writing and optimizing SQL queries.
4. Knowledge of AWS/Azure and various services related to data engineering is a must.
5. Should have worked on developing and optimizing data pipelines (spark code).
6. Should have experience with NFRs for data platforms like data quality, governance, security and compliance aspects.
Location-Gurgaon, Remote
Full Time
Interested candidates can apply at
deepali.dogra@akivna.com
Urgent Hiring
Snowflake with DBT
Job description
Experience: 5-10 Years
Mandatory skills: Candidate should be on Data Engineer background, Snowflake, SQL, Looker (All mandatory)
Good to have: Python, Terraform.
Skills:
1. Expertise in building data platforms & warehouses with Snowflake covering all aspects of data engineering practices.
2. Expertise in using ETL tools like DBT etc.
3. Expert at writing and optimizing SQL queries.
4. Knowledge of AWS/Azure and various services related to data engineering is a must.
5. Should have worked on developing and optimizing data pipelines (spark code).
6. Should have experience with NFRs for data platforms like data quality, governance, security and compliance aspects.
Location-Gurgaon, Remote
Full Time
Interested candidates can apply at
deepali.dogra@akivna.com
If anyone wants to brush up on Snowflake or DBT
I can definitely help you out
Please reach out to me on LinkedIn
I can definitely help you out
Please reach out to me on LinkedIn
❤1