Changes between Version 4 and Version 5 of AnalyticalStatisticalQuerying
- Timestamp:
- 02/15/25 10:49:00 (2 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AnalyticalStatisticalQuerying
v4 v5 96 96 }}} 97 97 98 **Revenue Split: Online vs Tab Orders**99 {{{100 SELECT101 'Online Orders' AS order_type,102 SUM(p.amount) AS total_revenue103 FROM orders o104 JOIN payments p ON o.id = p.order_id105 JOIN online_orders oo ON o.id = oo.order_id;106 107 SELECT108 'Tab Orders' AS order_type,109 SUM(p.amount) AS total_revenue110 FROM orders o111 JOIN payments p ON o.id = p.order_id112 JOIN tab_orders tord ON o.id = tord.order_id;113 }}}114 115 98 **Average Shift Duration per Manager** 116 99 {{{