UNION & UNION ALL

Think about those times you have copied multiple worksheets’ data from various Microsoft Excel files into one worksheet and continuous data range to make a master workbook or worksheet. You started with one worksheet and simply copied and pasted the other worksheets’ data, excluding the headers, below the original worksheet’s data. Fundamentally, that is how SQL’s UNION and UNION ALL operators work. The UNION and UNION ALL operators allow you to vertically append the results of multiple SELECT statements (i.e., queries) together. Let us review the basic syntax and rules for these operators.

In the code block below, I highlight the basic syntax required. Notice the position of the UNION ALL operator. When used, it is required to follow immediately after a SELECT statement and immediately before another SELECT statement. The ALL keyword is optional. UNION ALL will combine the results of both SELECT statements without checking for and subsequently removing duplicates while the UNION operator will. If duplicates are not of concern or you know in advance that the two queries cannot return duplicate rows, then I suggest using UNION ALL because the process of checking for duplicates and removing them is not computationally cheap.

SELECT
	expression_1,
	expression_2,
	expression_n
FROM
	table
UNION ALL
SELECT
	expression_1,
	expression_2,
	expression_n
FROM
	table;

There are two other things to take note of regarding the operators. One, each SELECT statement must have the same number of attributes and those attributes should be within the same order. This is entirely sensible given that the result of vertically appending data that is not properly aligned is less than useful. If the number of attributes do not match naturally, then you can use dummy attributes. I will discuss the use of dummy attributes later in this discussion. The second thing to take note of is that each attribute’s datatype must match the corresponding attribute’s data type in the other SELECT statements or an implicit conversion must be possible by the relational database management system (RDBMS).

Before reading further, consider reviewing the Example Data section below to familiarize yourself with the data being used throughout the examples on this page. If you are already familiar with the data, then skip to the UNION ALL section.

Example Data
The tables and corresponding data used in the example on this page can be found below. To more easily follow the examples covered on this page, consider first reading the table descriptions below and reviewing each table’s contents. To review the data maintained in each table, click on the icon next to the table name. To hide the data, click the icon again.

