Home / Questions / আমরা কখন GROUP BY অপারেশন ব্যবহার করি?
Explanatory Question

আমরা কখন GROUP BY অপারেশন ব্যবহার করি?

👁 0 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

যখন আমরা ডেটাকে বিভিন্ন গ্রুপে ভাগ করে প্রতিটি গ্রুপের উপর aggregate function প্রয়োগ করতে চাই, তখন GROUP BY ব্যবহার করি।
👉 উদাহরণ:

SELECT class, COUNT(*) FROM Student GROUP BY class;