Home › Interview Questions › Given the following orders table, write a Spark SQ…

Given the following orders table, write a Spark SQL query to compute the total amount per store.

🟢 Easy Coding Fresher level
1Times asked
Sep 2026Last seen
Sep 2026First seen

💡 Model Answer

SELECT store_id, SUM(amount) AS total_amount FROM orders GROUP BY store_id;

This answer was generated by AI for study purposes. Use it as a starting point — personalize it with your own experience.

🎤 Get questions like this answered in real-time

Assisting AI listens to your interview, captures questions live, and gives you instant AI-powered answers on a discreet on-screen overlay.

Get Assisting AI — Starts at ₹500