Table: north_america_sale
Description: Contains sale information for North American region in year 2023. There is one row per day value and product category value along with the corresponding total sale value.
Additional info: As a result of running the script provided, the total sale amount may vary due to the use of the DBMS_RANDOM.VALUE function. The report date and product category values should match.
report_dateproduct_categorytotal_sale
01-JAN-23Software130986
01-JAN-23Hardware325957
01-JAN-23Office Supplies359381
02-JAN-23Software350039
02-JAN-23Hardware235789
02-JAN-23Office Supplies291373
03-JAN-23Software463015
03-JAN-23Hardware382062
03-JAN-23Office Supplies106383
04-JAN-23Software499010
04-JAN-23Hardware116633
04-JAN-23Office Supplies441220
05-JAN-23Software482840
05-JAN-23Hardware456018
05-JAN-23Office Supplies308338
06-JAN-23Software463402
06-JAN-23Hardware385487
06-JAN-23Office Supplies244131
07-JAN-23Software247090
07-JAN-23Hardware198045
07-JAN-23Office Supplies359830
08-JAN-23Software372801
08-JAN-23Hardware471010
08-JAN-23Office Supplies450011
09-JAN-23Software401816
09-JAN-23Hardware466308
09-JAN-23Office Supplies119207
10-JAN-23Software146721
10-JAN-23Hardware314424
10-JAN-23Office Supplies291614
11-JAN-23Software184358
11-JAN-23Hardware447629
11-JAN-23Office Supplies445219
12-JAN-23Software122224
12-JAN-23Hardware491773
12-JAN-23Office Supplies377890
13-JAN-23Software216145
13-JAN-23Hardware212298
13-JAN-23Office Supplies269156
14-JAN-23Software117248
14-JAN-23Hardware353179
14-JAN-23Office Supplies488083
15-JAN-23Software130295
15-JAN-23Hardware468557
15-JAN-23Office Supplies122763
16-JAN-23Software295801
16-JAN-23Hardware487853
16-JAN-23Office Supplies459475
17-JAN-23Software184603
17-JAN-23Hardware275430
17-JAN-23Office Supplies222975
18-JAN-23Software421602
18-JAN-23Hardware191991
18-JAN-23Office Supplies280727
19-JAN-23Software388766
19-JAN-23Hardware432802
19-JAN-23Office Supplies292265
20-JAN-23Software378589
20-JAN-23Hardware396760
20-JAN-23Office Supplies450214
21-JAN-23Software482988
21-JAN-23Hardware147373
21-JAN-23Office Supplies329691
22-JAN-23Software451602
22-JAN-23Hardware121235
22-JAN-23Office Supplies108407
23-JAN-23Software319111
23-JAN-23Hardware198986
23-JAN-23Office Supplies168317
24-JAN-23Software477495
24-JAN-23Hardware480650
24-JAN-23Office Supplies238667
25-JAN-23Software232214
25-JAN-23Hardware277385
25-JAN-23Office Supplies166603
26-JAN-23Software382594
26-JAN-23Hardware168602
26-JAN-23Office Supplies458864
27-JAN-23Software409486
27-JAN-23Hardware486419
27-JAN-23Office Supplies241738
28-JAN-23Software242183
28-JAN-23Hardware468323
28-JAN-23Office Supplies406416
29-JAN-23Software472342
29-JAN-23Hardware473124
29-JAN-23Office Supplies380432
30-JAN-23Software237485
30-JAN-23Hardware400814
30-JAN-23Office Supplies388534
31-JAN-23Software328104
31-JAN-23Hardware199133
31-JAN-23Office Supplies259672
01-FEB-23Software498848
01-FEB-23Hardware468851
01-FEB-23Office Supplies374415
02-FEB-23Software496490
02-FEB-23Hardware349406
02-FEB-23Office Supplies167543
03-FEB-23Software191080
03-FEB-23Hardware273296
03-FEB-23Office Supplies468504
04-FEB-23Software198142
04-FEB-23Hardware316817
04-FEB-23Office Supplies452816
05-FEB-23Software289578
05-FEB-23Hardware304197
05-FEB-23Office Supplies260594
06-FEB-23Software239591
06-FEB-23Hardware298252
06-FEB-23Office Supplies419222
07-FEB-23Software434004
07-FEB-23Hardware120772
07-FEB-23Office Supplies365084
08-FEB-23Software356630
08-FEB-23Hardware455330
08-FEB-23Office Supplies120497
09-FEB-23Software210124
09-FEB-23Hardware189088
09-FEB-23Office Supplies422049
10-FEB-23Software396941
10-FEB-23Hardware147215
10-FEB-23Office Supplies298119
11-FEB-23Software327989
11-FEB-23Hardware476343
11-FEB-23Office Supplies449502
12-FEB-23Software113082
12-FEB-23Hardware228704
12-FEB-23Office Supplies126792
13-FEB-23Software234147
13-FEB-23Hardware473675
13-FEB-23Office Supplies341899
14-FEB-23Software427368
14-FEB-23Hardware107628
14-FEB-23Office Supplies303236
15-FEB-23Software194554
15-FEB-23Hardware431761
15-FEB-23Office Supplies272520
16-FEB-23Software167010
16-FEB-23Hardware211933
16-FEB-23Office Supplies271376
17-FEB-23Software299654
17-FEB-23Hardware171489
17-FEB-23Office Supplies421586
18-FEB-23Software253618
18-FEB-23Hardware184734
18-FEB-23Office Supplies154463
19-FEB-23Software280170
19-FEB-23Hardware208972
19-FEB-23Office Supplies157939
20-FEB-23Software296464
20-FEB-23Hardware393431
20-FEB-23Office Supplies396622
21-FEB-23Software365663
21-FEB-23Hardware419070
21-FEB-23Office Supplies249639
22-FEB-23Software418007
22-FEB-23Hardware211224
22-FEB-23Office Supplies445522
23-FEB-23Software479608
23-FEB-23Hardware423726
23-FEB-23Office Supplies277872
24-FEB-23Software102493
24-FEB-23Hardware166960
24-FEB-23Office Supplies305881
25-FEB-23Software222458
25-FEB-23Hardware128558
25-FEB-23Office Supplies452534
26-FEB-23Software137605
26-FEB-23Hardware423640
26-FEB-23Office Supplies167263
27-FEB-23Software291874
27-FEB-23Hardware409779
27-FEB-23Office Supplies260577
28-FEB-23Software343636
28-FEB-23Hardware150560
28-FEB-23Office Supplies231950
01-MAR-23Software352583
01-MAR-23Hardware108159
01-MAR-23Office Supplies185315
02-MAR-23Software107441
02-MAR-23Hardware309547
02-MAR-23Office Supplies122136
03-MAR-23Software423414
03-MAR-23Hardware499811
03-MAR-23Office Supplies392746
04-MAR-23Software491539
04-MAR-23Hardware345375
04-MAR-23Office Supplies218853
05-MAR-23Software248758
05-MAR-23Hardware174163
05-MAR-23Office Supplies355488
06-MAR-23Software450393
06-MAR-23Hardware169503
06-MAR-23Office Supplies278893
07-MAR-23Software477258
07-MAR-23Hardware422113
07-MAR-23Office Supplies200048
08-MAR-23Software374121
08-MAR-23Hardware291224
08-MAR-23Office Supplies108375
09-MAR-23Software221727
09-MAR-23Hardware472045
09-MAR-23Office Supplies118751
10-MAR-23Software318517
10-MAR-23Hardware140101
10-MAR-23Office Supplies443992
11-MAR-23Software128573
11-MAR-23Hardware218247
11-MAR-23Office Supplies427230
12-MAR-23Software334955
12-MAR-23Hardware425448
12-MAR-23Office Supplies420772
13-MAR-23Software467659
13-MAR-23Hardware403023
13-MAR-23Office Supplies423537
14-MAR-23Software170618
14-MAR-23Hardware494032
14-MAR-23Office Supplies412336
15-MAR-23Software424735
15-MAR-23Hardware371217
15-MAR-23Office Supplies202721
16-MAR-23Software308023
16-MAR-23Hardware487999
16-MAR-23Office Supplies493143
17-MAR-23Software346157
17-MAR-23Hardware269133
17-MAR-23Office Supplies331892
18-MAR-23Software360626
18-MAR-23Hardware217758
18-MAR-23Office Supplies341784
19-MAR-23Software240326
19-MAR-23Hardware474311
19-MAR-23Office Supplies480205
20-MAR-23Software204067
20-MAR-23Hardware325958
20-MAR-23Office Supplies349648
21-MAR-23Software466128
21-MAR-23Hardware451988
21-MAR-23Office Supplies218058
22-MAR-23Software319976
22-MAR-23Hardware326494
22-MAR-23Office Supplies270824
23-MAR-23Software139625
23-MAR-23Hardware216417
23-MAR-23Office Supplies477186
24-MAR-23Software279025
24-MAR-23Hardware121012
24-MAR-23Office Supplies163536
25-MAR-23Software191230
25-MAR-23Hardware401993
25-MAR-23Office Supplies293330
26-MAR-23Software302770
26-MAR-23Hardware182144
26-MAR-23Office Supplies279223
27-MAR-23Software101519
27-MAR-23Hardware467885
27-MAR-23Office Supplies241178
28-MAR-23Software350644
28-MAR-23Hardware179143
28-MAR-23Office Supplies257859
29-MAR-23Software285776
29-MAR-23Hardware268899
29-MAR-23Office Supplies192559
30-MAR-23Software407435
30-MAR-23Hardware439023
30-MAR-23Office Supplies251407
31-MAR-23Software270420
31-MAR-23Hardware433787
31-MAR-23Office Supplies355011
01-APR-23Software141595
01-APR-23Hardware390594
01-APR-23Office Supplies320527
02-APR-23Software183160
02-APR-23Hardware464361
02-APR-23Office Supplies487635
03-APR-23Software179908
03-APR-23Hardware487048
03-APR-23Office Supplies109011
04-APR-23Software156679
04-APR-23Hardware437387
04-APR-23Office Supplies171126
05-APR-23Software125223
05-APR-23Hardware163396
05-APR-23Office Supplies299903
06-APR-23Software121008
06-APR-23Hardware241845
06-APR-23Office Supplies442197
07-APR-23Software221383
07-APR-23Hardware454711
07-APR-23Office Supplies405102
08-APR-23Software107507
08-APR-23Hardware251905
08-APR-23Office Supplies220887
09-APR-23Software310617
09-APR-23Hardware227411
09-APR-23Office Supplies265518
10-APR-23Software422232
10-APR-23Hardware310046
10-APR-23Office Supplies150205
11-APR-23Software332198
11-APR-23Hardware320621
11-APR-23Office Supplies411607
12-APR-23Software384063
12-APR-23Hardware274390
12-APR-23Office Supplies366354
13-APR-23Software280966
13-APR-23Hardware382678
13-APR-23Office Supplies169193
14-APR-23Software288234
14-APR-23Hardware158199
14-APR-23Office Supplies405273
15-APR-23Software312305
15-APR-23Hardware375867
15-APR-23Office Supplies242540
16-APR-23Software457762
16-APR-23Hardware306784
16-APR-23Office Supplies410744
17-APR-23Software134756
17-APR-23Hardware128819
17-APR-23Office Supplies393735
18-APR-23Software156509
18-APR-23Hardware277928
18-APR-23Office Supplies185693
19-APR-23Software475899
19-APR-23Hardware352213
19-APR-23Office Supplies118006
20-APR-23Software486045
20-APR-23Hardware105392
20-APR-23Office Supplies274407
21-APR-23Software137841
21-APR-23Hardware412107
21-APR-23Office Supplies307669
22-APR-23Software420618
22-APR-23Hardware440743
22-APR-23Office Supplies211778
23-APR-23Software437481
23-APR-23Hardware306189
23-APR-23Office Supplies446075
24-APR-23Software369096
24-APR-23Hardware309242
24-APR-23Office Supplies300044
25-APR-23Software347470
25-APR-23Hardware433689
25-APR-23Office Supplies330579
26-APR-23Software147642
26-APR-23Hardware465270
26-APR-23Office Supplies458689
27-APR-23Software131632
27-APR-23Hardware345373
27-APR-23Office Supplies256230
28-APR-23Software159253
28-APR-23Hardware478742
28-APR-23Office Supplies487975
29-APR-23Software235898
29-APR-23Hardware308098
29-APR-23Office Supplies172834
30-APR-23Software429613
30-APR-23Hardware370109
30-APR-23Office Supplies279783
01-MAY-23Software140762
01-MAY-23Hardware318807
01-MAY-23Office Supplies294785
02-MAY-23Software376862
02-MAY-23Hardware208853
02-MAY-23Office Supplies498942
03-MAY-23Software117052
03-MAY-23Hardware249786
03-MAY-23Office Supplies182057
04-MAY-23Software188616
04-MAY-23Hardware326858
04-MAY-23Office Supplies116027
05-MAY-23Software210789
05-MAY-23Hardware382226
05-MAY-23Office Supplies462508
06-MAY-23Software224315
06-MAY-23Hardware204152
06-MAY-23Office Supplies243199
07-MAY-23Software144383
07-MAY-23Hardware107532
07-MAY-23Office Supplies197586
08-MAY-23Software274237
08-MAY-23Hardware145299
08-MAY-23Office Supplies484134
09-MAY-23Software262382
09-MAY-23Hardware273740
09-MAY-23Office Supplies220205
10-MAY-23Software380503
10-MAY-23Hardware350232
10-MAY-23Office Supplies310852
11-MAY-23Software391562
11-MAY-23Hardware478243
11-MAY-23Office Supplies124996
12-MAY-23Software240861
12-MAY-23Hardware245958
12-MAY-23Office Supplies418096
13-MAY-23Software298986
13-MAY-23Hardware364523
13-MAY-23Office Supplies183475
14-MAY-23Software412636
14-MAY-23Hardware236258
14-MAY-23Office Supplies292129
15-MAY-23Software474717
15-MAY-23Hardware242421
15-MAY-23Office Supplies227600
16-MAY-23Software218739
16-MAY-23Hardware283568
16-MAY-23Office Supplies182894
17-MAY-23Software231174
17-MAY-23Hardware280282
17-MAY-23Office Supplies315630
18-MAY-23Software270421
18-MAY-23Hardware203850
18-MAY-23Office Supplies415408
19-MAY-23Software263918
19-MAY-23Hardware303145
19-MAY-23Office Supplies492547
20-MAY-23Software414991
20-MAY-23Hardware257366
20-MAY-23Office Supplies459085
21-MAY-23Software309794
21-MAY-23Hardware408615
21-MAY-23Office Supplies228029
22-MAY-23Software207054
22-MAY-23Hardware329477
22-MAY-23Office Supplies472817
23-MAY-23Software434124
23-MAY-23Hardware409775
23-MAY-23Office Supplies246750
24-MAY-23Software145983
24-MAY-23Hardware136951
24-MAY-23Office Supplies340411
25-MAY-23Software435328
25-MAY-23Hardware119100
25-MAY-23Office Supplies249954
26-MAY-23Software325187
26-MAY-23Hardware392976
26-MAY-23Office Supplies328867
27-MAY-23Software167029
27-MAY-23Hardware393557
27-MAY-23Office Supplies454022
28-MAY-23Software435836
28-MAY-23Hardware150924
28-MAY-23Office Supplies454083
29-MAY-23Software226260
29-MAY-23Hardware155481
29-MAY-23Office Supplies281388
30-MAY-23Software117544
30-MAY-23Hardware155852
30-MAY-23Office Supplies403325
31-MAY-23Software377182
31-MAY-23Hardware108781
31-MAY-23Office Supplies273138
01-JUN-23Software311505
01-JUN-23Hardware119690
01-JUN-23Office Supplies465736
02-JUN-23Software264947
02-JUN-23Hardware408841
02-JUN-23Office Supplies152197
03-JUN-23Software374350
03-JUN-23Hardware264722
03-JUN-23Office Supplies320520
04-JUN-23Software423306
04-JUN-23Hardware166503
04-JUN-23Office Supplies299382
05-JUN-23Software465584
05-JUN-23Hardware495608
05-JUN-23Office Supplies496827
06-JUN-23Software244276
06-JUN-23Hardware330948
06-JUN-23Office Supplies196702
07-JUN-23Software446569
07-JUN-23Hardware350827
07-JUN-23Office Supplies308290
08-JUN-23Software413169
08-JUN-23Hardware436055
08-JUN-23Office Supplies464097
09-JUN-23Software409417
09-JUN-23Hardware224598
09-JUN-23Office Supplies385330
10-JUN-23Software376142
10-JUN-23Hardware311306
10-JUN-23Office Supplies418557
11-JUN-23Software419889
11-JUN-23Hardware357489
11-JUN-23Office Supplies156642
12-JUN-23Software306148
12-JUN-23Hardware200276
12-JUN-23Office Supplies427942
13-JUN-23Software302151
13-JUN-23Hardware199538
13-JUN-23Office Supplies157699
14-JUN-23Software149388
14-JUN-23Hardware490336
14-JUN-23Office Supplies460060
15-JUN-23Software253405
15-JUN-23Hardware401420
15-JUN-23Office Supplies146533
16-JUN-23Software450910
16-JUN-23Hardware370536
16-JUN-23Office Supplies386430
17-JUN-23Software378090
17-JUN-23Hardware464114
17-JUN-23Office Supplies406680
18-JUN-23Software211615
18-JUN-23Hardware290351
18-JUN-23Office Supplies444837
19-JUN-23Software237235
19-JUN-23Hardware220923
19-JUN-23Office Supplies244289
20-JUN-23Software351066
20-JUN-23Hardware141090
20-JUN-23Office Supplies220148
21-JUN-23Software470754
21-JUN-23Hardware294240
21-JUN-23Office Supplies122212
22-JUN-23Software377163
22-JUN-23Hardware229455
22-JUN-23Office Supplies266779
23-JUN-23Software227325
23-JUN-23Hardware267736
23-JUN-23Office Supplies195147
24-JUN-23Software154526
24-JUN-23Hardware293664
24-JUN-23Office Supplies321285
25-JUN-23Software156763
25-JUN-23Hardware199975
25-JUN-23Office Supplies252248
26-JUN-23Software354824
26-JUN-23Hardware364079
26-JUN-23Office Supplies306592
27-JUN-23Software350527
27-JUN-23Hardware287508
27-JUN-23Office Supplies188713
28-JUN-23Software292010
28-JUN-23Hardware487758
28-JUN-23Office Supplies101658
29-JUN-23Software363394
29-JUN-23Hardware157124
29-JUN-23Office Supplies478412
30-JUN-23Software300932
30-JUN-23Hardware157215
30-JUN-23Office Supplies241366
01-JUL-23Software148090
01-JUL-23Hardware272906
01-JUL-23Office Supplies393778
02-JUL-23Software179911
02-JUL-23Hardware426551
02-JUL-23Office Supplies219791
03-JUL-23Software226839
03-JUL-23Hardware380730
03-JUL-23Office Supplies169157
04-JUL-23Software241680
04-JUL-23Hardware105436
04-JUL-23Office Supplies164201
05-JUL-23Software207715
05-JUL-23Hardware434853
05-JUL-23Office Supplies164089
06-JUL-23Software158928
06-JUL-23Hardware466440
06-JUL-23Office Supplies154431
07-JUL-23Software251429
07-JUL-23Hardware487763
07-JUL-23Office Supplies408431
08-JUL-23Software333003
08-JUL-23Hardware143077
08-JUL-23Office Supplies128848
09-JUL-23Software221806
09-JUL-23Hardware334149
09-JUL-23Office Supplies351364
10-JUL-23Software100624
10-JUL-23Hardware178095
10-JUL-23Office Supplies286670
11-JUL-23Software408145
11-JUL-23Hardware275415
11-JUL-23Office Supplies440642
12-JUL-23Software488925
12-JUL-23Hardware234437
12-JUL-23Office Supplies220215
13-JUL-23Software441077
13-JUL-23Hardware283602
13-JUL-23Office Supplies480705
14-JUL-23Software321405
14-JUL-23Hardware496504
14-JUL-23Office Supplies369516
15-JUL-23Software370793
15-JUL-23Hardware458243
15-JUL-23Office Supplies222362
16-JUL-23Software252803
16-JUL-23Hardware350939
16-JUL-23Office Supplies454198
17-JUL-23Software156089
17-JUL-23Hardware114823
17-JUL-23Office Supplies144888
18-JUL-23Software386844
18-JUL-23Hardware133935
18-JUL-23Office Supplies200292
19-JUL-23Software270214
19-JUL-23Hardware269897
19-JUL-23Office Supplies107055
20-JUL-23Software245143
20-JUL-23Hardware180536
20-JUL-23Office Supplies104647
21-JUL-23Software406462
21-JUL-23Hardware134985
21-JUL-23Office Supplies156146
22-JUL-23Software109799
22-JUL-23Hardware230605
22-JUL-23Office Supplies239874
23-JUL-23Software284416
23-JUL-23Hardware148793
23-JUL-23Office Supplies218456
24-JUL-23Software144795
24-JUL-23Hardware380334
24-JUL-23Office Supplies462944
25-JUL-23Software423947
25-JUL-23Hardware122222
25-JUL-23Office Supplies446006
26-JUL-23Software130794
26-JUL-23Hardware485806
26-JUL-23Office Supplies394017
27-JUL-23Software483047
27-JUL-23Hardware277896
27-JUL-23Office Supplies348972
28-JUL-23Software396253
28-JUL-23Hardware387469
28-JUL-23Office Supplies212031
29-JUL-23Software386963
29-JUL-23Hardware178360
29-JUL-23Office Supplies445313
30-JUL-23Software447697
30-JUL-23Hardware234068
30-JUL-23Office Supplies314974
31-JUL-23Software224862
31-JUL-23Hardware347539
31-JUL-23Office Supplies318588
01-AUG-23Software136851
01-AUG-23Hardware331205
01-AUG-23Office Supplies227110
02-AUG-23Software109391
02-AUG-23Hardware155210
02-AUG-23Office Supplies107036
03-AUG-23Software340818
03-AUG-23Hardware297598
03-AUG-23Office Supplies231274
04-AUG-23Software417143
04-AUG-23Hardware480037
04-AUG-23Office Supplies137046
05-AUG-23Software490894
05-AUG-23Hardware417638
05-AUG-23Office Supplies119741
06-AUG-23Software494310
06-AUG-23Hardware253262
06-AUG-23Office Supplies447793
07-AUG-23Software356028
07-AUG-23Hardware141396
07-AUG-23Office Supplies468005
08-AUG-23Software216678
08-AUG-23Hardware293425
08-AUG-23Office Supplies213345
09-AUG-23Software101459
09-AUG-23Hardware457496
09-AUG-23Office Supplies364674
10-AUG-23Software454849
10-AUG-23Hardware409279
10-AUG-23Office Supplies396333
11-AUG-23Software437044
11-AUG-23Hardware181646
11-AUG-23Office Supplies211539
12-AUG-23Software190055
12-AUG-23Hardware433339
12-AUG-23Office Supplies177433
13-AUG-23Software453043
13-AUG-23Hardware371613
13-AUG-23Office Supplies283404
14-AUG-23Software125292
14-AUG-23Hardware400191
14-AUG-23Office Supplies257934
15-AUG-23Software386019
15-AUG-23Hardware387147
15-AUG-23Office Supplies305108
16-AUG-23Software231773
16-AUG-23Hardware381273
16-AUG-23Office Supplies331623
17-AUG-23Software393107
17-AUG-23Hardware303725
17-AUG-23Office Supplies275465
18-AUG-23Software282980
18-AUG-23Hardware341541
18-AUG-23Office Supplies140965
19-AUG-23Software431933
19-AUG-23Hardware138311
19-AUG-23Office Supplies288702
20-AUG-23Software491784
20-AUG-23Hardware464240
20-AUG-23Office Supplies464490
21-AUG-23Software403369
21-AUG-23Hardware277863
21-AUG-23Office Supplies379244
22-AUG-23Software342814
22-AUG-23Hardware107198
22-AUG-23Office Supplies413377
23-AUG-23Software214480
23-AUG-23Hardware443937
23-AUG-23Office Supplies289252
24-AUG-23Software303146
24-AUG-23Hardware119602
24-AUG-23Office Supplies153454
25-AUG-23Software205728
25-AUG-23Hardware242047
25-AUG-23Office Supplies428543
26-AUG-23Software273114
26-AUG-23Hardware348451
26-AUG-23Office Supplies174699
27-AUG-23Software444968
27-AUG-23Hardware394566
27-AUG-23Office Supplies261222
28-AUG-23Software140139
28-AUG-23Hardware237829
28-AUG-23Office Supplies250821
29-AUG-23Software437298
29-AUG-23Hardware368978
29-AUG-23Office Supplies219958
30-AUG-23Software400241
30-AUG-23Hardware181840
30-AUG-23Office Supplies397579
31-AUG-23Software141923
31-AUG-23Hardware356412
31-AUG-23Office Supplies149477
01-SEP-23Software162649
01-SEP-23Hardware368106
01-SEP-23Office Supplies407390
02-SEP-23Software171311
02-SEP-23Hardware100499
02-SEP-23Office Supplies331085
03-SEP-23Software494360
03-SEP-23Hardware434919
03-SEP-23Office Supplies400876
04-SEP-23Software385077
04-SEP-23Hardware498835
04-SEP-23Office Supplies445773
05-SEP-23Software204009
05-SEP-23Hardware456094
05-SEP-23Office Supplies189993
06-SEP-23Software215665
06-SEP-23Hardware376902
06-SEP-23Office Supplies432878
07-SEP-23Software449924
07-SEP-23Hardware131924
07-SEP-23Office Supplies202070
08-SEP-23Software215311
08-SEP-23Hardware340668
08-SEP-23Office Supplies146842
09-SEP-23Software499203
09-SEP-23Hardware243056
09-SEP-23Office Supplies189038
10-SEP-23Software310956
10-SEP-23Hardware256403
10-SEP-23Office Supplies300350
11-SEP-23Software338729
11-SEP-23Hardware365795
11-SEP-23Office Supplies387708
12-SEP-23Software460844
12-SEP-23Hardware277039
12-SEP-23Office Supplies242547
13-SEP-23Software259629
13-SEP-23Hardware267474
13-SEP-23Office Supplies283371
14-SEP-23Software475576
14-SEP-23Hardware330046
14-SEP-23Office Supplies393402
15-SEP-23Software206995
15-SEP-23Hardware244148
15-SEP-23Office Supplies193924
16-SEP-23Software340814
16-SEP-23Hardware152964
16-SEP-23Office Supplies245881
17-SEP-23Software152836
17-SEP-23Hardware350166
17-SEP-23Office Supplies213764
18-SEP-23Software499650
18-SEP-23Hardware257235
18-SEP-23Office Supplies197081
19-SEP-23Software196319
19-SEP-23Hardware161852
19-SEP-23Office Supplies111162
20-SEP-23Software496428
20-SEP-23Hardware382268
20-SEP-23Office Supplies256903
21-SEP-23Software131435
21-SEP-23Hardware333089
21-SEP-23Office Supplies300714
22-SEP-23Software288585
22-SEP-23Hardware345921
22-SEP-23Office Supplies275874
23-SEP-23Software188320
23-SEP-23Hardware363638
23-SEP-23Office Supplies223569
24-SEP-23Software373364
24-SEP-23Hardware191241
24-SEP-23Office Supplies206948
25-SEP-23Software326280
25-SEP-23Hardware156920
25-SEP-23Office Supplies276073
26-SEP-23Software295994
26-SEP-23Hardware456126
26-SEP-23Office Supplies393633
27-SEP-23Software292724
27-SEP-23Hardware152039
27-SEP-23Office Supplies493222
28-SEP-23Software302803
28-SEP-23Hardware310606
28-SEP-23Office Supplies413639
29-SEP-23Software397432
29-SEP-23Hardware435049
29-SEP-23Office Supplies427647
30-SEP-23Software398871
30-SEP-23Hardware457273
30-SEP-23Office Supplies159307
01-OCT-23Software399450
01-OCT-23Hardware291064
01-OCT-23Office Supplies100564
02-OCT-23Software484086
02-OCT-23Hardware264161
02-OCT-23Office Supplies175967
03-OCT-23Software169276
03-OCT-23Hardware295316
03-OCT-23Office Supplies107787
04-OCT-23Software317494
04-OCT-23Hardware214179
04-OCT-23Office Supplies244205
05-OCT-23Software352830
05-OCT-23Hardware379116
05-OCT-23Office Supplies407086
06-OCT-23Software389838
06-OCT-23Hardware295644
06-OCT-23Office Supplies213362
07-OCT-23Software490714
07-OCT-23Hardware389043
07-OCT-23Office Supplies213891
08-OCT-23Software104384
08-OCT-23Hardware299232
08-OCT-23Office Supplies192875
09-OCT-23Software170542
09-OCT-23Hardware428867
09-OCT-23Office Supplies268138
10-OCT-23Software228362
10-OCT-23Hardware187456
10-OCT-23Office Supplies303195
11-OCT-23Software335181
11-OCT-23Hardware487771
11-OCT-23Office Supplies154703
12-OCT-23Software224134
12-OCT-23Hardware357450
12-OCT-23Office Supplies355402
13-OCT-23Software282916
13-OCT-23Hardware395557
13-OCT-23Office Supplies352236
14-OCT-23Software283861
14-OCT-23Hardware113488
14-OCT-23Office Supplies170306
15-OCT-23Software137838
15-OCT-23Hardware145554
15-OCT-23Office Supplies431156
16-OCT-23Software400308
16-OCT-23Hardware192641
16-OCT-23Office Supplies106251
17-OCT-23Software127001
17-OCT-23Hardware388146
17-OCT-23Office Supplies324092
18-OCT-23Software141539
18-OCT-23Hardware403256
18-OCT-23Office Supplies256505
19-OCT-23Software252182
19-OCT-23Hardware469993
19-OCT-23Office Supplies219932
20-OCT-23Software268703
20-OCT-23Hardware212448
20-OCT-23Office Supplies351617
21-OCT-23Software379162
21-OCT-23Hardware404458
21-OCT-23Office Supplies283087
22-OCT-23Software162490
22-OCT-23Hardware441628
22-OCT-23Office Supplies471630
23-OCT-23Software499608
23-OCT-23Hardware135746
23-OCT-23Office Supplies274674
24-OCT-23Software259322
24-OCT-23Hardware173699
24-OCT-23Office Supplies309133
25-OCT-23Software283668
25-OCT-23Hardware128553
25-OCT-23Office Supplies434598
26-OCT-23Software145047
26-OCT-23Hardware404693
26-OCT-23Office Supplies391874
27-OCT-23Software199126
27-OCT-23Hardware197544
27-OCT-23Office Supplies317014
28-OCT-23Software492231
28-OCT-23Hardware269902
28-OCT-23Office Supplies490712
29-OCT-23Software459700
29-OCT-23Hardware487364
29-OCT-23Office Supplies457764
30-OCT-23Software274636
30-OCT-23Hardware392838
30-OCT-23Office Supplies469899
31-OCT-23Software207020
31-OCT-23Hardware162079
31-OCT-23Office Supplies300016
01-NOV-23Software135323
01-NOV-23Hardware346351
01-NOV-23Office Supplies455117
02-NOV-23Software141936
02-NOV-23Hardware137447
02-NOV-23Office Supplies181300
03-NOV-23Software205830
03-NOV-23Hardware159631
03-NOV-23Office Supplies266341
04-NOV-23Software315384
04-NOV-23Hardware310670
04-NOV-23Office Supplies416700
05-NOV-23Software258691
05-NOV-23Hardware186587
05-NOV-23Office Supplies307950
06-NOV-23Software148380
06-NOV-23Hardware351308
06-NOV-23Office Supplies167538
07-NOV-23Software436947
07-NOV-23Hardware260935
07-NOV-23Office Supplies382351
08-NOV-23Software342330
08-NOV-23Hardware338863
08-NOV-23Office Supplies391822
09-NOV-23Software240852
09-NOV-23Hardware337127
09-NOV-23Office Supplies334466
10-NOV-23Software441530
10-NOV-23Hardware206628
10-NOV-23Office Supplies197825
11-NOV-23Software474690
11-NOV-23Hardware294645
11-NOV-23Office Supplies420051
12-NOV-23Software264250
12-NOV-23Hardware325605
12-NOV-23Office Supplies166001
13-NOV-23Software115899
13-NOV-23Hardware250878
13-NOV-23Office Supplies464325
14-NOV-23Software158215
14-NOV-23Hardware414510
14-NOV-23Office Supplies408215
15-NOV-23Software233715
15-NOV-23Hardware250923
15-NOV-23Office Supplies356489
16-NOV-23Software298662
16-NOV-23Hardware108081
16-NOV-23Office Supplies338672
17-NOV-23Software125303
17-NOV-23Hardware211584
17-NOV-23Office Supplies153773
18-NOV-23Software352250
18-NOV-23Hardware449350
18-NOV-23Office Supplies400943
19-NOV-23Software191838
19-NOV-23Hardware276175
19-NOV-23Office Supplies183478
20-NOV-23Software289584
20-NOV-23Hardware483466
20-NOV-23Office Supplies244075
21-NOV-23Software279126
21-NOV-23Hardware180520
21-NOV-23Office Supplies354276
22-NOV-23Software186392
22-NOV-23Hardware479634
22-NOV-23Office Supplies136275
23-NOV-23Software482701
23-NOV-23Hardware274590
23-NOV-23Office Supplies337465
24-NOV-23Software272275
24-NOV-23Hardware206596
24-NOV-23Office Supplies265819
25-NOV-23Software475753
25-NOV-23Hardware170663
25-NOV-23Office Supplies411858
26-NOV-23Software238840
26-NOV-23Hardware140992
26-NOV-23Office Supplies346945
27-NOV-23Software230495
27-NOV-23Hardware266155
27-NOV-23Office Supplies448711
28-NOV-23Software388240
28-NOV-23Hardware293781
28-NOV-23Office Supplies155978
29-NOV-23Software498768
29-NOV-23Hardware166529
29-NOV-23Office Supplies470821
30-NOV-23Software103530
30-NOV-23Hardware453834
30-NOV-23Office Supplies309072
01-DEC-23Software310076
01-DEC-23Hardware295026
01-DEC-23Office Supplies331398
02-DEC-23Software318602
02-DEC-23Hardware244608
02-DEC-23Office Supplies394145
03-DEC-23Software444490
03-DEC-23Hardware216417
03-DEC-23Office Supplies425513
04-DEC-23Software193954
04-DEC-23Hardware470937
04-DEC-23Office Supplies214677
05-DEC-23Software104492
05-DEC-23Hardware101056
05-DEC-23Office Supplies282247
06-DEC-23Software465632
06-DEC-23Hardware491091
06-DEC-23Office Supplies490342
07-DEC-23Software247888
07-DEC-23Hardware322334
07-DEC-23Office Supplies442330
08-DEC-23Software132190
08-DEC-23Hardware177824
08-DEC-23Office Supplies277247
09-DEC-23Software300054
09-DEC-23Hardware277895
09-DEC-23Office Supplies247049
10-DEC-23Software325098
10-DEC-23Hardware189922
10-DEC-23Office Supplies433469
11-DEC-23Software345347
11-DEC-23Hardware292778
11-DEC-23Office Supplies469616
12-DEC-23Software168864
12-DEC-23Hardware490877
12-DEC-23Office Supplies351204
13-DEC-23Software159965
13-DEC-23Hardware420244
13-DEC-23Office Supplies287081
14-DEC-23Software337371
14-DEC-23Hardware332795
14-DEC-23Office Supplies111930
15-DEC-23Software461622
15-DEC-23Hardware234988
15-DEC-23Office Supplies267212
16-DEC-23Software230958
16-DEC-23Hardware353872
16-DEC-23Office Supplies284872
17-DEC-23Software146321
17-DEC-23Hardware246657
17-DEC-23Office Supplies388863
18-DEC-23Software413152
18-DEC-23Hardware135720
18-DEC-23Office Supplies131658
19-DEC-23Software486320
19-DEC-23Hardware110131
19-DEC-23Office Supplies472921
20-DEC-23Software478448
20-DEC-23Hardware143700
20-DEC-23Office Supplies334531
21-DEC-23Software327614
21-DEC-23Hardware289838
21-DEC-23Office Supplies409196
22-DEC-23Software395130
22-DEC-23Hardware262819
22-DEC-23Office Supplies461814
23-DEC-23Software465882
23-DEC-23Hardware164457
23-DEC-23Office Supplies421300
24-DEC-23Software469328
24-DEC-23Hardware303003
24-DEC-23Office Supplies323886
25-DEC-23Software102272
25-DEC-23Hardware209510
25-DEC-23Office Supplies457322
26-DEC-23Software209543
26-DEC-23Hardware263148
26-DEC-23Office Supplies431696
27-DEC-23Software462120
27-DEC-23Hardware346375
27-DEC-23Office Supplies424553
28-DEC-23Software135913
28-DEC-23Hardware238250
28-DEC-23Office Supplies225642
29-DEC-23Software465128
29-DEC-23Hardware331667
29-DEC-23Office Supplies302910
30-DEC-23Software442538
30-DEC-23Hardware147313
30-DEC-23Office Supplies134577
31-DEC-23Software185736
31-DEC-23Hardware387580
31-DEC-23Office Supplies210082
EXEC DBMS_RANDOM.SEED(42);

CREATE TABLE north_america_sale AS
    WITH north_america_sale (report_date, product_category, total_sale) AS (
        SELECT
            daily_sale.report_date,
            data_template.product_category,
            daily_sale.total_sale
        FROM (
            SELECT
               'Software' AS category_1,
               'Hardware' AS category_2,
               'Office Supplies' AS category_3
            FROM
                dual
        )
        UNPIVOT (
            product_category FOR category_column IN (
                "CATEGORY_1", "CATEGORY_2", "CATEGORY_3"
            )
        ) data_template
        CROSS JOIN (
        SELECT
            TO_DATE('2023-01-01', 'YYYY-MM-DD') AS report_date,
            FLOOR(DBMS_RANDOM.VALUE(100000, 500000)) AS total_sale
        FROM
            dual
        ) daily_sale
        UNION ALL
        SELECT
            north_america_sale.report_date + INTERVAL '1' DAY,
            north_america_sale.product_category,
            FLOOR(DBMS_RANDOM.VALUE(100000, 500000))
        FROM
            north_america_sale
        WHERE
            north_america_sale.report_date < TO_DATE('2023-12-31', 'YYYY-MM-DD')
    )
    SELECT
        north_america_sale.report_date,
        north_america_sale.product_category,
        north_america_sale.total_sale
    FROM
        north_america_sale;
