Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
MySQL: ROLLUP
Play lesson

MySQL tutorial for beginners 🐬 - MySQL: ROLLUP

4.0 (1)
11 learners

What you'll learn

This course includes

  • 2.5 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

#MySQL #tutorial #course -- ROLLUP, extension of the GROUP BY clause -- produces another row and shows the grand-total (super-aggregate) value SELECT SUM(amount) AS "daily_sales", order_date FROM transactions GROUP BY order_date WITH ROLLUP; SELECT COUNT(transaction_id) AS "# of orders", order_date FROM transactions GROUP BY order_date WITH ROLLUP; SELECT COUNT(transaction_id) AS "# of orders", customer_id FROM transactions GROUP BY customer_id WITH ROLLUP; SELECT SUM(hourly_pay) AS "hourly_pay", employee_id FROM employees GROUP BY employee_id WITH ROLLUP;

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere