Data Groupings

Example
Ungrouped Data
Order IDCust IDShip ToCountryCityFreight
10248VINETVins et alcools ChevalierFranceReims$32.38
10249TOMSPToms SpezialitätenGermanyMünster$11.61
10250HANARHanari CarnesBrazilRio de Janeiro$65.83
10251VICTEVictuailles en stockFranceLyon$41.34
10252SUPRDSuprêmes délicesBelgiumCharleroi$51.30
10253HANARHanari CarnesBrazil Rio de Janeiro$58.17
10254CHOPSChop-suey ChineseSwitzerlandBern$22.98
10255RICSURichter SupermarktSwitzerlandGenève$148.33
10256WELLIWellington ImportadoraBrazilResende$13.97
10257HILAAHILARION-AbastosVenezuelaSan Cristóbal$81.91
10258ERNSHErnst HandelAustriaGraz$140.51
10259CENTCCentro comercial MoctezumaMexicoMéxico D.F.$3.25
10260OTTIKOttilies KäseladenGermanyKöln$55.09
10261QUEDEQue DelíciaBrazilRio de Janeiro$3.05
Data grouped by Customer ID and counted
Cust IDShip ToCountryCity# Orders
ALFKIAlfreds FutterkisteGermanyBerlin6
ANATRAna Trujillo Emparedados y heladosMexicoMéxico D.F.4
ANTONAntonio Moreno TaqueríaMexicoMéxico D.F.7
AROUTAround the HornUKColchester13
BERGSBerglunds snabbköpSwedenLuleå18
BLAUSBlauer See DelikatessenGermanyMannheim7
BLONPBlondel père et filsFranceStrasbourg11
BOLIDBólido Comidas preparadasSpainMadrid3
BONAPBon app'FranceMarseille17
BOTTMBottom-Dollar MarketsCanadaTsawassen14
BSBEVB's BeveragesUKLondon10
CACTUCactus Comidas para llevarArgentinaBuenos Aires6
CENTCCentro comercial MoctezumaMexicoMéxico D.F.1
CHOPSChop-suey ChineseSwitzerlandBern8
Data grouped by Customer ID and summed
Cust IDShip ToCountryCityTotal
ALFKIAlfreds FutterkisteGermanyBerlin$4,273.00
ANATRAna Trujillo Emparedados y heladosMexicoMéxico D.F.$1,402.95
ANTONAntonio Moreno TaqueríaMexicoMéxico D.F.$7,023.98
AROUTAround the HornUKColchester$13,390.65
BERGSBerglunds snabbköpSwedenLuleå$24,927.58
BLAUSBlauer See DelikatessenGermanyMannheim$3,239.80
BLONPBlondel père et filsFranceStrasbourg$18,534.08
BOLIDBólido Comidas preparadasSpainMadrid$4,232.85
BONAPBon app'FranceMarseille$21,963.24
BOTTMBottom-Dollar MarketsCanadaTsawassen$20,801.61
BSBEVB's BeveragesUKLondon$6,089.90
CACTUCactus Comidas para llevarArgentinaBuenos Aires$1,814.80
CENTCCentro comercial MoctezumaMexicoMéxico D.F.$100.80
CHOPSChop-suey ChineseSwitzerlandBern$12,348.88
Data grouped by Customer ID, with all rows retained
Order IDCust IDShip ToCountryCityFreight
10643ALFKIAlfreds FutterkisteGermanyBerlin$29.46
10692ALFKIAlfred's FutterkisteGermanyBerlin$61.02
10702ALFKIAlfred's FutterkisteGermanyBerlin$23.94
10835ALFKIAlfred's FutterkisteGermanyBerlin$69.53
10952ALFKIAlfred's FutterkisteGermanyBerlin$40.42
11011ALFKIAlfred's FutterkisteGermanyBerlin$1.21
10308ANATRAna Trujillo Emparedados y heladosMexicoMéxico D.F.$1.61
10625ANATRAna Trujillo Emparedados y heladosMexicoMéxico D.F.$43.90
10759ANATRAna Trujillo Emparedados y heladosMexicoMéxico D.F.$11.99
10926ANATRAna Trujillo Emparedados y heladosMexicoMéxico D.F.$39.92
10365ANTONAntonio Moreno TaqueríaMexicoMéxico D.F.$22.00
10507ANTONAntonio Moreno TaqueríaMexicoMéxico D.F.$47.45
10535ANTONAntonio Moreno TaqueríaMexicoMéxico D.F.$15.64
10573ANTONAntonio Moreno TaqueríaMexicoMéxico D.F.$84.84
Data grouped by Customer ID, with only distinct rows retained
Order IDCust IDShip ToCountryCityFreight
10643ALFKIAlfreds FutterkisteGermanyBerlin$29.46
10308ANATRAna Trujillo Emparedados y heladosMexicoMéxico D.F.$1.61
10365ANTONAntonio Moreno TaqueríaMexicoMéxico D.F.$22.00
10355AROUTAround the HornUKColchester$41.95
10278BERGSBerglunds snabbköpSwedenLuleå$92.69
10501BLAUSBlauer See DelikatessenGermanyMannheim$8.85
10265BLONPBlondel père et filsFranceStrasbourg$55.28
10326BOLIDBólido Comidas preparadasSpainMadrid$77.92
10331BONAPBon app'FranceMarseille$10.19
10389BOTTMBottom-Dollar MarketsCanadaTsawassen$47.42
10289BSBEVB's BeveragesUKLondon$22.77
10521CACTUCactus Comidas para llevarArgentinaBuenos Aires$17.22
10259CENTCCentro comercial MoctezumaMexicoMéxico D.F.$3.25
10254CHOPSChop-suey ChineseSwitzerlandBern$22.98
Data in hierarchical groupings, on Customer ID and Order ID
Cust IDCustomer NameCustomer TotalOrder IDOrder DateOrder TotalProduct IDUnit PriceQuantityUnit Total
ALFKIAlfreds Futterkiste$4,596.20
106438/25/2011$1,086.00
28$45.6015$684.00
39$18.0021$378.00
46$12.002$24.00
1069210/3/2011$878.00
63$43.9020$878.00
1070210/13/2011$330.00
3$10.006$60.00
76$18.0015$270.00
108351/15/2012$851.00
59$55.0015$825.00
77$13.002$26.00
109523/16/2012$491.20
28$45.602$91.20
6$25.0016$400.00
110114/9/2012$960.00
58$13.2540$530.00
71$21.5020$430.00
ANATRAna Trujillo Emparedados y helados$1,402.95
103089/18/2010$88.80
69$28.801$28.80
70$12.005$60.00
106258/8/2011$479.75
14$23.253$69.75
42$14.005$70.00
60$34.0010$340.00
1075911/28/2011$320.00
32$32.0010$320.00
109263/4/2012$514.40
11$21.002$42.00
13$6.0010$60.00
19$9.207$64.40
72$34.8010$348.00
ANTONAntonio Moreno Taquería$7,515.35
1036511/27/2010$403.20
11$16.8024$403.20
105074/15/2011$881.25
43$46.0015$690.00
48$12.7515$191.25
105355/13/2011$2,156.50
11$21.0050$1,050.00
40$18.4010$184.00
57$19.505$97.50
59$55.0015$825.00
105736/19/2011$2,082.00
17$39.0018$702.00
34$14.0040$560.00
53$32.8025$820.00
106779/22/2011$956.90
26$31.2330$936.90
33$2.508$20.00
106829/25/2011$375.50
33$2.5030$75.00
66$17.004$68.00
75$7.7530$232.50
108561/28/2012$660.00
2$19.0020$380.00
42$14.0020$280.00
Data grouped first by Country and then by City
Order IDCust IDShip ToCountryCityFreight
10258ERNSHErnst HandelAustriaGraz$140.51
10252SUPRDSuprêmes délicesBelgiumCharleroi$51.30
10253HANARHanari CarnesBrazil Rio de Janeiro$58.17
10256WELLIWellington ImportadoraBrazilResende$13.97
10250HANARHanari CarnesBrazilRio de Janeiro$65.83
10261QUEDEQue DelíciaBrazilRio de Janeiro$3.05
10251VICTEVictuailles en stockFranceLyon$41.34
10248VINETVins et alcools ChevalierFranceReims$32.38
10260OTTIKOttilies KäseladenGermanyKöln$55.09
10249TOMSPToms SpezialitätenGermanyMünster$11.61
10259CENTCCentro comercial MoctezumaMexicoMéxico D.F.$3.25
10254CHOPSChop-suey ChineseSwitzerlandBern$22.98
10255RICSURichter SupermarktSwitzerlandGenève$148.33
10257HILAAHILARION-AbastosVenezuelaSan Cristóbal$81.91
Data grouped and summarized, with all rows retained and group subtotals
Order IDCust IDShip ToCountryCityFreight
10643ALFKIAlfreds FutterkisteGermanyBerlin$29.46
10692ALFKIAlfred's FutterkisteGermanyBerlin$61.02
10702ALFKIAlfred's FutterkisteGermanyBerlin$23.94
10835ALFKIAlfred's FutterkisteGermanyBerlin$69.53
10952ALFKIAlfred's FutterkisteGermanyBerlin$40.42
11011ALFKIAlfred's FutterkisteGermanyBerlin$1.21
SubTotal$225.58

10308ANATRAna Trujillo Emparedados y heladosMexicoMéxico D.F.$1.61
10625ANATRAna Trujillo Emparedados y heladosMexicoMéxico D.F.$43.90
10759ANATRAna Trujillo Emparedados y heladosMexicoMéxico D.F.$11.99
10926ANATRAna Trujillo Emparedados y heladosMexicoMéxico D.F.$39.92
SubTotal$97.42

10365ANTONAntonio Moreno TaqueríaMexicoMéxico D.F.$22.00
10507ANTONAntonio Moreno TaqueríaMexicoMéxico D.F.$47.45
10535ANTONAntonio Moreno TaqueríaMexicoMéxico D.F.$15.64
10573ANTONAntonio Moreno TaqueríaMexicoMéxico D.F.$84.84
10677ANTONAntonio Moreno TaqueríaMexicoMéxico D.F.$4.03
10682ANTONAntonio Moreno TaqueríaMexicoMéxico D.F.$36.13
10856ANTONAntonio Moreno TaqueríaMexicoMéxico D.F.$58.43
SubTotal$268.52

Total$591.52