Table: europe_sale
Description: Contains sale information for European region in year 2023. There is one row per day value and product category value along with the corresponding total sale value.
Additional info: As a result of running the script provided, the total sale amount may vary due to the use of the DBMS_RANDOM.VALUE function. The report date and product category values should match.
report_dateproduct_categorytotal_sale
01-JAN-23Software130986
01-JAN-23Hardware325957
01-JAN-23Office Supplies359381
02-JAN-23Software350039
02-JAN-23Hardware235789
02-JAN-23Office Supplies291373
03-JAN-23Software463015
03-JAN-23Hardware382062
03-JAN-23Office Supplies106383
04-JAN-23Software499010
04-JAN-23Hardware116633
04-JAN-23Office Supplies441220
05-JAN-23Software482840
05-JAN-23Hardware456018
05-JAN-23Office Supplies308338
06-JAN-23Software463402
06-JAN-23Hardware385487
06-JAN-23Office Supplies244131
07-JAN-23Software247090
07-JAN-23Hardware198045
07-JAN-23Office Supplies359830
08-JAN-23Software372801
08-JAN-23Hardware471010
08-JAN-23Office Supplies450011
09-JAN-23Software401816
09-JAN-23Hardware466308
09-JAN-23Office Supplies119207
10-JAN-23Software146721
10-JAN-23Hardware314424
10-JAN-23Office Supplies291614
11-JAN-23Software184358
11-JAN-23Hardware447629
11-JAN-23Office Supplies445219
12-JAN-23Software122224
12-JAN-23Hardware491773
12-JAN-23Office Supplies377890
13-JAN-23Software216145
13-JAN-23Hardware212298
13-JAN-23Office Supplies269156
14-JAN-23Software117248
14-JAN-23Hardware353179
14-JAN-23Office Supplies488083
15-JAN-23Software130295
15-JAN-23Hardware468557
15-JAN-23Office Supplies122763
16-JAN-23Software295801
16-JAN-23Hardware487853
16-JAN-23Office Supplies459475
17-JAN-23Software184603
17-JAN-23Hardware275430
17-JAN-23Office Supplies222975
18-JAN-23Software421602
18-JAN-23Hardware191991
18-JAN-23Office Supplies280727
19-JAN-23Software388766
19-JAN-23Hardware432802
19-JAN-23Office Supplies292265
20-JAN-23Software378589
20-JAN-23Hardware396760
20-JAN-23Office Supplies450214
21-JAN-23Software482988
21-JAN-23Hardware147373
21-JAN-23Office Supplies329691
22-JAN-23Software451602
22-JAN-23Hardware121235
22-JAN-23Office Supplies108407
23-JAN-23Software319111
23-JAN-23Hardware198986
23-JAN-23Office Supplies168317
24-JAN-23Software477495
24-JAN-23Hardware480650
24-JAN-23Office Supplies238667
25-JAN-23Software232214
25-JAN-23Hardware277385
25-JAN-23Office Supplies166603
26-JAN-23Software382594
26-JAN-23Hardware168602
26-JAN-23Office Supplies458864
27-JAN-23Software409486
27-JAN-23Hardware486419
27-JAN-23Office Supplies241738
28-JAN-23Software242183
28-JAN-23Hardware468323
28-JAN-23Office Supplies406416
29-JAN-23Software472342
29-JAN-23Hardware473124
29-JAN-23Office Supplies380432
30-JAN-23Software237485
30-JAN-23Hardware400814
30-JAN-23Office Supplies388534
31-JAN-23Software328104
31-JAN-23Hardware199133
31-JAN-23Office Supplies259672
01-FEB-23Software498848
01-FEB-23Hardware468851
01-FEB-23Office Supplies374415
02-FEB-23Software496490
02-FEB-23Hardware349406
02-FEB-23Office Supplies167543
03-FEB-23Software191080
03-FEB-23Hardware273296
03-FEB-23Office Supplies468504
04-FEB-23Software198142
04-FEB-23Hardware316817
04-FEB-23Office Supplies452816
05-FEB-23Software289578
05-FEB-23Hardware304197
05-FEB-23Office Supplies260594
06-FEB-23Software239591
06-FEB-23Hardware298252
06-FEB-23Office Supplies419222
07-FEB-23Software434004
07-FEB-23Hardware120772
07-FEB-23Office Supplies365084
08-FEB-23Software356630
08-FEB-23Hardware455330
08-FEB-23Office Supplies120497
09-FEB-23Software210124
09-FEB-23Hardware189088
09-FEB-23Office Supplies422049
10-FEB-23Software396941
10-FEB-23Hardware147215
10-FEB-23Office Supplies298119
11-FEB-23Software327989
11-FEB-23Hardware476343
11-FEB-23Office Supplies449502
12-FEB-23Software113082
12-FEB-23Hardware228704
12-FEB-23Office Supplies126792
13-FEB-23Software234147
13-FEB-23Hardware473675
13-FEB-23Office Supplies341899
14-FEB-23Software427368
14-FEB-23Hardware107628
14-FEB-23Office Supplies303236
15-FEB-23Software194554
15-FEB-23Hardware431761
15-FEB-23Office Supplies272520
16-FEB-23Software167010
16-FEB-23Hardware211933
16-FEB-23Office Supplies271376
17-FEB-23Software299654
17-FEB-23Hardware171489
17-FEB-23Office Supplies421586
18-FEB-23Software253618
18-FEB-23Hardware184734
18-FEB-23Office Supplies154463
19-FEB-23Software280170
19-FEB-23Hardware208972
19-FEB-23Office Supplies157939
20-FEB-23Software296464
20-FEB-23Hardware393431
20-FEB-23Office Supplies396622
21-FEB-23Software365663
21-FEB-23Hardware419070
21-FEB-23Office Supplies249639
22-FEB-23Software418007
22-FEB-23Hardware211224
22-FEB-23Office Supplies445522
23-FEB-23Software479608
23-FEB-23Hardware423726
23-FEB-23Office Supplies277872
24-FEB-23Software102493
24-FEB-23Hardware166960
24-FEB-23Office Supplies305881
25-FEB-23Software222458
25-FEB-23Hardware128558
25-FEB-23Office Supplies452534
26-FEB-23Software137605
26-FEB-23Hardware423640
26-FEB-23Office Supplies167263
27-FEB-23Software291874
27-FEB-23Hardware409779
27-FEB-23Office Supplies260577
28-FEB-23Software343636
28-FEB-23Hardware150560
28-FEB-23Office Supplies231950
01-MAR-23Software352583
01-MAR-23Hardware108159
01-MAR-23Office Supplies185315
02-MAR-23Software107441
02-MAR-23Hardware309547
02-MAR-23Office Supplies122136
03-MAR-23Software423414
03-MAR-23Hardware499811
03-MAR-23Office Supplies392746
04-MAR-23Software491539
04-MAR-23Hardware345375
04-MAR-23Office Supplies218853
05-MAR-23Software248758
05-MAR-23Hardware174163
05-MAR-23Office Supplies355488
06-MAR-23Software450393
06-MAR-23Hardware169503
06-MAR-23Office Supplies278893
07-MAR-23Software477258
07-MAR-23Hardware422113
07-MAR-23Office Supplies200048
08-MAR-23Software374121
08-MAR-23Hardware291224
08-MAR-23Office Supplies108375
09-MAR-23Software221727
09-MAR-23Hardware472045
09-MAR-23Office Supplies118751
10-MAR-23Software318517
10-MAR-23Hardware140101
10-MAR-23Office Supplies443992
11-MAR-23Software128573
11-MAR-23Hardware218247
11-MAR-23Office Supplies427230
12-MAR-23Software334955
12-MAR-23Hardware425448
12-MAR-23Office Supplies420772
13-MAR-23Software467659
13-MAR-23Hardware403023
13-MAR-23Office Supplies423537
14-MAR-23Software170618
14-MAR-23Hardware494032
14-MAR-23Office Supplies412336
15-MAR-23Software424735
15-MAR-23Hardware371217
15-MAR-23Office Supplies202721
16-MAR-23Software308023
16-MAR-23Hardware487999
16-MAR-23Office Supplies493143
17-MAR-23Software346157
17-MAR-23Hardware269133
17-MAR-23Office Supplies331892
18-MAR-23Software360626
18-MAR-23Hardware217758
18-MAR-23Office Supplies341784
19-MAR-23Software240326
19-MAR-23Hardware474311
19-MAR-23Office Supplies480205
20-MAR-23Software204067
20-MAR-23Hardware325958
20-MAR-23Office Supplies349648
21-MAR-23Software466128
21-MAR-23Hardware451988
21-MAR-23Office Supplies218058
22-MAR-23Software319976
22-MAR-23Hardware326494
22-MAR-23Office Supplies270824
23-MAR-23Software139625
23-MAR-23Hardware216417
23-MAR-23Office Supplies477186
24-MAR-23Software279025
24-MAR-23Hardware121012
24-MAR-23Office Supplies163536
25-MAR-23Software191230
25-MAR-23Hardware401993
25-MAR-23Office Supplies293330
26-MAR-23Software302770
26-MAR-23Hardware182144
26-MAR-23Office Supplies279223
27-MAR-23Software101519
27-MAR-23Hardware467885
27-MAR-23Office Supplies241178
28-MAR-23Software350644
28-MAR-23Hardware179143
28-MAR-23Office Supplies257859
29-MAR-23Software285776
29-MAR-23Hardware268899
29-MAR-23Office Supplies192559
30-MAR-23Software407435
30-MAR-23Hardware439023
30-MAR-23Office Supplies251407
31-MAR-23Software270420
31-MAR-23Hardware433787
31-MAR-23Office Supplies355011
01-APR-23Software141595
01-APR-23Hardware390594
01-APR-23Office Supplies320527
02-APR-23Software183160
02-APR-23Hardware464361
02-APR-23Office Supplies487635
03-APR-23Software179908
03-APR-23Hardware487048
03-APR-23Office Supplies109011
04-APR-23Software156679
04-APR-23Hardware437387
04-APR-23Office Supplies171126
05-APR-23Software125223
05-APR-23Hardware163396
05-APR-23Office Supplies299903
06-APR-23Software121008
06-APR-23Hardware241845
06-APR-23Office Supplies442197
07-APR-23Software221383
07-APR-23Hardware454711
07-APR-23Office Supplies405102
08-APR-23Software107507
08-APR-23Hardware251905
08-APR-23Office Supplies220887
09-APR-23Software310617
09-APR-23Hardware227411
09-APR-23Office Supplies265518
10-APR-23Software422232
10-APR-23Hardware310046
10-APR-23Office Supplies150205
11-APR-23Software332198
11-APR-23Hardware320621
11-APR-23Office Supplies411607
12-APR-23Software384063
12-APR-23Hardware274390
12-APR-23Office Supplies366354
13-APR-23Software280966
13-APR-23Hardware382678
13-APR-23Office Supplies169193
14-APR-23Software288234
14-APR-23Hardware158199
14-APR-23Office Supplies405273
15-APR-23Software312305
15-APR-23Hardware375867
15-APR-23Office Supplies242540
16-APR-23Software457762
16-APR-23Hardware306784
16-APR-23Office Supplies410744
17-APR-23Software134756
17-APR-23Hardware128819
17-APR-23Office Supplies393735
18-APR-23Software156509
18-APR-23Hardware277928
18-APR-23Office Supplies185693
19-APR-23Software475899
19-APR-23Hardware352213
19-APR-23Office Supplies118006
20-APR-23Software486045
20-APR-23Hardware105392
20-APR-23Office Supplies274407
21-APR-23Software137841
21-APR-23Hardware412107
21-APR-23Office Supplies307669
22-APR-23Software420618
22-APR-23Hardware440743
22-APR-23Office Supplies211778
23-APR-23Software437481
23-APR-23Hardware306189
23-APR-23Office Supplies446075
24-APR-23Software369096
24-APR-23Hardware309242
24-APR-23Office Supplies300044
25-APR-23Software347470
25-APR-23Hardware433689
25-APR-23Office Supplies330579
26-APR-23Software147642
26-APR-23Hardware465270
26-APR-23Office Supplies458689
27-APR-23Software131632
27-APR-23Hardware345373
27-APR-23Office Supplies256230
28-APR-23Software159253
28-APR-23Hardware478742
28-APR-23Office Supplies487975
29-APR-23Software235898
29-APR-23Hardware308098
29-APR-23Office Supplies172834
30-APR-23Software429613
30-APR-23Hardware370109
30-APR-23Office Supplies279783
01-MAY-23Software140762
01-MAY-23Hardware318807
01-MAY-23Office Supplies294785
02-MAY-23Software376862
02-MAY-23Hardware208853
02-MAY-23Office Supplies498942
03-MAY-23Software117052
03-MAY-23Hardware249786
03-MAY-23Office Supplies182057
04-MAY-23Software188616
04-MAY-23Hardware326858
04-MAY-23Office Supplies116027
05-MAY-23Software210789
05-MAY-23Hardware382226
05-MAY-23Office Supplies462508
06-MAY-23Software224315
06-MAY-23Hardware204152
06-MAY-23Office Supplies243199
07-MAY-23Software144383
07-MAY-23Hardware107532
07-MAY-23Office Supplies197586
08-MAY-23Software274237
08-MAY-23Hardware145299
08-MAY-23Office Supplies484134
09-MAY-23Software262382
09-MAY-23Hardware273740
09-MAY-23Office Supplies220205
10-MAY-23Software380503
10-MAY-23Hardware350232
10-MAY-23Office Supplies310852
11-MAY-23Software391562
11-MAY-23Hardware478243
11-MAY-23Office Supplies124996
12-MAY-23Software240861
12-MAY-23Hardware245958
12-MAY-23Office Supplies418096
13-MAY-23Software298986
13-MAY-23Hardware364523
13-MAY-23Office Supplies183475
14-MAY-23Software412636
14-MAY-23Hardware236258
14-MAY-23Office Supplies292129
15-MAY-23Software474717
15-MAY-23Hardware242421
15-MAY-23Office Supplies227600
16-MAY-23Software218739
16-MAY-23Hardware283568
16-MAY-23Office Supplies182894
17-MAY-23Software231174
17-MAY-23Hardware280282
17-MAY-23Office Supplies315630
18-MAY-23Software270421
18-MAY-23Hardware203850
18-MAY-23Office Supplies415408
19-MAY-23Software263918
19-MAY-23Hardware303145
19-MAY-23Office Supplies492547
20-MAY-23Software414991
20-MAY-23Hardware257366
20-MAY-23Office Supplies459085
21-MAY-23Software309794
21-MAY-23Hardware408615
21-MAY-23Office Supplies228029
22-MAY-23Software207054
22-MAY-23Hardware329477
22-MAY-23Office Supplies472817
23-MAY-23Software434124
23-MAY-23Hardware409775
23-MAY-23Office Supplies246750
24-MAY-23Software145983
24-MAY-23Hardware136951
24-MAY-23Office Supplies340411
25-MAY-23Software435328
25-MAY-23Hardware119100
25-MAY-23Office Supplies249954
26-MAY-23Software325187
26-MAY-23Hardware392976
26-MAY-23Office Supplies328867
27-MAY-23Software167029
27-MAY-23Hardware393557
27-MAY-23Office Supplies454022
28-MAY-23Software435836
28-MAY-23Hardware150924
28-MAY-23Office Supplies454083
29-MAY-23Software226260
29-MAY-23Hardware155481
29-MAY-23Office Supplies281388
30-MAY-23Software117544
30-MAY-23Hardware155852
30-MAY-23Office Supplies403325
31-MAY-23Software377182
31-MAY-23Hardware108781
31-MAY-23Office Supplies273138
01-JUN-23Software311505
01-JUN-23Hardware119690
01-JUN-23Office Supplies465736
02-JUN-23Software264947
02-JUN-23Hardware408841
02-JUN-23Office Supplies152197
03-JUN-23Software374350
03-JUN-23Hardware264722
03-JUN-23Office Supplies320520
04-JUN-23Software423306
04-JUN-23Hardware166503
04-JUN-23Office Supplies299382
05-JUN-23Software465584
05-JUN-23Hardware495608
05-JUN-23Office Supplies496827
06-JUN-23Software244276
06-JUN-23Hardware330948
06-JUN-23Office Supplies196702
07-JUN-23Software446569
07-JUN-23Hardware350827
07-JUN-23Office Supplies308290
08-JUN-23Software413169
08-JUN-23Hardware436055
08-JUN-23Office Supplies464097
09-JUN-23Software409417
09-JUN-23Hardware224598
09-JUN-23Office Supplies385330
10-JUN-23Software376142
10-JUN-23Hardware311306
10-JUN-23Office Supplies418557
11-JUN-23Software419889
11-JUN-23Hardware357489
11-JUN-23Office Supplies156642
12-JUN-23Software306148
12-JUN-23Hardware200276
12-JUN-23Office Supplies427942
13-JUN-23Software302151
13-JUN-23Hardware199538
13-JUN-23Office Supplies157699
14-JUN-23Software149388
14-JUN-23Hardware490336
14-JUN-23Office Supplies460060
15-JUN-23Software253405
15-JUN-23Hardware401420
15-JUN-23Office Supplies146533
16-JUN-23Software450910
16-JUN-23Hardware370536
16-JUN-23Office Supplies386430
17-JUN-23Software378090
17-JUN-23Hardware464114
17-JUN-23Office Supplies406680
18-JUN-23Software211615
18-JUN-23Hardware290351
18-JUN-23Office Supplies444837
19-JUN-23Software237235
19-JUN-23Hardware220923
19-JUN-23Office Supplies244289
20-JUN-23Software351066
20-JUN-23Hardware141090
20-JUN-23Office Supplies220148
21-JUN-23Software470754
21-JUN-23Hardware294240
21-JUN-23Office Supplies122212
22-JUN-23Software377163
22-JUN-23Hardware229455
22-JUN-23Office Supplies266779
23-JUN-23Software227325
23-JUN-23Hardware267736
23-JUN-23Office Supplies195147
24-JUN-23Software154526
24-JUN-23Hardware293664
24-JUN-23Office Supplies321285
25-JUN-23Software156763
25-JUN-23Hardware199975
25-JUN-23Office Supplies252248
26-JUN-23Software354824
26-JUN-23Hardware364079
26-JUN-23Office Supplies306592
27-JUN-23Software350527
27-JUN-23Hardware287508
27-JUN-23Office Supplies188713
28-JUN-23Software292010
28-JUN-23Hardware487758
28-JUN-23Office Supplies101658
29-JUN-23Software363394
29-JUN-23Hardware157124
29-JUN-23Office Supplies478412
30-JUN-23Software300932
30-JUN-23Hardware157215
30-JUN-23Office Supplies241366
01-JUL-23Software148090
01-JUL-23Hardware272906
01-JUL-23Office Supplies393778
02-JUL-23Software179911
02-JUL-23Hardware426551
02-JUL-23Office Supplies219791
03-JUL-23Software226839
03-JUL-23Hardware380730
03-JUL-23Office Supplies169157
04-JUL-23Software241680
04-JUL-23Hardware105436
04-JUL-23Office Supplies164201
05-JUL-23Software207715
05-JUL-23Hardware434853
05-JUL-23Office Supplies164089
06-JUL-23Software158928
06-JUL-23Hardware466440
06-JUL-23Office Supplies154431
07-JUL-23Software251429
07-JUL-23Hardware487763
07-JUL-23Office Supplies408431
08-JUL-23Software333003
08-JUL-23Hardware143077
08-JUL-23Office Supplies128848
09-JUL-23Software221806
09-JUL-23Hardware334149
09-JUL-23Office Supplies351364
10-JUL-23Software100624
10-JUL-23Hardware178095
10-JUL-23Office Supplies286670
11-JUL-23Software408145
11-JUL-23Hardware275415
11-JUL-23Office Supplies440642
12-JUL-23Software488925
12-JUL-23Hardware234437
12-JUL-23Office Supplies220215
13-JUL-23Software441077
13-JUL-23Hardware283602
13-JUL-23Office Supplies480705
14-JUL-23Software321405
14-JUL-23Hardware496504
14-JUL-23Office Supplies369516
15-JUL-23Software370793
15-JUL-23Hardware458243
15-JUL-23Office Supplies222362
16-JUL-23Software252803
16-JUL-23Hardware350939
16-JUL-23Office Supplies454198
17-JUL-23Software156089
17-JUL-23Hardware114823
17-JUL-23Office Supplies144888
18-JUL-23Software386844
18-JUL-23Hardware133935
18-JUL-23Office Supplies200292
19-JUL-23Software270214
19-JUL-23Hardware269897
19-JUL-23Office Supplies107055
20-JUL-23Software245143
20-JUL-23Hardware180536
20-JUL-23Office Supplies104647
21-JUL-23Software406462
21-JUL-23Hardware134985
21-JUL-23Office Supplies156146
22-JUL-23Software109799
22-JUL-23Hardware230605
22-JUL-23Office Supplies239874
23-JUL-23Software284416
23-JUL-23Hardware148793
23-JUL-23Office Supplies218456
24-JUL-23Software144795
24-JUL-23Hardware380334
24-JUL-23Office Supplies462944
25-JUL-23Software423947
25-JUL-23Hardware122222
25-JUL-23Office Supplies446006
26-JUL-23Software130794
26-JUL-23Hardware485806
26-JUL-23Office Supplies394017
27-JUL-23Software483047
27-JUL-23Hardware277896
27-JUL-23Office Supplies348972
28-JUL-23Software396253
28-JUL-23Hardware387469
28-JUL-23Office Supplies212031
29-JUL-23Software386963
29-JUL-23Hardware178360
29-JUL-23Office Supplies445313
30-JUL-23Software447697
30-JUL-23Hardware234068
30-JUL-23Office Supplies314974
31-JUL-23Software224862
31-JUL-23Hardware347539
31-JUL-23Office Supplies318588
01-AUG-23Software136851
01-AUG-23Hardware331205
01-AUG-23Office Supplies227110
02-AUG-23Software109391
02-AUG-23Hardware155210
02-AUG-23Office Supplies107036
03-AUG-23Software340818
03-AUG-23Hardware297598
03-AUG-23Office Supplies231274
04-AUG-23Software417143
04-AUG-23Hardware480037
04-AUG-23Office Supplies137046
05-AUG-23Software490894
05-AUG-23Hardware417638
05-AUG-23Office Supplies119741
06-AUG-23Software494310
06-AUG-23Hardware253262
06-AUG-23Office Supplies447793
07-AUG-23Software356028
07-AUG-23Hardware141396
07-AUG-23Office Supplies468005
08-AUG-23Software216678
08-AUG-23Hardware293425
08-AUG-23Office Supplies213345
09-AUG-23Software101459
09-AUG-23Hardware457496
09-AUG-23Office Supplies364674
10-AUG-23Software454849
10-AUG-23Hardware409279
10-AUG-23Office Supplies396333
11-AUG-23Software437044
11-AUG-23Hardware181646
11-AUG-23Office Supplies211539
12-AUG-23Software190055
12-AUG-23Hardware433339
12-AUG-23Office Supplies177433
13-AUG-23Software453043
13-AUG-23Hardware371613
13-AUG-23Office Supplies283404
14-AUG-23Software125292
14-AUG-23Hardware400191
14-AUG-23Office Supplies257934
15-AUG-23Software386019
15-AUG-23Hardware387147
15-AUG-23Office Supplies305108
16-AUG-23Software231773
16-AUG-23Hardware381273
16-AUG-23Office Supplies331623
17-AUG-23Software393107
17-AUG-23Hardware303725
17-AUG-23Office Supplies275465
18-AUG-23Software282980
18-AUG-23Hardware341541
18-AUG-23Office Supplies140965
19-AUG-23Software431933
19-AUG-23Hardware138311
19-AUG-23Office Supplies288702
20-AUG-23Software491784
20-AUG-23Hardware464240
20-AUG-23Office Supplies464490
21-AUG-23Software403369
21-AUG-23Hardware277863
21-AUG-23Office Supplies379244
22-AUG-23Software342814
22-AUG-23Hardware107198
22-AUG-23Office Supplies413377
23-AUG-23Software214480
23-AUG-23Hardware443937
23-AUG-23Office Supplies289252
24-AUG-23Software303146
24-AUG-23Hardware119602
24-AUG-23Office Supplies153454
25-AUG-23Software205728
25-AUG-23Hardware242047
25-AUG-23Office Supplies428543
26-AUG-23Software273114
26-AUG-23Hardware348451
26-AUG-23Office Supplies174699
27-AUG-23Software444968
27-AUG-23Hardware394566
27-AUG-23Office Supplies261222
28-AUG-23Software140139
28-AUG-23Hardware237829
28-AUG-23Office Supplies250821
29-AUG-23Software437298
29-AUG-23Hardware368978
29-AUG-23Office Supplies219958
30-AUG-23Software400241
30-AUG-23Hardware181840
30-AUG-23Office Supplies397579
31-AUG-23Software141923
31-AUG-23Hardware356412
31-AUG-23Office Supplies149477
01-SEP-23Software162649
01-SEP-23Hardware368106
01-SEP-23Office Supplies407390
02-SEP-23Software171311
02-SEP-23Hardware100499
02-SEP-23Office Supplies331085
03-SEP-23Software494360
03-SEP-23Hardware434919
03-SEP-23Office Supplies400876
04-SEP-23Software385077
04-SEP-23Hardware498835
04-SEP-23Office Supplies445773
05-SEP-23Software204009
05-SEP-23Hardware456094
05-SEP-23Office Supplies189993
06-SEP-23Software215665
06-SEP-23Hardware376902
06-SEP-23Office Supplies432878
07-SEP-23Software449924
07-SEP-23Hardware131924
07-SEP-23Office Supplies202070
08-SEP-23Software215311
08-SEP-23Hardware340668
08-SEP-23Office Supplies146842
09-SEP-23Software499203
09-SEP-23Hardware243056
09-SEP-23Office Supplies189038
10-SEP-23Software310956
10-SEP-23Hardware256403
10-SEP-23Office Supplies300350
11-SEP-23Software338729
11-SEP-23Hardware365795
11-SEP-23Office Supplies387708
12-SEP-23Software460844
12-SEP-23Hardware277039
12-SEP-23Office Supplies242547
13-SEP-23Software259629
13-SEP-23Hardware267474
13-SEP-23Office Supplies283371
14-SEP-23Software475576
14-SEP-23Hardware330046
14-SEP-23Office Supplies393402
15-SEP-23Software206995
15-SEP-23Hardware244148
15-SEP-23Office Supplies193924
16-SEP-23Software340814
16-SEP-23Hardware152964
16-SEP-23Office Supplies245881
17-SEP-23Software152836
17-SEP-23Hardware350166
17-SEP-23Office Supplies213764
18-SEP-23Software499650
18-SEP-23Hardware257235
18-SEP-23Office Supplies197081
19-SEP-23Software196319
19-SEP-23Hardware161852
19-SEP-23Office Supplies111162
20-SEP-23Software496428
20-SEP-23Hardware382268
20-SEP-23Office Supplies256903
21-SEP-23Software131435
21-SEP-23Hardware333089
21-SEP-23Office Supplies300714
22-SEP-23Software288585
22-SEP-23Hardware345921
22-SEP-23Office Supplies275874
23-SEP-23Software188320
23-SEP-23Hardware363638
23-SEP-23Office Supplies223569
24-SEP-23Software373364
24-SEP-23Hardware191241
24-SEP-23Office Supplies206948
25-SEP-23Software326280
25-SEP-23Hardware156920
25-SEP-23Office Supplies276073
26-SEP-23Software295994
26-SEP-23Hardware456126
26-SEP-23Office Supplies393633
27-SEP-23Software292724
27-SEP-23Hardware152039
27-SEP-23Office Supplies493222
28-SEP-23Software302803
28-SEP-23Hardware310606
28-SEP-23Office Supplies413639
29-SEP-23Software397432
29-SEP-23Hardware435049
29-SEP-23Office Supplies427647
30-SEP-23Software398871
30-SEP-23Hardware457273
30-SEP-23Office Supplies159307
01-OCT-23Software399450
01-OCT-23Hardware291064
01-OCT-23Office Supplies100564
02-OCT-23Software484086
02-OCT-23Hardware264161
02-OCT-23Office Supplies175967
03-OCT-23Software169276
03-OCT-23Hardware295316
03-OCT-23Office Supplies107787
04-OCT-23Software317494
04-OCT-23Hardware214179
04-OCT-23Office Supplies244205
05-OCT-23Software352830
05-OCT-23Hardware379116
05-OCT-23Office Supplies407086
06-OCT-23Software389838
06-OCT-23Hardware295644
06-OCT-23Office Supplies213362
07-OCT-23Software490714
07-OCT-23Hardware389043
07-OCT-23Office Supplies213891
08-OCT-23Software104384
08-OCT-23Hardware299232
08-OCT-23Office Supplies192875
09-OCT-23Software170542
09-OCT-23Hardware428867
09-OCT-23Office Supplies268138
10-OCT-23Software228362
10-OCT-23Hardware187456
10-OCT-23Office Supplies303195
11-OCT-23Software335181
11-OCT-23Hardware487771
11-OCT-23Office Supplies154703
12-OCT-23Software224134
12-OCT-23Hardware357450
12-OCT-23Office Supplies355402
13-OCT-23Software282916
13-OCT-23Hardware395557
13-OCT-23Office Supplies352236
14-OCT-23Software283861
14-OCT-23Hardware113488
14-OCT-23Office Supplies170306
15-OCT-23Software137838
15-OCT-23Hardware145554
15-OCT-23Office Supplies431156
16-OCT-23Software400308
16-OCT-23Hardware192641
16-OCT-23Office Supplies106251
17-OCT-23Software127001
17-OCT-23Hardware388146
17-OCT-23Office Supplies324092
18-OCT-23Software141539
18-OCT-23Hardware403256
18-OCT-23Office Supplies256505
19-OCT-23Software252182
19-OCT-23Hardware469993
19-OCT-23Office Supplies219932
20-OCT-23Software268703
20-OCT-23Hardware212448
20-OCT-23Office Supplies351617
21-OCT-23Software379162
21-OCT-23Hardware404458
21-OCT-23Office Supplies283087
22-OCT-23Software162490
22-OCT-23Hardware441628
22-OCT-23Office Supplies471630
23-OCT-23Software499608
23-OCT-23Hardware135746
23-OCT-23Office Supplies274674
24-OCT-23Software259322
24-OCT-23Hardware173699
24-OCT-23Office Supplies309133
25-OCT-23Software283668
25-OCT-23Hardware128553
25-OCT-23Office Supplies434598
26-OCT-23Software145047
26-OCT-23Hardware404693
26-OCT-23Office Supplies391874
27-OCT-23Software199126
27-OCT-23Hardware197544
27-OCT-23Office Supplies317014
28-OCT-23Software492231
28-OCT-23Hardware269902
28-OCT-23Office Supplies490712
29-OCT-23Software459700
29-OCT-23Hardware487364
29-OCT-23Office Supplies457764
30-OCT-23Software274636
30-OCT-23Hardware392838
30-OCT-23Office Supplies469899
31-OCT-23Software207020
31-OCT-23Hardware162079
31-OCT-23Office Supplies300016
01-NOV-23Software135323
01-NOV-23Hardware346351
01-NOV-23Office Supplies455117
02-NOV-23Software141936
02-NOV-23Hardware137447
02-NOV-23Office Supplies181300
03-NOV-23Software205830
03-NOV-23Hardware159631
03-NOV-23Office Supplies266341
04-NOV-23Software315384
04-NOV-23Hardware310670
04-NOV-23Office Supplies416700
05-NOV-23Software258691
05-NOV-23Hardware186587
05-NOV-23Office Supplies307950
06-NOV-23Software148380
06-NOV-23Hardware351308
06-NOV-23Office Supplies167538
07-NOV-23Software436947
07-NOV-23Hardware260935
07-NOV-23Office Supplies382351
08-NOV-23Software342330
08-NOV-23Hardware338863
08-NOV-23Office Supplies391822
09-NOV-23Software240852
09-NOV-23Hardware337127
09-NOV-23Office Supplies334466
10-NOV-23Software441530
10-NOV-23Hardware206628
10-NOV-23Office Supplies197825
11-NOV-23Software474690
11-NOV-23Hardware294645
11-NOV-23Office Supplies420051
12-NOV-23Software264250
12-NOV-23Hardware325605
12-NOV-23Office Supplies166001
13-NOV-23Software115899
13-NOV-23Hardware250878
13-NOV-23Office Supplies464325
14-NOV-23Software158215
14-NOV-23Hardware414510
14-NOV-23Office Supplies408215
15-NOV-23Software233715
15-NOV-23Hardware250923
15-NOV-23Office Supplies356489
16-NOV-23Software298662
16-NOV-23Hardware108081
16-NOV-23Office Supplies338672
17-NOV-23Software125303
17-NOV-23Hardware211584
17-NOV-23Office Supplies153773
18-NOV-23Software352250
18-NOV-23Hardware449350
18-NOV-23Office Supplies400943
19-NOV-23Software191838
19-NOV-23Hardware276175
19-NOV-23Office Supplies183478
20-NOV-23Software289584
20-NOV-23Hardware483466
20-NOV-23Office Supplies244075
21-NOV-23Software279126
21-NOV-23Hardware180520
21-NOV-23Office Supplies354276
22-NOV-23Software186392
22-NOV-23Hardware479634
22-NOV-23Office Supplies136275
23-NOV-23Software482701
23-NOV-23Hardware274590
23-NOV-23Office Supplies337465
24-NOV-23Software272275
24-NOV-23Hardware206596
24-NOV-23Office Supplies265819
25-NOV-23Software475753
25-NOV-23Hardware170663
25-NOV-23Office Supplies411858
26-NOV-23Software238840
26-NOV-23Hardware140992
26-NOV-23Office Supplies346945
27-NOV-23Software230495
27-NOV-23Hardware266155
27-NOV-23Office Supplies448711
28-NOV-23Software388240
28-NOV-23Hardware293781
28-NOV-23Office Supplies155978
29-NOV-23Software498768
29-NOV-23Hardware166529
29-NOV-23Office Supplies470821
30-NOV-23Software103530
30-NOV-23Hardware453834
30-NOV-23Office Supplies309072
01-DEC-23Software310076
01-DEC-23Hardware295026
01-DEC-23Office Supplies331398
02-DEC-23Software318602
02-DEC-23Hardware244608
02-DEC-23Office Supplies394145
03-DEC-23Software444490
03-DEC-23Hardware216417
03-DEC-23Office Supplies425513
04-DEC-23Software193954
04-DEC-23Hardware470937
04-DEC-23Office Supplies214677
05-DEC-23Software104492
05-DEC-23Hardware101056
05-DEC-23Office Supplies282247
06-DEC-23Software465632
06-DEC-23Hardware491091
06-DEC-23Office Supplies490342
07-DEC-23Software247888
07-DEC-23Hardware322334
07-DEC-23Office Supplies442330
08-DEC-23Software132190
08-DEC-23Hardware177824
08-DEC-23Office Supplies277247
09-DEC-23Software300054
09-DEC-23Hardware277895
09-DEC-23Office Supplies247049
10-DEC-23Software325098
10-DEC-23Hardware189922
10-DEC-23Office Supplies433469
11-DEC-23Software345347
11-DEC-23Hardware292778
11-DEC-23Office Supplies469616
12-DEC-23Software168864
12-DEC-23Hardware490877
12-DEC-23Office Supplies351204
13-DEC-23Software159965
13-DEC-23Hardware420244
13-DEC-23Office Supplies287081
14-DEC-23Software337371
14-DEC-23Hardware332795
14-DEC-23Office Supplies111930
15-DEC-23Software461622
15-DEC-23Hardware234988
15-DEC-23Office Supplies267212
16-DEC-23Software230958
16-DEC-23Hardware353872
16-DEC-23Office Supplies284872
17-DEC-23Software146321
17-DEC-23Hardware246657
17-DEC-23Office Supplies388863
18-DEC-23Software413152
18-DEC-23Hardware135720
18-DEC-23Office Supplies131658
19-DEC-23Software486320
19-DEC-23Hardware110131
19-DEC-23Office Supplies472921
20-DEC-23Software478448
20-DEC-23Hardware143700
20-DEC-23Office Supplies334531
21-DEC-23Software327614
21-DEC-23Hardware289838
21-DEC-23Office Supplies409196
22-DEC-23Software395130
22-DEC-23Hardware262819
22-DEC-23Office Supplies461814
23-DEC-23Software465882
23-DEC-23Hardware164457
23-DEC-23Office Supplies421300
24-DEC-23Software469328
24-DEC-23Hardware303003
24-DEC-23Office Supplies323886
25-DEC-23Software102272
25-DEC-23Hardware209510
25-DEC-23Office Supplies457322
26-DEC-23Software209543
26-DEC-23Hardware263148
26-DEC-23Office Supplies431696
27-DEC-23Software462120
27-DEC-23Hardware346375
27-DEC-23Office Supplies424553
28-DEC-23Software135913
28-DEC-23Hardware238250
28-DEC-23Office Supplies225642
29-DEC-23Software465128
29-DEC-23Hardware331667
29-DEC-23Office Supplies302910
30-DEC-23Software442538
30-DEC-23Hardware147313
30-DEC-23Office Supplies134577
31-DEC-23Software185736
31-DEC-23Hardware387580
31-DEC-23Office Supplies210082
EXEC DBMS_RANDOM.SEED(42);

