Skip to content

DataForGeeks

for Data Enthusiasts

  • Home
  • Newsletter
  • About

Month: July 2018

Product Sales Analysis – 2

September 29, 2026July 12, 2018 by Nikhil Aggarwal

Write an SQL query that reports the total quantity sold for every product id.   Input Table : sales sale_id product_id sale_year quantity price 20 80 2017 21 300 30 80 2018 23 400 40 13 2019 56 600   Output Table: product_id total_quantity 80 44 13 56   Explanation: product_id is Foreign Key and … Read more

Categories SQL Interview Questions Tags Easy Leave a comment

Product Sales Analysis – 1

September 29, 2026July 12, 2018 by Nikhil Aggarwal

Write an SQL query that reports all product names of products in the “sales” table along with their selling year and price.   Input Table : sales sale_id product_id sale_year quantity price 20 80 2017 21 300 30 80 2018 23 400 40 13 2019 56 600   Input Table: product product_id product_name 80 Asus … Read more

Categories SQL Interview Questions Tags Easy Leave a comment

Follow Me on LinkedIn

Connect Now

Connect with:

Subscribe to our newsletter!

RSS feed: Latest Posts Latest Posts

  • LoRA Fine-Tuning Explained: The Intuition, the Math and the Practice September 29, 2026
  • Iceberg Hilbert Curve vs Z-Order: Explained Square by Square September 27, 2026
  • Herdr + Hunk: How to Run and Review Multiple AI Coding Agents in Your Terminal (2026 Guide) September 23, 2026
  • It Ran in 10 Minutes Yesterday: How to Debug a Slow Spark Job and Fix Data Skew January 28, 2026
  • One Ride, 400 Milliseconds: The Ride-Hailing System Design & Data Model Interview, Told as a Story November 24, 2025

Categories

  • AI & Machine Learning (2)
  • Apache Spark (3)
  • Data Engineering Essentials (4)
  • Data Lakehouse (3)
  • General (5)
  • Hadoop & Big Data (9)
  • Python (2)
  • Snowflake (2)
  • SQL Interview Questions (15)
  • System Design (2)

Archives

  • September 2026 (3)
  • January 2026 (1)
  • November 2025 (1)
  • September 2025 (1)
  • May 2025 (2)
  • January 2025 (1)
  • October 2024 (1)
  • May 2024 (1)
  • September 2023 (1)
  • May 2022 (2)
  • March 2022 (1)
  • February 2022 (1)
  • May 2020 (1)
  • November 2019 (1)
  • July 2019 (1)
  • May 2019 (1)
  • March 2019 (1)
  • December 2018 (2)
  • August 2018 (2)
  • July 2018 (2)
  • June 2018 (1)
  • May 2018 (2)
  • April 2018 (1)
  • March 2018 (2)
  • July 2016 (4)
  • June 2016 (3)
  • June 2015 (2)
  • October 2011 (3)
  • November 2009 (2)
© 2026 DataForGeeks · About · RSS