CREATE TABLE europe_sale AS
    WITH europe_sale (report_date, product_category, total_sale) AS (
        SELECT
            daily_sale.report_date,
            data_template.product_category,
            daily_sale.total_sale
        FROM (
            SELECT
               'Software' AS category_1,
               'Hardware' AS category_2,
               'Office Supplies' AS category_3
            FROM
                dual
        )
        UNPIVOT (
            product_category FOR category_column IN (
                "CATEGORY_1", "CATEGORY_2", "CATEGORY_3"
            )
        ) data_template
        CROSS JOIN (
        SELECT
            TO_DATE('2023-01-01', 'YYYY-MM-DD') AS report_date,
            FLOOR(DBMS_RANDOM.VALUE(100000, 500000)) AS total_sale
        FROM
            dual
        ) daily_sale
        UNION ALL
        SELECT
            europe_sale.report_date + INTERVAL '1' DAY,
            europe_sale.product_category,
            FLOOR(DBMS_RANDOM.VALUE(100000, 500000))
        FROM
            europe_sale
        WHERE
            europe_sale.report_date < TO_DATE('2023-12-31', 'YYYY-MM-DD')
    )
    SELECT
        europe_sale.report_date,
        europe_sale.product_category,
        europe_sale.total_sale
    FROM
        europe_sale;

UNION ALL
As previously mentioned, the UNION ALL operator allows users to vertically append the results of multiple SELECT statements together. Let us walk through an example.

Suppose you are tasked with developing a report containing the total sales generated by the North American and European sales regions within each month. Given that this data exists across two tables and the structures of those tables are identical, this is a rather straightforward task using the UNION ALL operator.

The results of two basic SELECT statements can be combined using the UNION ALL operator. In the code below, I create a derived attribute within each statement’s SELECT clause to allow us to differentiate between the two individual result sets in a meaningful way. Adding a region value allows us to determine the query for which each row originates and allows readers of the report to know which region the corresponding monthly sales value is associated with. To make it easier to consume the data, I have sorted the result set by reporting month and region. Take note that I have purposely not qualified the attributes with their corresponding table names in the ORDER BY clause. This is because the ORDER BY clause operates on the result of the UNION operation, not the results of the individual SELECT statements. Integer values representing the attributes’ ordinal positions can also be used. See the code’s corresponding result set below.

SELECT
    'North America' AS "Region",
    TRUNC(north_america_sale.report_date, 'MONTH') AS "Reporting Month",
    SUM(north_america_sale.total_sale) AS "Total Sales"
FROM
    north_america_sale
GROUP BY
    TRUNC(north_america_sale.report_date, 'MONTH')
UNION
SELECT
    'Europe',
    TRUNC(europe_sale.report_date, 'MONTH'),
    SUM(europe_sale.total_sale) 
FROM
    europe_sale
GROUP BY
    TRUNC(europe_sale.report_date, 'MONTH')
ORDER BY
	"Reporting Month",
	"Region";
RegionReporting MonthTotal Sales
Europe01-JAN-2330092600
North America01-JAN-2330092600
Europe01-FEB-2325048255
North America01-FEB-2325048255
Europe01-MAR-2328982026
North America01-MAR-2328982026
Europe01-APR-2327177069
North America01-APR-2327177069
Europe01-MAY-2326798754
North America01-MAY-2326798754
Europe01-JUN-2327854615
North America01-JUN-2327854615
Europe01-JUL-2326549507
North America01-JUL-2326549507
Europe01-AUG-2328133612
North America01-AUG-2328133612
Europe01-SEP-2327473052
North America01-SEP-2327473052
Europe01-OCT-2327481206
North America01-OCT-2327481206
Europe01-NOV-2326136439
North America01-NOV-2326136439
Europe01-DEC-2328666163
North America01-DEC-2328666163

UNION
To observe a key difference between the UNION and UNION ALL operators, let us walk through the code below and then change the UNION ALL operator to UNION. In the code below, each SELECT statement returns one row per reporting month and product category value from North American and European sales tables. Thirty-six rows are returned from each. For clarity, see the corresponding result set.

SELECT
    TRUNC(north_america_sale.report_date, 'MONTH') AS "Reporting Month",
    north_america_sale.product_category AS "Product Category"
FROM
    north_america_sale
GROUP BY
    TRUNC(north_america_sale.report_date, 'MONTH'),
    north_america_sale.product_category
UNION ALL
SELECT
    TRUNC(europe_sale.report_date, 'MONTH'),
    europe_sale.product_category
FROM
    europe_sale
GROUP BY
    TRUNC(europe_sale.report_date, 'MONTH'),
    europe_sale.product_category
ORDER BY
	"Reporting Month",
    "Product Category";
Reporting MonthProduct Category
01-JAN-23Hardware
01-JAN-23Hardware
01-JAN-23Office Supplies
01-JAN-23Office Supplies
01-JAN-23Software
01-JAN-23Software
01-FEB-23Hardware
01-FEB-23Hardware
01-FEB-23Office Supplies
01-FEB-23Office Supplies
01-FEB-23Software
01-FEB-23Software
01-MAR-23Hardware
01-MAR-23Hardware
01-MAR-23Office Supplies
01-MAR-23Office Supplies
01-MAR-23Software
01-MAR-23Software
01-APR-23Hardware
01-APR-23Hardware
01-APR-23Office Supplies
01-APR-23Office Supplies
01-APR-23Software
01-APR-23Software
01-MAY-23Hardware
01-MAY-23Hardware
01-MAY-23Office Supplies
01-MAY-23Office Supplies
01-MAY-23Software
01-MAY-23Software
01-JUN-23Hardware
01-JUN-23Hardware
01-JUN-23Office Supplies
01-JUN-23Office Supplies
01-JUN-23Software
01-JUN-23Software
01-JUL-23Hardware
01-JUL-23Hardware
01-JUL-23Office Supplies
01-JUL-23Office Supplies
01-JUL-23Software
01-JUL-23Software
01-AUG-23Hardware
01-AUG-23Hardware
01-AUG-23Office Supplies
01-AUG-23Office Supplies
01-AUG-23Software
01-AUG-23Software
01-SEP-23Hardware
01-SEP-23Hardware
01-SEP-23Office Supplies
01-SEP-23Office Supplies
01-SEP-23Software
01-SEP-23Software
01-OCT-23Hardware
01-OCT-23Hardware
01-OCT-23Office Supplies
01-OCT-23Office Supplies
01-OCT-23Software
01-OCT-23Software
01-NOV-23Hardware
01-NOV-23Hardware
01-NOV-23Office Supplies
01-NOV-23Office Supplies
01-NOV-23Software
01-NOV-23Software
01-DEC-23Hardware
01-DEC-23Hardware
01-DEC-23Office Supplies
01-DEC-23Office Supplies
01-DEC-23Software
01-DEC-23Software

In the result set above, you will notice there are thirty-six duplicate rows. For example, there are two rows containing a reporting month value of “01-JAN-23” and a product category value of “Hardware.” This is expected because the UNION ALL operator does not check for and subsequently remove the duplicate rows returned by the SELECT statements. If it is desirable for the result set to be void of duplicate rows, then use the UNION operator. The result set below is that returned when the UNION operator is used instead of the UNION ALL operator. Notice the duplicate rows existing in the result set above have been removed, resulting in thirty-six rows instead of seventy-two.

Reporting MonthProduct Category
01-JAN-23Hardware
01-JAN-23Office Supplies
01-JAN-23Software
01-FEB-23Hardware
01-FEB-23Office Supplies
01-FEB-23Software
01-MAR-23Hardware
01-MAR-23Office Supplies
01-MAR-23Software
01-APR-23Hardware
01-APR-23Office Supplies
01-APR-23Software
01-MAY-23Hardware
01-MAY-23Office Supplies
01-MAY-23Software
01-JUN-23Hardware
01-JUN-23Office Supplies
01-JUN-23Software
01-JUL-23Hardware
01-JUL-23Office Supplies
01-JUL-23Software
01-AUG-23Hardware
01-AUG-23Office Supplies
01-AUG-23Software
01-SEP-23Hardware
01-SEP-23Office Supplies
01-SEP-23Software
01-OCT-23Hardware
01-OCT-23Office Supplies
01-OCT-23Software
01-NOV-23Hardware
01-NOV-23Office Supplies
01-NOV-23Software
01-DEC-23Hardware
01-DEC-23Office Supplies
01-DEC-23Software

Tag the Rows
In the first example on this page, I tagged each row with a region value based on the table and SELECT statement for which the row originated. When using the UNION or UNION ALL operator, I consider this as a best practice. This also applies to situations where the value is not intended to be a useful reporting dimension like “Region” but is only for identification purposes. Addressing inaccuracies or reviewing rows that do not look right is easier when you know which SELECT statement to review. By tagging the rows resulting from each SELECT statement with a distinct value for each (e.g., North America versus Europe), you immediately know which SELECT statement to review.

Dummy Attributes
One of the requirements of the SELECT statements separated by the UNION or UNION ALL operator is for the statements to return the same number of attributes. When this is not naturally the case, dummy attributes derived at query runtime can be used as placeholders.

For example, suppose you need to build onto the report generated in the first example on this page by including a derived attribute based on the ratio (represented as a percentage) between the total sales generated for each month and a target value of $30,000,000. The catch here is that a monthly target has been created for only the North America region and does not yet apply to the European region. To capture this fact and to ensure both SELECT statements return the same number of attributes, a dummy attribute with a constant value of NULL can be used. For clarity, see the code and corresponding result set below.

SELECT
    'North America' AS "Region",
    TRUNC(north_america_sale.report_date, 'MONTH') AS "Reporting Month",
    SUM(north_america_sale.total_sale) AS "Total Sales",
    ROUND(
    	(SUM(north_america_sale.total_sale) / 30000000) * 100
    	, 2
    ) AS "Percent of Target"
FROM
	north_america_sale
GROUP BY
    TRUNC(north_america_sale.report_date, 'MONTH')
UNION ALL
SELECT
    'Europe',
    TRUNC(europe_sale.report_date, 'MONTH'),
    SUM(europe_sale.total_sale),
    NULL
FROM
    europe_sale
GROUP BY
    TRUNC(europe_sale.report_date, 'MONTH')
ORDER BY
	"Reporting Month",
    "Region";
RegionReporting MonthTotal SalesPercent of Target
Europe01-JAN-2330092600
North America01-JAN-2330092600100.31
Europe01-FEB-2325048255
North America01-FEB-232504825583.49
Europe01-MAR-2328982026
North America01-MAR-232898202696.61
Europe01-APR-2327177069
North America01-APR-232717706990.59
Europe01-MAY-2326798754
North America01-MAY-232679875489.33
Europe01-JUN-2327854615
North America01-JUN-232785461592.85
Europe01-JUL-2326549507
North America01-JUL-232654950788.5
Europe01-AUG-2328133612
North America01-AUG-232813361293.78
Europe01-SEP-2327473052
North America01-SEP-232747305291.58
Europe01-OCT-2327481206
North America01-OCT-232748120691.6
Europe01-NOV-2326136439
North America01-NOV-232613643987.12
Europe01-DEC-2328666163
North America01-DEC-232866616395.55

If a dummy attribute was not specified for the second select statement above, then the error, ORA-01789: query block has incorrect number of result columns, would have been returned by the database. Additionally, if the constant value specified for this dummy attribute was not NULL or of numeric data type, then the error, ORA-01790: expression must have same datatype as corresponding expression, would have been returned by the database. Remember, the data types much match for the corresponding attributes from each SELECT statement.

Knowledge Check
If you’d like to confirm your understanding on the use of the UNION and UNION ALL operators and other fundamental concepts, consider solving a handful of my practice problems here.