-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUdacity Reviews_sql_sakila_2.mhtml
19145 lines (14803 loc) · 889 KB
/
Udacity Reviews_sql_sakila_2.mhtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
From: <Saved by Blink>
Snapshot-Content-Location: https://review.udacity.com/?utm_campaign=ret_000_auto_ndxxx_submission-reviewed&utm_source=blueshift&utm_medium=email&utm_content=reviewsapp-submission-reviewed&bsft_clkid=58d5b78c-c59e-4305-8ca3-dacbf598fa8a&bsft_uid=9b0f6def-f27d-4a4d-bfbf-faf50d9ad4bd&bsft_mid=73a82af0-d2ba-49a6-aa37-a184f4979e58&bsft_eid=6f154690-7543-4582-9be7-e397af208dbd&bsft_txnid=ae94eab1-6119-4216-bdfe-cf7af7cb8cdf&bsft_mime_type=html&bsft_ek=2021-05-22T11%3A26%3A41Z&bsft_aaid=8d7e276e-4a10-41b2-8868-423fe96dd6b2&bsft_lx=2&bsft_tv=5#!/reviews/2950373
Subject: Udacity Reviews
Date: Sun, 30 May 2021 10:10:55 -0000
MIME-Version: 1.0
Content-Type: multipart/related;
type="text/html";
boundary="----MultipartBoundary--haC2VBRlvsrvl1wN3izgY0PGv1gz3kM9jP9uTENV9w----"
------MultipartBoundary--haC2VBRlvsrvl1wN3izgY0PGv1gz3kM9jP9uTENV9w----
Content-Type: text/html
Content-ID: <frame-0336D5C72C34407BE6B85760713238D5@mhtml.blink>
Content-Transfer-Encoding: quoted-printable
Content-Location: https://review.udacity.com/?utm_campaign=ret_000_auto_ndxxx_submission-reviewed&utm_source=blueshift&utm_medium=email&utm_content=reviewsapp-submission-reviewed&bsft_clkid=58d5b78c-c59e-4305-8ca3-dacbf598fa8a&bsft_uid=9b0f6def-f27d-4a4d-bfbf-faf50d9ad4bd&bsft_mid=73a82af0-d2ba-49a6-aa37-a184f4979e58&bsft_eid=6f154690-7543-4582-9be7-e397af208dbd&bsft_txnid=ae94eab1-6119-4216-bdfe-cf7af7cb8cdf&bsft_mime_type=html&bsft_ek=2021-05-22T11%3A26%3A41Z&bsft_aaid=8d7e276e-4a10-41b2-8868-423fe96dd6b2&bsft_lx=2&bsft_tv=5#!/reviews/2950373
<!DOCTYPE html><html data-ng-app=3D"udacity.grading" data-enforce-browser=
=3D"" lang=3D"en" class=3D"ng-scope"><head><meta http-equiv=3D"Content-Type=
" content=3D"text/html; charset=3DUTF-8"><link rel=3D"stylesheet" type=3D"t=
ext/css" href=3D"cid:css-a4b956f6-9bfe-45d4-ba12-54af3632967e@mhtml.blink" =
/><link rel=3D"stylesheet" type=3D"text/css" href=3D"cid:css-9dab6d81-a675-=
4a02-9fbb-77cdae103725@mhtml.blink" /><link rel=3D"stylesheet" type=3D"text=
/css" href=3D"cid:css-a56f0d37-2308-413d-be46-f8517f021a54@mhtml.blink" /><=
link rel=3D"stylesheet" type=3D"text/css" href=3D"cid:css-bbb44e70-0299-437=
8-8353-e557a1c602cc@mhtml.blink" /><link rel=3D"stylesheet" type=3D"text/cs=
s" href=3D"cid:css-301fa096-ed00-425b-8604-789b9aba3420@mhtml.blink" /><lin=
k rel=3D"stylesheet" type=3D"text/css" href=3D"cid:css-69490929-a116-4d7e-9=
c4d-e87e3faad480@mhtml.blink" /><link rel=3D"stylesheet" type=3D"text/css" =
href=3D"cid:css-63609546-ebb4-470d-9b5a-66030cce1671@mhtml.blink" /><link r=
el=3D"stylesheet" type=3D"text/css" href=3D"cid:css-37e157a2-13f2-424c-b45f=
-6a5a09fe5307@mhtml.blink" /><link rel=3D"stylesheet" type=3D"text/css" hre=
f=3D"cid:css-6c256038-2cc8-4f4b-b635-71b1b532beb8@mhtml.blink" /><link rel=
=3D"stylesheet" type=3D"text/css" href=3D"cid:css-10119530-9396-4bca-ad08-c=
247a97b5a5e@mhtml.blink" /><link rel=3D"stylesheet" type=3D"text/css" href=
=3D"cid:css-b71f8641-b3a6-4e10-a5f0-26b73ef90144@mhtml.blink" /><link rel=
=3D"stylesheet" type=3D"text/css" href=3D"cid:css-67520598-b301-401d-bcbd-c=
171bf8445f0@mhtml.blink" /><link rel=3D"stylesheet" type=3D"text/css" href=
=3D"cid:css-4aad4dc0-895f-4332-a1ae-ef6fdaa9c37c@mhtml.blink" /><link rel=
=3D"stylesheet" type=3D"text/css" href=3D"cid:css-ea21ab46-3ab4-4899-a8c4-9=
6737c9fd0f3@mhtml.blink" />
<!--[if lte IE 9]>
<script type=3D"text/javascript">
window.location =3D 'https://www.udacity.com/upgrade';
</script>
<![endif]-->
<title>Udacity Reviews</title>
=20
<link rel=3D"shortcut icon" href=3D"https://review.udacity.com/assets/i=
mages/favicon.ico">
<meta name=3D"description" content=3D"Discover online classes taught by=
top instructors and industry experts. Take courses at your own pace.">
<meta name=3D"robots" content=3D"noodp">
<!--
These properties are here so social shares of review pages works
properly. We decided to let them apply to every page on the site
because we only expect people to share the review pages.
Guidelines obtained from https://moz.com/blog/meta-data-templates-123
-->
<!-- facebook -->
<meta property=3D"og:title" content=3D"Look at my Udacity Project Feedb=
ack!">
<meta property=3D"og:description" content=3D"A review of my work and pe=
rsonalized tips to improve.">
<meta property=3D"og:image" content=3D"https://s3-us-west-1.amazonaws.c=
om/udacity-content/images/reviews/facebook-thumbnail-neutral.png ">
<!-- twitter -->
<meta name=3D"twitter:card" content=3D"summary_large_image">
<meta name=3D"twitter:site" content=3D"@udacity">
<meta name=3D"twitter:title" content=3D"Udacity Project Feedback">
<meta name=3D"twitter:description" content=3D"A review of my work and p=
ersonalized tips to improve.">
<!-- "Twitter Summary card images must be at least 120x120px" -->
<meta name=3D"twitter:image" content=3D"https://s3-us-west-1.amazonaws.=
com/udacity-content/images/reviews/twitter-thumbnail-neutral.png ">
<meta name=3D"application-name" content=3D"Udacity">
<meta name=3D"msapplication-TileColor" content=3D"#FFFFFF">
<meta name=3D"msapplication-TileImage" content=3D"assets/img/logos/udac=
ity/windows_tile/udacity-full-144x144.png">
<meta name=3D"google-site-verification" content=3D"ELX2btu3VElBKIdvkGj5=
ESBnJh_Dg9PnWjuCwVkPEkA">
<meta http-equiv=3D"X-UA-Compatible" content=3D"requiresActiveX=3Dtrue"=
>
<meta name=3D"viewport" content=3D"width=3Ddevice-width, initial-scale=
=3D1">
<link rel=3D"apple-touch-icon" href=3D"https://review.udacity.com/asset=
s/images/apple-touch-icon.png">
<link type=3D"text/plain" rel=3D"author" href=3D"http://udacity.com/hum=
ans.txt">
<link href=3D"https://fonts.googleapis.com/css?family=3DOpen+Sans:400,3=
00,600" rel=3D"stylesheet" type=3D"text/css">
<link href=3D"https://fonts.googleapis.com/css?family=3DRoboto:400,500,=
300,300italic,400italic,500italic,700,700italic" rel=3D"stylesheet" type=3D=
"text/css">
<link rel=3D"stylesheet" href=3D"https://review.udacity.com/assets/css/=
udacity-base.min.css" type=3D"text/css">
<!-- inject:css -->
<link rel=3D"stylesheet" href=3D"https://review.udacity.com/assets/grad=
ing_212ed872.css">
<!-- endinject -->
=20
=20
=20
<link href=3D"https://fonts.googleapis.com/css?family=3DSource+Sans+Pro:4=
00,600,700" rel=3D"stylesheet"><link href=3D"https://fonts.googleapis.com/c=
ss?family=3DMontserrat:600" rel=3D"stylesheet"><link href=3D"https://fonts.=
googleapis.com/css?family=3DOpen+Sans:400,600,700" rel=3D"stylesheet"></hea=
d>
<body data-modal-anti-scroll-helper=3D"" class=3D"responsive ng-scope" ng=
-controller=3D"MainCtrl as main" data-new-gr-c-s-check-loaded=3D"14.1012.0"=
data-gr-ext-installed=3D"">
<!-- ngInclude: main.pageContext.headerURL --><div ng-include=3D"main.p=
ageContext.headerURL" class=3D"ng-scope"><header class=3D"navbar site-nav n=
avbar-inverse navbar-static-top ng-scope"> <div class=3D"container"> <div c=
lass=3D"navbar-header"> <button type=3D"button" class=3D"navbar-toggle" dat=
a-toggle=3D"collapse" data-target=3D"#navbar-collapse"> <span class=3D"sr-o=
nly ng-scope" translate=3D"">Toggle navigation</span> <span class=3D"icon-b=
ar"></span> <span class=3D"icon-bar"></span> <span class=3D"icon-bar"></spa=
n> </button> <a class=3D"logo navbar-brand" href=3D"https://udacity.com/" i=
d=3D"header-logo"> <img alt=3D"Udacity Logo" src=3D"https://s3-us-west-1.am=
azonaws.com/udacity-content/rebrand/svg/logo.min.svg"> </a> </div> <nav cla=
ss=3D"navbar-collapse collapse text-center-xs" id=3D"navbar-collapse" role=
=3D"navigation"> <ul class=3D"nav navbar-nav navbar-right"> <!-- ngIf: isSt=
aff --> <!-- ngIf: isGrader --> <li> <a data-ng-click=3D"main.logout()" hre=
f=3D"https://review.udacity.com/?utm_campaign=3Dret_000_auto_ndxxx_submissi=
on-reviewed&utm_source=3Dblueshift&utm_medium=3Demail&utm_conte=
nt=3Dreviewsapp-submission-reviewed&bsft_clkid=3D58d5b78c-c59e-4305-8ca=
3-dacbf598fa8a&bsft_uid=3D9b0f6def-f27d-4a4d-bfbf-faf50d9ad4bd&bsft=
_mid=3D73a82af0-d2ba-49a6-aa37-a184f4979e58&bsft_eid=3D6f154690-7543-45=
82-9be7-e397af208dbd&bsft_txnid=3Dae94eab1-6119-4216-bdfe-cf7af7cb8cdf&=
amp;bsft_mime_type=3Dhtml&bsft_ek=3D2021-05-22T11%3A26%3A41Z&bsft_a=
aid=3D8d7e276e-4a10-41b2-8868-423fe96dd6b2&bsft_lx=3D2&bsft_tv=3D5"=
translate=3D"" class=3D"ng-scope">Logout</a> </li> </ul> <ul class=3D"nav =
navbar-nav navbar-right"> <li class=3D"dropdown"> <ul class=3D"dropdown-men=
u"> <a data-ng-click=3D"main.logout()" href=3D"https://review.udacity.com/?=
utm_campaign=3Dret_000_auto_ndxxx_submission-reviewed&utm_source=3Dblue=
shift&utm_medium=3Demail&utm_content=3Dreviewsapp-submission-review=
ed&bsft_clkid=3D58d5b78c-c59e-4305-8ca3-dacbf598fa8a&bsft_uid=3D9b0=
f6def-f27d-4a4d-bfbf-faf50d9ad4bd&bsft_mid=3D73a82af0-d2ba-49a6-aa37-a1=
84f4979e58&bsft_eid=3D6f154690-7543-4582-9be7-e397af208dbd&bsft_txn=
id=3Dae94eab1-6119-4216-bdfe-cf7af7cb8cdf&bsft_mime_type=3Dhtml&bsf=
t_ek=3D2021-05-22T11%3A26%3A41Z&bsft_aaid=3D8d7e276e-4a10-41b2-8868-423=
fe96dd6b2&bsft_lx=3D2&bsft_tv=3D5" translate=3D"" class=3D"ng-scope=
">Logout</a> </ul> </li> </ul> </nav> </div> </header> </div>
<div id=3D"page-content" data-qualaroo-survey-info-hack=3D"" role=3D"ma=
in">
<div loading-container=3D"" class=3D"container-fluid"><div ng-show=3D=
"loading" class=3D"row ng-hide" style=3D""> <div class=3D"col-sm-6 col-sm-o=
ffset-3 text-center"> <div class=3D"row row-gap-huge"></div> <img src=3D"ht=
tps://review.udacity.com/assets/images/loading.gif"> <div class=3D"row row-=
gap-huge"></div> </div> </div> <div ng-show=3D"!loading" class=3D"" style=
=3D""> <div ng-transclude=3D"">
<div class=3D"row row-gap-medium ng-scope ng-isolate-scope ng-hide =
fadeOutUp animated" ng-show=3D"!!message && !dismissed" ng-class=3D=
"{fadeInDown: !!message, fadeOutUp: dismissed, animated: !!message || dismi=
ssed}" alert-box=3D""> <div class=3D"col-md-offset-2 col-md-8"> <div class=
=3D"alert hr-slim alert-info"> <button type=3D"button" ng-click=3D"dismiss=
()" class=3D"close" aria-label=3D"Close"> <span aria-hidden=3D"true">=C3=97=
</span> </button> <span ng-bind-html=3D"message" class=3D"ng-binding"></spa=
n> </div> </div> </div>
<!-- uiView: --><div ui-view=3D"" autoscroll=3D"true" class=3D"ng-=
scope"><div class=3D"row ng-scope"> <div class=3D"col-xs-12 col-lg-10 col-l=
g-offset-1"> <!-- ngIf: submission.previous_submission_id --> <div class=3D=
"review-header"> <div class=3D"review-header__links"> <div> <a href=3D"http=
s://review.udacity.com/?utm_campaign=3Dret_000_auto_ndxxx_submission-review=
ed&utm_source=3Dblueshift&utm_medium=3Demail&utm_content=3Drevi=
ewsapp-submission-reviewed&bsft_clkid=3D58d5b78c-c59e-4305-8ca3-dacbf59=
8fa8a&bsft_uid=3D9b0f6def-f27d-4a4d-bfbf-faf50d9ad4bd&bsft_mid=3D73=
a82af0-d2ba-49a6-aa37-a184f4979e58&bsft_eid=3D6f154690-7543-4582-9be7-e=
397af208dbd&bsft_txnid=3Dae94eab1-6119-4216-bdfe-cf7af7cb8cdf&bsft_=
mime_type=3Dhtml&bsft_ek=3D2021-05-22T11%3A26%3A41Z&bsft_aaid=3D8d7=
e276e-4a10-41b2-8868-423fe96dd6b2&bsft_lx=3D2&bsft_tv=3D5" ng-click=
=3D"goToClassroomPath()" class=3D"course-link"> <span class=3D"arrow"></spa=
n> <span translate=3D"" class=3D"ng-scope">Return to Classroom</span>=
</a> </div> <div ng-show=3D"isStudentHubEligible()" class=3D"ng-hide"> <a =
href=3D"https://review.udacity.com/?utm_campaign=3Dret_000_auto_ndxxx_submi=
ssion-reviewed&utm_source=3Dblueshift&utm_medium=3Demail&utm_co=
ntent=3Dreviewsapp-submission-reviewed&bsft_clkid=3D58d5b78c-c59e-4305-=
8ca3-dacbf598fa8a&bsft_uid=3D9b0f6def-f27d-4a4d-bfbf-faf50d9ad4bd&b=
sft_mid=3D73a82af0-d2ba-49a6-aa37-a184f4979e58&bsft_eid=3D6f154690-7543=
-4582-9be7-e397af208dbd&bsft_txnid=3Dae94eab1-6119-4216-bdfe-cf7af7cb8c=
df&bsft_mime_type=3Dhtml&bsft_ek=3D2021-05-22T11%3A26%3A41Z&bsf=
t_aaid=3D8d7e276e-4a10-41b2-8868-423fe96dd6b2&bsft_lx=3D2&bsft_tv=
=3D5" ng-click=3D"goToStudentHubLink()" class=3D"course-link btn btn-second=
ary btn-sm" target=3D"_blank"> <img ng-src=3D"/assets/images/icon-student-h=
ub.svg" alt=3D"Student Hub chat icon" height=3D"24" width=3D"24" class=3D"s=
tudent-hub-icon" src=3D"https://review.udacity.com/assets/images/icon-stude=
nt-hub.svg"> <span translate=3D"" class=3D"ng-scope">Discuss on Student Hub=
</span> <span class=3D"arrow right white"></span> </a> </div> </div> =
<h1 class=3D"project-name-career-service ng-binding">Investigate a Relation=
al Database</h1> </div> <div class=3D"row row-gap-medium"></div> <div class=
=3D"review-container"> <ul class=3D"nav nav-tabs nav-justified ng-hide" ng-=
show=3D"isUngradeable()"> <li ng-class=3D"{'active': isCurrentTab('feedback=
')}" class=3D"" style=3D""> <a href=3D"https://review.udacity.com/?utm_camp=
aign=3Dret_000_auto_ndxxx_submission-reviewed&utm_source=3Dblueshift&am=
p;utm_medium=3Demail&utm_content=3Dreviewsapp-submission-reviewed&b=
sft_clkid=3D58d5b78c-c59e-4305-8ca3-dacbf598fa8a&bsft_uid=3D9b0f6def-f2=
7d-4a4d-bfbf-faf50d9ad4bd&bsft_mid=3D73a82af0-d2ba-49a6-aa37-a184f4979e=
58&bsft_eid=3D6f154690-7543-4582-9be7-e397af208dbd&bsft_txnid=3Dae9=
4eab1-6119-4216-bdfe-cf7af7cb8cdf&bsft_mime_type=3Dhtml&bsft_ek=3D2=
021-05-22T11%3A26%3A41Z&bsft_aaid=3D8d7e276e-4a10-41b2-8868-423fe96dd6b=
2&bsft_lx=3D2&bsft_tv=3D5" ng-click=3D"showTab('feedback')" class=
=3D"ng-binding">Review</a> </li> <li ng-class=3D"{'active': isCurrentTab('h=
istory')}" class=3D"" style=3D""> <a href=3D"https://review.udacity.com/?ut=
m_campaign=3Dret_000_auto_ndxxx_submission-reviewed&utm_source=3Dbluesh=
ift&utm_medium=3Demail&utm_content=3Dreviewsapp-submission-reviewed=
&bsft_clkid=3D58d5b78c-c59e-4305-8ca3-dacbf598fa8a&bsft_uid=3D9b0f6=
def-f27d-4a4d-bfbf-faf50d9ad4bd&bsft_mid=3D73a82af0-d2ba-49a6-aa37-a184=
f4979e58&bsft_eid=3D6f154690-7543-4582-9be7-e397af208dbd&bsft_txnid=
=3Dae94eab1-6119-4216-bdfe-cf7af7cb8cdf&bsft_mime_type=3Dhtml&bsft_=
ek=3D2021-05-22T11%3A26%3A41Z&bsft_aaid=3D8d7e276e-4a10-41b2-8868-423fe=
96dd6b2&bsft_lx=3D2&bsft_tv=3D5" ng-click=3D"showTab('history')" cl=
ass=3D"ng-binding">History</a> </li> <!-- ngIf: plagiarismCaseTabState.visi=
ble --> </ul> <ul class=3D"nav nav-tabs nav-justified" ng-hide=3D"isUngrade=
able()"> <!-- ngIf: hasFeedback --><li ng-if=3D"hasFeedback" ng-class=3D"{'=
active': isCurrentTab('feedback')}" class=3D"ng-scope" style=3D""> <a href=
=3D"https://review.udacity.com/?utm_campaign=3Dret_000_auto_ndxxx_submissio=
n-reviewed&utm_source=3Dblueshift&utm_medium=3Demail&utm_conten=
t=3Dreviewsapp-submission-reviewed&bsft_clkid=3D58d5b78c-c59e-4305-8ca3=
-dacbf598fa8a&bsft_uid=3D9b0f6def-f27d-4a4d-bfbf-faf50d9ad4bd&bsft_=
mid=3D73a82af0-d2ba-49a6-aa37-a184f4979e58&bsft_eid=3D6f154690-7543-458=
2-9be7-e397af208dbd&bsft_txnid=3Dae94eab1-6119-4216-bdfe-cf7af7cb8cdf&a=
mp;bsft_mime_type=3Dhtml&bsft_ek=3D2021-05-22T11%3A26%3A41Z&bsft_aa=
id=3D8d7e276e-4a10-41b2-8868-423fe96dd6b2&bsft_lx=3D2&bsft_tv=3D5" =
ng-click=3D"showTab('feedback')" class=3D"ng-binding">Review</a> </li><!-- =
end ngIf: hasFeedback --> <!-- ngIf: showCode --><li ng-if=3D"showCode" ng-=
class=3D"{'active': isCurrentTab('code')}" class=3D"ng-scope active" style=
=3D""> <a href=3D"https://review.udacity.com/?utm_campaign=3Dret_000_auto_n=
dxxx_submission-reviewed&utm_source=3Dblueshift&utm_medium=3Demail&=
amp;utm_content=3Dreviewsapp-submission-reviewed&bsft_clkid=3D58d5b78c-=
c59e-4305-8ca3-dacbf598fa8a&bsft_uid=3D9b0f6def-f27d-4a4d-bfbf-faf50d9a=
d4bd&bsft_mid=3D73a82af0-d2ba-49a6-aa37-a184f4979e58&bsft_eid=3D6f1=
54690-7543-4582-9be7-e397af208dbd&bsft_txnid=3Dae94eab1-6119-4216-bdfe-=
cf7af7cb8cdf&bsft_mime_type=3Dhtml&bsft_ek=3D2021-05-22T11%3A26%3A4=
1Z&bsft_aaid=3D8d7e276e-4a10-41b2-8868-423fe96dd6b2&bsft_lx=3D2&=
;bsft_tv=3D5" ng-click=3D"showTab('code')" class=3D"ng-binding"> Code Revie=
w <!-- ngIf: commentsCount > 0 --><span ng-if=3D"commentsCount > 0" c=
lass=3D"badge badge-info text-center ng-binding ng-scope"> 4 </span><!-- en=
d ngIf: commentsCount > 0 --> </a> </li><!-- end ngIf: showCode --> <!-- ng=
If: annotation_link --> <li ng-class=3D"{'active': isCurrentTab('history')}=
" class=3D"" style=3D""> <a href=3D"https://review.udacity.com/?utm_campaig=
n=3Dret_000_auto_ndxxx_submission-reviewed&utm_source=3Dblueshift&u=
tm_medium=3Demail&utm_content=3Dreviewsapp-submission-reviewed&bsft=
_clkid=3D58d5b78c-c59e-4305-8ca3-dacbf598fa8a&bsft_uid=3D9b0f6def-f27d-=
4a4d-bfbf-faf50d9ad4bd&bsft_mid=3D73a82af0-d2ba-49a6-aa37-a184f4979e58&=
amp;bsft_eid=3D6f154690-7543-4582-9be7-e397af208dbd&bsft_txnid=3Dae94ea=
b1-6119-4216-bdfe-cf7af7cb8cdf&bsft_mime_type=3Dhtml&bsft_ek=3D2021=
-05-22T11%3A26%3A41Z&bsft_aaid=3D8d7e276e-4a10-41b2-8868-423fe96dd6b2&a=
mp;bsft_lx=3D2&bsft_tv=3D5" ng-click=3D"showTab('history')" class=3D"ng=
-binding">History</a> </li> <!-- ngIf: userCanCreateAudits() && !auditTabSt=
ate.visible --> <!-- ngIf: auditTabState.visible --> <!-- ngIf: plagiarismC=
aseTabState.visible --> </ul> <div class=3D"row review-tab-body"> <div clas=
s=3D"col-sm-10 col-sm-offset-1"> <div ng-show=3D"isUngradeable()" class=3D"=
ng-hide"> <div class=3D"row row-gap-medium"></div> <section ng-show=3D"isCu=
rrentTab('feedback')" class=3D"ng-hide" style=3D""> <div class=3D"ungradeab=
le-tab"> <h2 class=3D"result-label ng-scope" translate=3D"">Unable to revie=
w</h2> <div ng-hide=3D"submission.ungradeable_tag =3D=3D=3D 'plagiarism'" c=
lass=3D""> <p class=3D"ungradeable-info ng-scope" translate=3D"">Your proje=
ct could not be reviewed. Please resubmit after you address the issue noted=
below by the reviewer.</p> <p class=3D"result-reason ng-isolate-scope" mar=
ked=3D"submission.result_reason"></p> </div> <div ng-show=3D"submission.ung=
radeable_tag =3D=3D=3D 'plagiarism'" class=3D"ng-hide"> <p class=3D"ungrade=
able-info"> <span translate=3D"" class=3D"ng-scope">Key parts of your submi=
ssion were the same as another student's submission or an online source.</s=
pan> <span>Please resubmit after you address the issue noted below by the r=
eviewer.</span> </p> <p class=3D"ungradeable-info ng-hide" ng-show=3D"submi=
ssion.plagiarism_source_url"> </p><h4 translate=3D"" style=3D"display: inli=
ne;" class=3D"ng-scope">Potential Source URL:</h4> <a href=3D"https://revie=
w.udacity.com/?utm_campaign=3Dret_000_auto_ndxxx_submission-reviewed&ut=
m_source=3Dblueshift&utm_medium=3Demail&utm_content=3Dreviewsapp-su=
bmission-reviewed&bsft_clkid=3D58d5b78c-c59e-4305-8ca3-dacbf598fa8a&=
;bsft_uid=3D9b0f6def-f27d-4a4d-bfbf-faf50d9ad4bd&bsft_mid=3D73a82af0-d2=
ba-49a6-aa37-a184f4979e58&bsft_eid=3D6f154690-7543-4582-9be7-e397af208d=
bd&bsft_txnid=3Dae94eab1-6119-4216-bdfe-cf7af7cb8cdf&bsft_mime_type=
=3Dhtml&bsft_ek=3D2021-05-22T11%3A26%3A41Z&bsft_aaid=3D8d7e276e-4a1=
0-41b2-8868-423fe96dd6b2&bsft_lx=3D2&bsft_tv=3D5" class=3D"ng-bindi=
ng"></a> <p></p> <p class=3D"result-reason ng-isolate-scope" marked=3D"subm=
ission.result_reason"></p> </div> <div class=3D"row row-gap-small"></div> <=
!-- ngIf: isResubmittable() --> <!-- ngIf: submission.archive_url --><div n=
g-if=3D"submission.archive_url" class=3D"row row-gap-small ng-scope" style=
=3D""> <div class=3D"col-xs-12 text-center wide-and-bold"> <a href=3D"https=
://review-api.udacity.com/api/v1/submissions/2950373/archive" download=3D""=
class=3D"ng-binding"><img src=3D"https://review.udacity.com/assets/images/=
download-icon.svg" class=3D"img-initial icon-medium">Download project files=
</a> </div> </div><!-- end ngIf: submission.archive_url --> <!-- ngIf: subm=
ission.url --> <div class=3D"row row-gap-small"> </div> </div> </secti=
on> <section ng-show=3D"isCurrentTab('history')" class=3D"ng-hide" style=3D=
""> <!-- ngIf: pastReviews !=3D=3D undefined --><div reviews-list=3D"" ng-i=
f=3D"pastReviews !=3D=3D undefined" reviews=3D"pastReviews" this-review=3D"=
submission" class=3D"ng-scope ng-isolate-scope"><h2 class=3D"review-list-na=
me current-review-name h-slim"> <!-- ngIf: thisReview.status !=3D=3D 'cance=
led' --><span ng-if=3D"thisReview.status !=3D=3D 'canceled'" class=3D"ng-bi=
nding ng-scope" style=3D""> Review #1 </span><!-- end ngIf: thisReview.stat=
us !=3D=3D 'canceled' --> <!-- ngIf: thisReview.status =3D=3D=3D 'canceled'=
--> <span class=3D"ng-binding"> (this review)</span> </h2> <!-- ngIf: this=
Review.completed_at --><small class=3D"text-muted ng-scope" ng-if=3D"thisRe=
view.completed_at" style=3D""> <!-- ngIf: thisReview.status !=3D=3D 'cancel=
ed' --><span ng-if=3D"thisReview.status !=3D=3D 'canceled'" translate=3D"" =
class=3D"ng-scope">Reviewed</span><!-- end ngIf: thisReview.status !=3D=3D =
'canceled' --> <!-- ngIf: thisReview.status =3D=3D=3D 'canceled' --> <span>=
<span am-time-ago=3D"thisReview.completed_at">1 week ago</span></span> </s=
mall><!-- end ngIf: thisReview.completed_at --> <!-- ngIf: !thisReview.comp=
leted_at --> <div class=3D"text-uppercase submission-notes-header ng-scope"=
translate=3D"">student notes</div> <div class=3D"submission-notes ng-isola=
te-scope" marked=3D"thisReview.notes || '_None provided_'"><p><em>None prov=
ided</em></p>
</div> <!-- ngIf: filteredReviews.length > 1 --> <!-- ngRepeat: review in f=
ilteredReviews --><!-- ngIf: filteredReviews.length > 1 --><!-- end ngRepea=
t: review in filteredReviews --> <!-- ngIf: errorMessage --> <div class=3D"=
row row-gap-large"></div> </div><!-- end ngIf: pastReviews !=3D=3D undefine=
d --> </section> </div> <div ng-hide=3D"isUngradeable()" class=3D""> <div c=
lass=3D"row row-gap-medium"></div> <section ng-show=3D"isCurrentTab('histor=
y')" class=3D"ng-hide" style=3D""> <!-- ngIf: pastReviews !=3D=3D undefined=
--><div reviews-list=3D"" ng-if=3D"pastReviews !=3D=3D undefined" reviews=
=3D"pastReviews" this-review=3D"submission" is-career=3D"currentProject.is_=
career" class=3D"ng-scope ng-isolate-scope"><h2 class=3D"review-list-name c=
urrent-review-name h-slim"> <!-- ngIf: thisReview.status !=3D=3D 'canceled'=
--><span ng-if=3D"thisReview.status !=3D=3D 'canceled'" class=3D"ng-bindin=
g ng-scope" style=3D""> Review #1 </span><!-- end ngIf: thisReview.status !=
=3D=3D 'canceled' --> <!-- ngIf: thisReview.status =3D=3D=3D 'canceled' -->=
<span class=3D"ng-binding"> (this review)</span> </h2> <!-- ngIf: thisRevi=
ew.completed_at --><small class=3D"text-muted ng-scope" ng-if=3D"thisReview=
.completed_at" style=3D""> <!-- ngIf: thisReview.status !=3D=3D 'canceled' =
--><span ng-if=3D"thisReview.status !=3D=3D 'canceled'" translate=3D"" clas=
s=3D"ng-scope">Reviewed</span><!-- end ngIf: thisReview.status !=3D=3D 'can=
celed' --> <!-- ngIf: thisReview.status =3D=3D=3D 'canceled' --> <span> <sp=
an am-time-ago=3D"thisReview.completed_at">1 week ago</span></span> </small=
><!-- end ngIf: thisReview.completed_at --> <!-- ngIf: !thisReview.complete=
d_at --> <div class=3D"text-uppercase submission-notes-header ng-scope" tra=
nslate=3D"">student notes</div> <div class=3D"submission-notes ng-isolate-s=
cope" marked=3D"thisReview.notes || '_None provided_'"><p><em>None provided=
</em></p>
</div> <!-- ngIf: filteredReviews.length > 1 --> <!-- ngRepeat: review in f=
ilteredReviews --><!-- ngIf: filteredReviews.length > 1 --><!-- end ngRepea=
t: review in filteredReviews --> <!-- ngIf: errorMessage --> <div class=3D"=
row row-gap-large"></div> </div><!-- end ngIf: pastReviews !=3D=3D undefine=
d --> </section> <section class=3D"code-section" ng-show=3D"isCurrentTab('c=
ode')" style=3D""> <!-- ngIf: files && currentRubric --><div code-review=3D=
"" ng-if=3D"files && currentRubric" files=3D"files" rubric=3D"curre=
ntRubric" allow-comments=3D"false" class=3D"ng-scope ng-isolate-scope"><div=
ng-show=3D"allowComments" class=3D"ng-hide" style=3D""> <input type=3D"tex=
t" class=3D"form-control ng-pristine ng-untouched ng-valid ng-empty" ng-mod=
el=3D"filterPattern" placeholder=3D"File filter (e.g. "readme.md"=
, ".css", "src/lib/*.js")" aria-label=3D"File filter" s=
tyle=3D""> <div class=3D"row row-gap-small"></div> </div> <!-- ngRepeat: fi=
le in files --><div class=3D"code-section-item ng-scope" ng-repeat=3D"file =
in files" ng-show=3D"isFileVisible(file)" style=3D""> <div class=3D"code-se=
ction-item-title" ng-click=3D"setCurrentFileIndex($index)"> <small> <span n=
g-class=3D"{'glyphicon-triangle-right': currentFileIndex !=3D=3D $index, 'g=
lyphicon-triangle-bottom': currentFileIndex =3D=3D=3D $index}" class=3D"gly=
phicon glyphicon-triangle-bottom" style=3D""> </span> </small> <strong clas=
s=3D"ng-binding">queries.txt</strong> <!-- ngIf: file.comments_count > 0 --=
><span ng-if=3D"file.comments_count > 0" class=3D"badge badge-info text-cen=
ter ng-binding ng-scope"> 4 </span><!-- end ngIf: file.comments_count > 0 -=
-> </div> <!-- ngIf: currentFileIndex =3D=3D=3D $index --><div class=3D"cod=
e-section-item-body ng-scope" ng-if=3D"currentFileIndex =3D=3D=3D $index" s=
tyle=3D""> <div mirror=3D"" file=3D"file" allow-comments=3D"allowComments" =
class=3D"ng-isolate-scope"><div ng-show=3D"isLoading" class=3D"loading ng-h=
ide" style=3D""> </div> <div class=3D"code-mirror-holder" ui-codemirror=3D"=
{ onLoad: codeMirrorLoaded }" ui-codemirror-opts=3D"generateEditorOptions(f=
ile)" ng-hide=3D"isLoading" style=3D""><div class=3D"CodeMirror cm-s-mbo"><=
div style=3D"overflow: hidden; position: relative; width: 3px; height: 0px;=
top: 4px; left: 48px;"><textarea autocorrect=3D"off" autocapitalize=3D"off=
" spellcheck=3D"false" style=3D"position: absolute; padding: 0px; width: 10=
00px; height: 1em; outline: none;" tabindex=3D"0"></textarea></div><div cla=
ss=3D"CodeMirror-vscrollbar" cm-not-content=3D"true" style=3D"bottom: 0px;"=
><div style=3D"min-width: 1px; height: 0px;"></div></div><div class=3D"Code=
Mirror-hscrollbar" cm-not-content=3D"true" style=3D"right: 0px; left: 44px;=
display: block;"><div style=3D"height: 100%; min-height: 1px; width: 1838.=
96px;"></div></div><div class=3D"CodeMirror-scrollbar-filler" cm-not-conten=
t=3D"true" style=3D"height: 16px; width: 16px;"></div><div class=3D"CodeMir=
ror-gutter-filler" cm-not-content=3D"true"></div><div class=3D"CodeMirror-s=
croll" tabindex=3D"-1"><div class=3D"CodeMirror-sizer" style=3D"margin-left=
: 44px; margin-bottom: -16px; border-right-width: 14px; min-width: 1838.96p=
x; min-height: 3164px; padding-right: 0px; padding-bottom: 16px;"><div styl=
e=3D"position: relative; top: 0px;"><div class=3D"CodeMirror-lines"><div st=
yle=3D"position: relative; outline: none;"><div class=3D"CodeMirror-measure=
"><div class=3D"CodeMirror-linenumber CodeMirror-gutter-elt"><div>107</div>=
</div></div><div class=3D"CodeMirror-measure"></div><div style=3D"position:=
relative; z-index: 1;"></div><div class=3D"CodeMirror-cursors"><div class=
=3D"CodeMirror-cursor" style=3D"left: 4px; top: 0px; height: 16px;"> <=
/div></div><div class=3D"CodeMirror-code" style=3D""><div style=3D"position=
: relative;"><div class=3D"CodeMirror-gutter-wrapper" style=3D"left: -44px;=
width: 44px;"><div class=3D"CodeMirror-linenumber CodeMirror-gutter-elt" s=
tyle=3D"left: 0px; width: 36px;">1</div></div><pre class=3D""><span style=
=3D"padding-right: 0.1px;"><span cm-text=3D"">=E2=80=8B</span></span></pre>=
</div><div style=3D"position: relative;"><div class=3D"CodeMirror-gutter-wr=
apper" style=3D"left: -44px; width: 44px;"><div class=3D"CodeMirror-linenum=
ber CodeMirror-gutter-elt" style=3D"left: 0px; width: 36px;">2</div></div><=
pre class=3D""><span style=3D"padding-right: 0.1px;">/*Question 1:</span></=
pre></div><div style=3D"position: relative;"><div class=3D"CodeMirror-gutte=
r-wrapper" style=3D"left: -44px; width: 44px;"><div class=3D"CodeMirror-lin=
enumber CodeMirror-gutter-elt" style=3D"left: 0px; width: 36px;">3</div></d=
iv><pre class=3D""><span style=3D"padding-right: 0.1px;">We want to underst=
and more about the movies that families are watching. The following categor=
ies are considered family movies: Animation, Children, Classics, Comedy, Fa=
mily and Music.</span></pre></div><div style=3D"position: relative;"><div c=
lass=3D"CodeMirror-gutter-wrapper" style=3D"left: -44px; width: 44px;"><div=
class=3D"CodeMirror-linenumber CodeMirror-gutter-elt" style=3D"left: 0px; =
width: 36px;">4</div></div><pre class=3D""><span style=3D"padding-right: 0.=
1px;"><span cm-text=3D"">=E2=80=8B</span></span></pre></div><div style=3D"p=
osition: relative;"><div class=3D"CodeMirror-gutter-wrapper" style=3D"left:=
-44px; width: 44px;"><div class=3D"CodeMirror-linenumber CodeMirror-gutter=
-elt" style=3D"left: 0px; width: 36px;">5</div></div><pre class=3D""><span =
style=3D"padding-right: 0.1px;">Create a query that lists each movie, the f=
ilm category it is classified in, and the number of times it has been rente=
d out.</span></pre></div><div style=3D"position: relative;"><div class=3D"C=
odeMirror-gutter-wrapper" style=3D"left: -44px; width: 44px;"><div class=3D=
"CodeMirror-linenumber CodeMirror-gutter-elt" style=3D"left: 0px; width: 36=
px;">6</div></div><pre class=3D""><span style=3D"padding-right: 0.1px;"><sp=
an cm-text=3D"">=E2=80=8B</span></span></pre></div><div style=3D"position: =
relative;"><div class=3D"CodeMirror-gutter-wrapper" style=3D"left: -44px; w=
idth: 44px;"><div class=3D"CodeMirror-linenumber CodeMirror-gutter-elt" sty=
le=3D"left: 0px; width: 36px;">7</div></div><pre class=3D""><span style=3D"=
padding-right: 0.1px;">Query 1</span></pre></div><div style=3D"position: re=
lative;"><div class=3D"CodeMirror-gutter-wrapper" style=3D"left: -44px; wid=
th: 44px;"><div class=3D"CodeMirror-linenumber CodeMirror-gutter-elt" style=
=3D"left: 0px; width: 36px;">8</div></div><pre class=3D""><span style=3D"pa=
dding-right: 0.1px;">*/</span></pre></div><div style=3D"position: relative;=
"><div class=3D"CodeMirror-gutter-wrapper" style=3D"left: -44px; width: 44p=
x;"><div class=3D"CodeMirror-linenumber CodeMirror-gutter-elt" style=3D"lef=
t: 0px; width: 36px;">9</div></div><pre class=3D""><span style=3D"padding-r=
ight: 0.1px;">SELECT</span></pre></div><div style=3D"position: relative;"><=
div class=3D"CodeMirror-gutter-wrapper" style=3D"left: -44px; width: 44px;"=
><div class=3D"CodeMirror-linenumber CodeMirror-gutter-elt" style=3D"left: =
0px; width: 36px;">10</div></div><pre class=3D""><span style=3D"padding-rig=
ht: 0.1px;"> film.title film_title,</span></pre></div><div style=3D"positi=
on: relative;"><div class=3D"CodeMirror-gutter-wrapper" style=3D"left: -44p=
x; width: 44px;"><div class=3D"CodeMirror-linenumber CodeMirror-gutter-elt"=
style=3D"left: 0px; width: 36px;">11</div></div><pre class=3D""><span styl=
e=3D"padding-right: 0.1px;"> category.name category_name,</span></pre></di=
v><div style=3D"position: relative;"><div class=3D"CodeMirror-gutter-wrappe=
r" style=3D"left: -44px; width: 44px;"><div class=3D"CodeMirror-linenumber =
CodeMirror-gutter-elt" style=3D"left: 0px; width: 36px;">12</div></div><pre=
class=3D""><span style=3D"padding-right: 0.1px;"> SUM(rental.rental_id)</=
span></pre></div><div style=3D"position: relative;"><div class=3D"CodeMirro=
r-gutter-wrapper" style=3D"left: -44px; width: 44px;"><div class=3D"CodeMir=
ror-linenumber CodeMirror-gutter-elt" style=3D"left: 0px; width: 36px;">13<=
/div></div><pre class=3D""><span style=3D"padding-right: 0.1px;">FROM film<=
/span></pre></div><div style=3D"position: relative;"><div class=3D"CodeMirr=
or-gutter-wrapper" style=3D"left: -44px; width: 44px;"><div class=3D"CodeMi=
rror-linenumber CodeMirror-gutter-elt" style=3D"left: 0px; width: 36px;">14=
</div></div><pre class=3D""><span style=3D"padding-right: 0.1px;">JOIN film=
_category</span></pre></div><div style=3D"position: relative;"><div class=
=3D"CodeMirror-gutter-wrapper" style=3D"left: -44px; width: 44px;"><div cla=
ss=3D"CodeMirror-linenumber CodeMirror-gutter-elt" style=3D"left: 0px; widt=
h: 36px;">15</div></div><pre class=3D""><span style=3D"padding-right: 0.1px=
;"> ON film.film_id =3D film_category.film_id</span></pre></div><div style=
=3D"position: relative;"><div class=3D"CodeMirror-gutter-wrapper" style=3D"=
left: -44px; width: 44px;"><div class=3D"CodeMirror-linenumber CodeMirror-g=
utter-elt" style=3D"left: 0px; width: 36px;">16</div></div><pre class=3D"">=
<span style=3D"padding-right: 0.1px;">JOIN category</span></pre></div><div =
style=3D"position: relative;"><div class=3D"CodeMirror-gutter-wrapper" styl=
e=3D"left: -44px; width: 44px;"><div class=3D"CodeMirror-linenumber CodeMir=
ror-gutter-elt" style=3D"left: 0px; width: 36px;">17</div></div><pre class=
=3D""><span style=3D"padding-right: 0.1px;"> ON category.category_id =3D f=
ilm_category.category_id</span></pre></div><div style=3D"position: relative=
;"><div class=3D"CodeMirror-gutter-wrapper" style=3D"left: -44px; width: 44=
px;"><div class=3D"CodeMirror-linenumber CodeMirror-gutter-elt" style=3D"le=
ft: 0px; width: 36px;">18</div></div><pre class=3D""><span style=3D"padding=
-right: 0.1px;">JOIN rental</span></pre></div><div style=3D"position: relat=
ive;"><div class=3D"CodeMirror-gutter-wrapper" style=3D"left: -44px; width:=
44px;"><div class=3D"CodeMirror-linenumber CodeMirror-gutter-elt" style=3D=
"left: 0px; width: 36px;">19</div></div><pre class=3D""><span style=3D"padd=
ing-right: 0.1px;"> ON rental.rental_id =3D film.film_id</span></pre><div =
class=3D"CodeMirror-linewidget" cm-ignore-events=3D"true" style=3D"left: -4=
4px; width: 807px; z-index: 5; position: relative;"><div id=3D"comment-wrap=
per-18"><div code-comment=3D"" line=3D"18" content-id=3D"97335055" editable=
=3D"false" body=3D"The join between the rental & film tables is incorre=
ct. When you join on non-matching fields, it results in wrong results.
Here's how you should join the two tables:
```
SELECT
f.title film_title,
c.name category_name,
COUNT(r.rental_id)
FROM film AS f
JOIN film_category AS fc
ON f.film_id =3D fc.film_id
JOIN category AS c
ON fc.category_id =3D c.category_id
JOIN inventory AS i
ON f.film_id =3D i.film_id
JOIN rental AS r
ON i.inventory_id =3D r.inventory_id
WHERE c.name IN
('Animation','Classics','Children','Comedy','Family','Music')
GROUP BY 1,
2
ORDER BY 2, 1;
```" category=3D"nitpick" comment-id=3D"5873985" class=3D"ng-scope ng-isola=
te-scope"><div class=3D"comment-container nitpick"> <ng-form name=3D"commen=
tForm" class=3D"ng-pristine ng-valid ng-valid-required"> <div ng-hide=3D"ed=
iting" class=3D"comment-viewer"> <div class=3D"comment clearfix"> <div clas=
s=3D"pill pill-nitpick"><span translate=3D"" class=3D"ng-scope ng-binding">=
Suggestion</span></div> <div class=3D"inline-comment ng-isolate-scope" mark=
ed=3D"body"><p>The join between the rental & film tables is incorrect. =
When you join on non-matching fields, it results in wrong results.</p>
<p>Here's how you should join the two tables:</p>
<pre><code><span class=3D"hljs-operator"><span class=3D"hljs-keyword">SELEC=
T</span>
f.title film_title,
c.name category_name,
<span class=3D"hljs-keyword">COUNT</span>(r.rental_id)
<span class=3D"hljs-keyword">FROM</span> film <span class=3D"hljs-keyword">=
AS</span> f
<span class=3D"hljs-keyword">JOIN</span> film_category <span class=3D"hljs-=
keyword">AS</span> fc
<span class=3D"hljs-keyword">ON</span> f.film_id =3D fc.film_id
<span class=3D"hljs-keyword">JOIN</span> category <span class=3D"hljs-keywo=
rd">AS</span> c
<span class=3D"hljs-keyword">ON</span> fc.category_id =3D c.category_id
<span class=3D"hljs-keyword">JOIN</span> inventory <span class=3D"hljs-keyw=
ord">AS</span> i
<span class=3D"hljs-keyword">ON</span> f.film_id =3D i.film_id
<span class=3D"hljs-keyword">JOIN</span> rental <span class=3D"hljs-keyword=
">AS</span> r
<span class=3D"hljs-keyword">ON</span> i.inventory_id =3D r.inventory_id
<span class=3D"hljs-keyword">WHERE</span> c.name <span class=3D"hljs-keywor=
d">IN</span>
(<span class=3D"hljs-string">'Animation'</span>,<span class=3D"hljs-string"=
>'Classics'</span>,<span class=3D"hljs-string">'Children'</span>,<span clas=
s=3D"hljs-string">'Comedy'</span>,<span class=3D"hljs-string">'Family'</spa=
n>,<span class=3D"hljs-string">'Music'</span>)
<span class=3D"hljs-keyword">GROUP</span> <span class=3D"hljs-keyword">BY</=
span> <span class=3D"hljs-number">1</span>,
<span class=3D"hljs-number">2</span>
<span class=3D"hljs-keyword">ORDER</span> <span class=3D"hljs-keyword">BY</=
span> <span class=3D"hljs-number">2</span>, <span class=3D"hljs-number">1</=
span>;</span>
</code></pre></div> </div> <!-- ngIf: editable --> </div> <div ng-show=3D"e=
diting" class=3D"comment-editor ng-hide"> <div class=3D"category-inputs"> <=
!-- ngRepeat: categoryInfo in categories --><label ng-repeat=3D"categoryInf=
o in categories" class=3D"ng-binding ng-scope"> <input type=3D"radio" requi=
red=3D"" name=3D"category" ng-model=3D"modifiedComment.category" ng-value=
=3D"categoryInfo.value" class=3D"ng-pristine ng-untouched ng-valid ng-not-e=
mpty ng-valid-required" value=3D"critical"> Required </label><!-- en=
d ngRepeat: categoryInfo in categories --><label ng-repeat=3D"categoryInfo =
in categories" class=3D"ng-binding ng-scope"> <input type=3D"radio" require=
d=3D"" name=3D"category" ng-model=3D"modifiedComment.category" ng-value=3D"=
categoryInfo.value" class=3D"ng-pristine ng-untouched ng-valid ng-not-empty=
ng-valid-required" value=3D"nitpick"> Suggestion </label><!-- end n=
gRepeat: categoryInfo in categories --><label ng-repeat=3D"categoryInfo in =
categories" class=3D"ng-binding ng-scope"> <input type=3D"radio" required=
=3D"" name=3D"category" ng-model=3D"modifiedComment.category" ng-value=3D"c=
ategoryInfo.value" class=3D"ng-pristine ng-untouched ng-valid ng-not-empty =
ng-valid-required" value=3D"awesome"> Awesome </label><!-- end ngRep=
eat: categoryInfo in categories --> </div> <!-- ngIf: !!modifiedComment.cat=
egory --><div ng-if=3D"!!modifiedComment.category" class=3D"ng-scope"> <div=
class=3D"form-group"> <div class=3D"row row-gap-small"></div> <div markdow=
n-textarea=3D"" form=3D"commentForm" class=3D"ng-isolate-scope"><div ngf-dr=
op=3D"" ng-model=3D"files" ngf-multiple=3D"true" ngf-allow-dir=3D"false" ng=
f-max-size=3D"maxSize" ngf-accept=3D"accept" accept=3D"image/*,.pdf" ngf-dr=
ag-over-class=3D"{accept:'dragover', reject:'dragover-reject', delay:100}" =
class=3D"drop-box ng-pristine ng-untouched ng-valid ng-empty"> <div ng-tran=
sclude=3D""> <textarea rows=3D"4" required=3D"" class=3D"form-control ng-pr=
istine ng-untouched ng-valid ng-binding ng-scope ng-not-empty ng-valid-requ=
ired" type=3D"text" name=3D"comment" ng-model=3D"modifiedComment.body" plac=
eholder=3D"Write something about this line of code...">The join between the=
rental & film tables is incorrect. When you join on non-matching field=
s, it results in wrong results.
Here's how you should join the two tables:
```
SELECT
f.title film_title,
c.name category_name,
COUNT(r.rental_id)
FROM film AS f
JOIN film_category AS fc
ON f.film_id =3D fc.film_id
JOIN category AS c
ON fc.category_id =3D c.category_id
JOIN inventory AS i
ON f.film_id =3D i.film_id
JOIN rental AS r
ON i.inventory_id =3D r.inventory_id
WHERE c.name IN
('Animation','Classics','Children','Comedy','Family','Music')
GROUP BY 1,
2
ORDER BY 2, 1;
```</textarea> </div> <p class=3D"caption ng-binding"> Attach images (.png,=
.gif, .jpg) by dragging and dropping or selecting them (10 MB limit). <a h=
ref=3D"https://review.udacity.com/?utm_campaign=3Dret_000_auto_ndxxx_submis=
sion-reviewed&utm_source=3Dblueshift&utm_medium=3Demail&utm_con=
tent=3Dreviewsapp-submission-reviewed&bsft_clkid=3D58d5b78c-c59e-4305-8=
ca3-dacbf598fa8a&bsft_uid=3D9b0f6def-f27d-4a4d-bfbf-faf50d9ad4bd&bs=
ft_mid=3D73a82af0-d2ba-49a6-aa37-a184f4979e58&bsft_eid=3D6f154690-7543-=
4582-9be7-e397af208dbd&bsft_txnid=3Dae94eab1-6119-4216-bdfe-cf7af7cb8cd=
f&bsft_mime_type=3Dhtml&bsft_ek=3D2021-05-22T11%3A26%3A41Z&bsft=
_aaid=3D8d7e276e-4a10-41b2-8868-423fe96dd6b2&bsft_lx=3D2&bsft_tv=3D=
5" ngf-select=3D"" ngf-accept=3D"accept" accept=3D"image/*,.pdf" ng-model=
=3D"files" ngf-multiple=3D"true" class=3D"ng-pristine ng-untouched ng-valid=
ng-binding ng-empty"> Browse files. </a> <br> <a href=3D"https://guides.gi=
thub.com/features/mastering-markdown/" target=3D"_blank">Markdown supported=
.</a> </p> <!-- ngIf: errorMessage --> </div> </div> </div> <div class=3D"r=
ow row-buttons"> <div class=3D"col-xs-12"> <button type=3D"button" class=3D=
"btn btn-primary ng-isolate-scope" busy-click=3D"submitComment()" ng-disabl=
ed=3D"commentForm.$invalid"> <span class=3D"glyphicon glyphicon-ok"></span>=
<span translate=3D"Save & Preview" class=3D"ng-scope">Save &=
Preview</span> </button> <!-- ngIf: !isNewComment() --><button ng-if=3D"!i=
sNewComment()" type=3D"button" class=3D"btn btn-default ng-binding ng-scope=
" ng-click=3D"deleteComment()"> <span class=3D"glyphicon glyphicon-trash"><=
/span> Delete </button><!-- end ngIf: !isNewComment() --> <button typ=
e=3D"button" class=3D"btn btn-default ng-binding" ng-click=3D"cancelComment=
()">Cancel</button> </div> </div> </div><!-- end ngIf: !!modifiedComment.ca=
tegory --> </div> </ng-form> </div> </div></div></div></div><div style=3D"p=
osition: relative;"><div class=3D"CodeMirror-gutter-wrapper" style=3D"left:=
-44px; width: 44px;"><div class=3D"CodeMirror-linenumber CodeMirror-gutter=
-elt" style=3D"left: 0px; width: 36px;">20</div></div><pre class=3D""><span=
style=3D"padding-right: 0.1px;">GROUP BY 1,</span></pre></div><div style=
=3D"position: relative;"><div class=3D"CodeMirror-gutter-wrapper" style=3D"=
left: -44px; width: 44px;"><div class=3D"CodeMirror-linenumber CodeMirror-g=
utter-elt" style=3D"left: 0px; width: 36px;">21</div></div><pre class=3D"">=
<span style=3D"padding-right: 0.1px;"> 2</span></pre></div><div sty=
le=3D"position: relative;"><div class=3D"CodeMirror-gutter-wrapper" style=
=3D"left: -44px; width: 44px;"><div class=3D"CodeMirror-linenumber CodeMirr=
or-gutter-elt" style=3D"left: 0px; width: 36px;">22</div></div><pre class=
=3D""><span style=3D"padding-right: 0.1px;">ORDER BY 3 DESC;</span></pre></=
div><div style=3D"position: relative;"><div class=3D"CodeMirror-gutter-wrap=
per" style=3D"left: -44px; width: 44px;"><div class=3D"CodeMirror-linenumbe=
r CodeMirror-gutter-elt" style=3D"left: 0px; width: 36px;">23</div></div><p=
re class=3D""><span style=3D"padding-right: 0.1px;"><span cm-text=3D"">=E2=
=80=8B</span></span></pre></div><div style=3D"position: relative;"><div cla=
ss=3D"CodeMirror-gutter-wrapper" style=3D"left: -44px; width: 44px;"><div c=
lass=3D"CodeMirror-linenumber CodeMirror-gutter-elt" style=3D"left: 0px; wi=
dth: 36px;">24</div></div><pre class=3D""><span style=3D"padding-right: 0.1=
px;">/*</span></pre></div><div style=3D"position: relative;"><div class=3D"=
CodeMirror-gutter-wrapper" style=3D"left: -44px; width: 44px;"><div class=
=3D"CodeMirror-linenumber CodeMirror-gutter-elt" style=3D"left: 0px; width:=
36px;">25</div></div><pre class=3D""><span style=3D"padding-right: 0.1px;"=
>Question 2:</span></pre></div><div style=3D"position: relative;"><div clas=
s=3D"CodeMirror-gutter-wrapper" style=3D"left: -44px; width: 44px;"><div cl=
ass=3D"CodeMirror-linenumber CodeMirror-gutter-elt" style=3D"left: 0px; wid=
th: 36px;">26</div></div><pre class=3D""><span style=3D"padding-right: 0.1p=
x;"><span cm-text=3D"">=E2=80=8B</span></span></pre></div><div style=3D"pos=
ition: relative;"><div class=3D"CodeMirror-gutter-wrapper" style=3D"left: -=
44px; width: 44px;"><div class=3D"CodeMirror-linenumber CodeMirror-gutter-e=
lt" style=3D"left: 0px; width: 36px;">27</div></div><pre class=3D""><span s=
tyle=3D"padding-right: 0.1px;">Now we need to know how the length of rental=
duration of these family-friendly movies compares to the duration that all=
movies are rented for. </span></pre></div><div style=3D"position: relative=
;"><div class=3D"CodeMirror-gutter-wrapper" style=3D"left: -44px; width: 44=
px;"><div class=3D"CodeMirror-linenumber CodeMirror-gutter-elt" style=3D"le=
ft: 0px; width: 36px;">28</div></div><pre class=3D""><span style=3D"padding=
-right: 0.1px;">Can you provide a table with the movie titles and divide th=
em into 4 levels (first_quarter, second_quarter, third_quarter, and final_q=
uarter) based on the quartiles (25%, 50%, 75%) of the rental duration for m=
ovies across all categories? </span></pre></div><div style=3D"position: rel=
ative;"><div class=3D"CodeMirror-gutter-wrapper" style=3D"left: -44px; widt=
h: 44px;"><div class=3D"CodeMirror-linenumber CodeMirror-gutter-elt" style=
=3D"left: 0px; width: 36px;">29</div></div><pre class=3D""><span style=3D"p=
adding-right: 0.1px;">Make sure to also indicate the category that these fa=
mily-friendly movies fall into.</span></pre></div><div style=3D"position: r=
elative;"><div class=3D"CodeMirror-gutter-wrapper" style=3D"left: -44px; wi=
dth: 44px;"><div class=3D"CodeMirror-linenumber CodeMirror-gutter-elt" styl=
e=3D"left: 0px; width: 36px;">30</div></div><pre class=3D""><span style=3D"=
padding-right: 0.1px;"><span cm-text=3D"">=E2=80=8B</span></span></pre></di=
v><div style=3D"position: relative;"><div class=3D"CodeMirror-gutter-wrappe=
r" style=3D"left: -44px; width: 44px;"><div class=3D"CodeMirror-linenumber =
CodeMirror-gutter-elt" style=3D"left: 0px; width: 36px;">31</div></div><pre=
class=3D""><span style=3D"padding-right: 0.1px;">Query 2</span></pre></div=
><div style=3D"position: relative;"><div class=3D"CodeMirror-gutter-wrapper=
" style=3D"left: -44px; width: 44px;"><div class=3D"CodeMirror-linenumber C=
odeMirror-gutter-elt" style=3D"left: 0px; width: 36px;">32</div></div><pre =
class=3D""><span style=3D"padding-right: 0.1px;">*/</span></pre></div><div =
style=3D"position: relative;"><div class=3D"CodeMirror-gutter-wrapper" styl=
e=3D"left: -44px; width: 44px;"><div class=3D"CodeMirror-linenumber CodeMir=
ror-gutter-elt" style=3D"left: 0px; width: 36px;">33</div></div><pre class=
=3D""><span style=3D"padding-right: 0.1px;"><span cm-text=3D"">=E2=80=8B</s=
pan></span></pre></div><div style=3D"position: relative;"><div class=3D"Cod=
eMirror-gutter-wrapper" style=3D"left: -44px; width: 44px;"><div class=3D"C=
odeMirror-linenumber CodeMirror-gutter-elt" style=3D"left: 0px; width: 36px=
;">34</div></div><pre class=3D""><span style=3D"padding-right: 0.1px;">SELE=
CT</span></pre></div><div style=3D"position: relative;"><div class=3D"CodeM=
irror-gutter-wrapper" style=3D"left: -44px; width: 44px;"><div class=3D"Cod=
eMirror-linenumber CodeMirror-gutter-elt" style=3D"left: 0px; width: 36px;"=
>35</div></div><pre class=3D""><span style=3D"padding-right: 0.1px;"> f.ti=
tle film_title,</span></pre></div><div style=3D"position: relative;"><div c=
lass=3D"CodeMirror-gutter-wrapper" style=3D"left: -44px; width: 44px;"><div=
class=3D"CodeMirror-linenumber CodeMirror-gutter-elt" style=3D"left: 0px; =
width: 36px;">36</div></div><pre class=3D""><span style=3D"padding-right: 0=
.1px;"> c.name category_name,</span></pre></div><div style=3D"position: re=
lative;"><div class=3D"CodeMirror-gutter-wrapper" style=3D"left: -44px; wid=
th: 44px;"><div class=3D"CodeMirror-linenumber CodeMirror-gutter-elt" style=
=3D"left: 0px; width: 36px;">37</div></div><pre class=3D""><span style=3D"p=
adding-right: 0.1px;"> f.rental_duration AS rental_duration,</span></pre><=
/div><div style=3D"position: relative;"><div class=3D"CodeMirror-gutter-wra=
pper" style=3D"left: -44px; width: 44px;"><div class=3D"CodeMirror-linenumb=
er CodeMirror-gutter-elt" style=3D"left: 0px; width: 36px;">38</div></div><=
pre class=3D""><span style=3D"padding-right: 0.1px;"> NTILE(4) OVER (ORDER=
BY f.rental_duration) AS quartiles</span></pre></div><div style=3D"positio=
n: relative;"><div class=3D"CodeMirror-gutter-wrapper" style=3D"left: -44px=
; width: 44px;"><div class=3D"CodeMirror-linenumber CodeMirror-gutter-elt" =
style=3D"left: 0px; width: 36px;">39</div></div><pre class=3D""><span style=
=3D"padding-right: 0.1px;">FROM film f</span></pre></div><div style=3D"posi=
tion: relative;"><div class=3D"CodeMirror-gutter-wrapper" style=3D"left: -4=
4px; width: 44px;"><div class=3D"CodeMirror-linenumber CodeMirror-gutter-el=
t" style=3D"left: 0px; width: 36px;">40</div></div><pre class=3D""><span st=
yle=3D"padding-right: 0.1px;">JOIN film_category fc</span></pre></div><div =
style=3D"position: relative;"><div class=3D"CodeMirror-gutter-wrapper" styl=
e=3D"left: -44px; width: 44px;"><div class=3D"CodeMirror-linenumber CodeMir=
ror-gutter-elt" style=3D"left: 0px; width: 36px;">41</div></div><pre class=
=3D""><span style=3D"padding-right: 0.1px;"> ON f.film_id =3D fc.film_id</=
span></pre></div><div style=3D"position: relative;"><div class=3D"CodeMirro=
r-gutter-wrapper" style=3D"left: -44px; width: 44px;"><div class=3D"CodeMir=
ror-linenumber CodeMirror-gutter-elt" style=3D"left: 0px; width: 36px;">42<=
/div></div><pre class=3D""><span style=3D"padding-right: 0.1px;">JOIN categ=
ory c</span></pre></div><div style=3D"position: relative;"><div class=3D"Co=
deMirror-gutter-wrapper" style=3D"left: -44px; width: 44px;"><div class=3D"=
CodeMirror-linenumber CodeMirror-gutter-elt" style=3D"left: 0px; width: 36p=
x;">43</div></div><pre class=3D""><span style=3D"padding-right: 0.1px;"> O=
N c.category_id =3D fc.category_id</span></pre></div><div style=3D"position=
: relative;"><div class=3D"CodeMirror-gutter-wrapper" style=3D"left: -44px;=
width: 44px;"><div class=3D"CodeMirror-linenumber CodeMirror-gutter-elt" s=
tyle=3D"left: 0px; width: 36px;">44</div></div><pre class=3D""><span style=
=3D"padding-right: 0.1px;">WHERE c.name IN ('Animation', 'Children', 'Class=
ics', 'Comedy', 'Family', 'Music')</span></pre></div><div style=3D"position=
: relative;"><div class=3D"CodeMirror-gutter-wrapper" style=3D"left: -44px;=
width: 44px;"><div class=3D"CodeMirror-linenumber CodeMirror-gutter-elt" s=
tyle=3D"left: 0px; width: 36px;">45</div></div><pre class=3D""><span style=
=3D"padding-right: 0.1px;">GROUP BY 1,</span></pre><div class=3D"CodeMirror=
-linewidget" cm-ignore-events=3D"true" style=3D"left: -44px; width: 807px; =
z-index: 5; position: relative;"><div id=3D"comment-wrapper-44"><div code-c=
omment=3D"" line=3D"44" content-id=3D"97335055" editable=3D"false" body=3D"=
The GROUP BY here is not needed because you aren't aggregating on any field=
s in your select statement.
GROUP By's are used when there are aggregations like SUM, MIN, MAX e.t.c in=
your query.
```
SELECT
f.title film_title,
c.name category_name,
f.rental_duration AS rental_duration,
NTILE(4) OVER (ORDER BY f.rental_duration) AS quartiles
FROM film f
JOIN film_category fc
ON f.film_id =3D fc.film_id
JOIN category c
ON c.category_id =3D fc.category_id
WHERE c.name IN ('Animation', 'Children', 'Classics', 'Comedy', 'Family', '=
Music')
ORDER BY 4;
```" category=3D"nitpick" comment-id=3D"5873986" class=3D"ng-scope ng-isola=
te-scope"><div class=3D"comment-container nitpick"> <ng-form name=3D"commen=
tForm" class=3D"ng-pristine ng-valid ng-valid-required"> <div ng-hide=3D"ed=
iting" class=3D"comment-viewer"> <div class=3D"comment clearfix"> <div clas=
s=3D"pill pill-nitpick"><span translate=3D"" class=3D"ng-scope ng-binding">=
Suggestion</span></div> <div class=3D"inline-comment ng-isolate-scope" mark=
ed=3D"body"><p>The GROUP BY here is not needed because you aren't aggregati=
ng on any fields in your select statement.<br>GROUP By's are used when ther=
e are aggregations like SUM, MIN, MAX e.t.c in your query.</p>
<pre><code><span class=3D"hljs-operator"><span class=3D"hljs-keyword">SELEC=
T</span>
f.title film_title,
c.name category_name,
f.rental_duration <span class=3D"hljs-keyword">AS</span> rental_duration,
NTILE(<span class=3D"hljs-number">4</span>) OVER (<span class=3D"hljs-key=
word">ORDER</span> <span class=3D"hljs-keyword">BY</span> f.rental_duration=
) <span class=3D"hljs-keyword">AS</span> quartiles
<span class=3D"hljs-keyword">FROM</span> film f
<span class=3D"hljs-keyword">JOIN</span> film_category fc
<span class=3D"hljs-keyword">ON</span> f.film_id =3D fc.film_id
<span class=3D"hljs-keyword">JOIN</span> category c
<span class=3D"hljs-keyword">ON</span> c.category_id =3D fc.category_id
<span class=3D"hljs-keyword">WHERE</span> c.name <span class=3D"hljs-keywor=
d">IN</span> (<span class=3D"hljs-string">'Animation'</span>, <span class=
=3D"hljs-string">'Children'</span>, <span class=3D"hljs-string">'Classics'<=
/span>, <span class=3D"hljs-string">'Comedy'</span>, <span class=3D"hljs-st=
ring">'Family'</span>, <span class=3D"hljs-string">'Music'</span>)
<span class=3D"hljs-keyword">ORDER</span> <span class=3D"hljs-keyword">BY</=
span> <span class=3D"hljs-number">4</span>;</span>
</code></pre></div> </div> <!-- ngIf: editable --> </div> <div ng-show=3D"e=
diting" class=3D"comment-editor ng-hide"> <div class=3D"category-inputs"> <=
!-- ngRepeat: categoryInfo in categories --><label ng-repeat=3D"categoryInf=
o in categories" class=3D"ng-binding ng-scope"> <input type=3D"radio" requi=
red=3D"" name=3D"category" ng-model=3D"modifiedComment.category" ng-value=
=3D"categoryInfo.value" class=3D"ng-pristine ng-untouched ng-valid ng-not-e=
mpty ng-valid-required" value=3D"critical"> Required </label><!-- en=
d ngRepeat: categoryInfo in categories --><label ng-repeat=3D"categoryInfo =
in categories" class=3D"ng-binding ng-scope"> <input type=3D"radio" require=
d=3D"" name=3D"category" ng-model=3D"modifiedComment.category" ng-value=3D"=
categoryInfo.value" class=3D"ng-pristine ng-untouched ng-valid ng-not-empty=
ng-valid-required" value=3D"nitpick"> Suggestion </label><!-- end n=
gRepeat: categoryInfo in categories --><label ng-repeat=3D"categoryInfo in =
categories" class=3D"ng-binding ng-scope"> <input type=3D"radio" required=
=3D"" name=3D"category" ng-model=3D"modifiedComment.category" ng-value=3D"c=
ategoryInfo.value" class=3D"ng-pristine ng-untouched ng-valid ng-not-empty =
ng-valid-required" value=3D"awesome"> Awesome </label><!-- end ngRep=
eat: categoryInfo in categories --> </div> <!-- ngIf: !!modifiedComment.cat=
egory --><div ng-if=3D"!!modifiedComment.category" class=3D"ng-scope"> <div=
class=3D"form-group"> <div class=3D"row row-gap-small"></div> <div markdow=
n-textarea=3D"" form=3D"commentForm" class=3D"ng-isolate-scope"><div ngf-dr=
op=3D"" ng-model=3D"files" ngf-multiple=3D"true" ngf-allow-dir=3D"false" ng=
f-max-size=3D"maxSize" ngf-accept=3D"accept" accept=3D"image/*,.pdf" ngf-dr=
ag-over-class=3D"{accept:'dragover', reject:'dragover-reject', delay:100}" =
class=3D"drop-box ng-pristine ng-untouched ng-valid ng-empty"> <div ng-tran=
sclude=3D""> <textarea rows=3D"4" required=3D"" class=3D"form-control ng-pr=
istine ng-untouched ng-valid ng-binding ng-scope ng-not-empty ng-valid-requ=
ired" type=3D"text" name=3D"comment" ng-model=3D"modifiedComment.body" plac=
eholder=3D"Write something about this line of code...">The GROUP BY here is=
not needed because you aren't aggregating on any fields in your select sta=
tement.
GROUP By's are used when there are aggregations like SUM, MIN, MAX e.t.c in=
your query.
```
SELECT
f.title film_title,
c.name category_name,
f.rental_duration AS rental_duration,
NTILE(4) OVER (ORDER BY f.rental_duration) AS quartiles
FROM film f
JOIN film_category fc
ON f.film_id =3D fc.film_id
JOIN category c
ON c.category_id =3D fc.category_id
WHERE c.name IN ('Animation', 'Children', 'Classics', 'Comedy', 'Family', '=
Music')
ORDER BY 4;
```</textarea> </div> <p class=3D"caption ng-binding"> Attach images (.png,=
.gif, .jpg) by dragging and dropping or selecting them (10 MB limit). <a h=
ref=3D"https://review.udacity.com/?utm_campaign=3Dret_000_auto_ndxxx_submis=
sion-reviewed&utm_source=3Dblueshift&utm_medium=3Demail&utm_con=
tent=3Dreviewsapp-submission-reviewed&bsft_clkid=3D58d5b78c-c59e-4305-8=
ca3-dacbf598fa8a&bsft_uid=3D9b0f6def-f27d-4a4d-bfbf-faf50d9ad4bd&bs=
ft_mid=3D73a82af0-d2ba-49a6-aa37-a184f4979e58&bsft_eid=3D6f154690-7543-=
4582-9be7-e397af208dbd&bsft_txnid=3Dae94eab1-6119-4216-bdfe-cf7af7cb8cd=
f&bsft_mime_type=3Dhtml&bsft_ek=3D2021-05-22T11%3A26%3A41Z&bsft=
_aaid=3D8d7e276e-4a10-41b2-8868-423fe96dd6b2&bsft_lx=3D2&bsft_tv=3D=
5" ngf-select=3D"" ngf-accept=3D"accept" accept=3D"image/*,.pdf" ng-model=
=3D"files" ngf-multiple=3D"true" class=3D"ng-pristine ng-untouched ng-valid=
ng-binding ng-empty"> Browse files. </a> <br> <a href=3D"https://guides.gi=
thub.com/features/mastering-markdown/" target=3D"_blank">Markdown supported=
.</a> </p> <!-- ngIf: errorMessage --> </div> </div> </div> <div class=3D"r=
ow row-buttons"> <div class=3D"col-xs-12"> <button type=3D"button" class=3D=
"btn btn-primary ng-isolate-scope" busy-click=3D"submitComment()" ng-disabl=
ed=3D"commentForm.$invalid"> <span class=3D"glyphicon glyphicon-ok"></span>=
<span translate=3D"Save & Preview" class=3D"ng-scope">Save &=
Preview</span> </button> <!-- ngIf: !isNewComment() --><button ng-if=3D"!i=
sNewComment()" type=3D"button" class=3D"btn btn-default ng-binding ng-scope=
" ng-click=3D"deleteComment()"> <span class=3D"glyphicon glyphicon-trash"><=
/span> Delete </button><!-- end ngIf: !isNewComment() --> <button typ=
e=3D"button" class=3D"btn btn-default ng-binding" ng-click=3D"cancelComment=
()">Cancel</button> </div> </div> </div><!-- end ngIf: !!modifiedComment.ca=
tegory --> </div> </ng-form> </div> </div></div></div></div><div style=3D"p=
osition: relative;"><div class=3D"CodeMirror-gutter-wrapper" style=3D"left:=
-44px; width: 44px;"><div class=3D"CodeMirror-linenumber CodeMirror-gutter=
-elt" style=3D"left: 0px; width: 36px;">46</div></div><pre class=3D""><span=
style=3D"padding-right: 0.1px;"> 2,</span></pre></div><div style=
=3D"position: relative;"><div class=3D"CodeMirror-gutter-wrapper" style=3D"=
left: -44px; width: 44px;"><div class=3D"CodeMirror-linenumber CodeMirror-g=
utter-elt" style=3D"left: 0px; width: 36px;">47</div></div><pre class=3D"">=
<span style=3D"padding-right: 0.1px;"> 3</span></pre></div><div sty=
le=3D"position: relative;"><div class=3D"CodeMirror-gutter-wrapper" style=
=3D"left: -44px; width: 44px;"><div class=3D"CodeMirror-linenumber CodeMirr=
or-gutter-elt" style=3D"left: 0px; width: 36px;">48</div></div><pre class=
=3D""><span style=3D"padding-right: 0.1px;">ORDER BY 3 DESC;</span></pre></=
div><div style=3D"position: relative;"><div class=3D"CodeMirror-gutter-wrap=
per" style=3D"left: -44px; width: 44px;"><div class=3D"CodeMirror-linenumbe=
r CodeMirror-gutter-elt" style=3D"left: 0px; width: 36px;">49</div></div><p=
re class=3D""><span style=3D"padding-right: 0.1px;"><span cm-text=3D"">=E2=
=80=8B</span></span></pre></div><div style=3D"position: relative;"><div cla=
ss=3D"CodeMirror-gutter-wrapper" style=3D"left: -44px; width: 44px;"><div c=
lass=3D"CodeMirror-linenumber CodeMirror-gutter-elt" style=3D"left: 0px; wi=
dth: 36px;">50</div></div><pre class=3D""><span style=3D"padding-right: 0.1=
px;"><span cm-text=3D"">=E2=80=8B</span></span></pre></div><div style=3D"po=
sition: relative;"><div class=3D"CodeMirror-gutter-wrapper" style=3D"left: =
-44px; width: 44px;"><div class=3D"CodeMirror-linenumber CodeMirror-gutter-=
elt" style=3D"left: 0px; width: 36px;">51</div></div><pre class=3D""><span =
style=3D"padding-right: 0.1px;">/*Question 3:</span></pre></div><div style=
=3D"position: relative;"><div class=3D"CodeMirror-gutter-wrapper" style=3D"=
left: -44px; width: 44px;"><div class=3D"CodeMirror-linenumber CodeMirror-g=
utter-elt" style=3D"left: 0px; width: 36px;">52</div></div><pre class=3D"">=
<span style=3D"padding-right: 0.1px;"><span cm-text=3D"">=E2=80=8B</span></=
span></pre></div><div style=3D"position: relative;"><div class=3D"CodeMirro=
r-gutter-wrapper" style=3D"left: -44px; width: 44px;"><div class=3D"CodeMir=
ror-linenumber CodeMirror-gutter-elt" style=3D"left: 0px; width: 36px;">53<=
/div></div><pre class=3D""><span style=3D"padding-right: 0.1px;">provide a =
table with the family-friendly film category, each of the quartiles, and th=
e corresponding count of movies within each combination of film category fo=
r each corresponding rental duration category.</span></pre></div><div style=
=3D"position: relative;"><div class=3D"CodeMirror-gutter-wrapper" style=3D"=
left: -44px; width: 44px;"><div class=3D"CodeMirror-linenumber CodeMirror-g=
utter-elt" style=3D"left: 0px; width: 36px;">54</div></div><pre class=3D"">=
<span style=3D"padding-right: 0.1px;">The resulting table should have three=
columns:</span></pre></div><div style=3D"position: relative;"><div class=
=3D"CodeMirror-gutter-wrapper" style=3D"left: -44px; width: 44px;"><div cla=
ss=3D"CodeMirror-linenumber CodeMirror-gutter-elt" style=3D"left: 0px; widt=
h: 36px;">55</div></div><pre class=3D""><span style=3D"padding-right: 0.1px=
;">Category</span></pre></div><div style=3D"position: relative;"><div class=
=3D"CodeMirror-gutter-wrapper" style=3D"left: -44px; width: 44px;"><div cla=
ss=3D"CodeMirror-linenumber CodeMirror-gutter-elt" style=3D"left: 0px; widt=
h: 36px;">56</div></div><pre class=3D""><span style=3D"padding-right: 0.1px=
;">Rental length category</span></pre></div><div style=3D"position: relativ=
e;"><div class=3D"CodeMirror-gutter-wrapper" style=3D"left: -44px; width: 4=
4px;"><div class=3D"CodeMirror-linenumber CodeMirror-gutter-elt" style=3D"l=
eft: 0px; width: 36px;">57</div></div><pre class=3D""><span style=3D"paddin=
g-right: 0.1px;">Count</span></pre></div><div style=3D"position: relative;"=
><div class=3D"CodeMirror-gutter-wrapper" style=3D"left: -44px; width: 44px=
;"><div class=3D"CodeMirror-linenumber CodeMirror-gutter-elt" style=3D"left=
: 0px; width: 36px;">58</div></div><pre class=3D""><span style=3D"padding-r=
ight: 0.1px;"><span cm-text=3D"">=E2=80=8B</span></span></pre></div><div st=
yle=3D"position: relative;"><div class=3D"CodeMirror-gutter-wrapper" style=
=3D"left: -44px; width: 44px;"><div class=3D"CodeMirror-linenumber CodeMirr=
or-gutter-elt" style=3D"left: 0px; width: 36px;">59</div></div><pre class=
=3D""><span style=3D"padding-right: 0.1px;"><span cm-text=3D"">=E2=80=8B</s=
pan></span></pre></div><div style=3D"position: relative;"><div class=3D"Cod=
eMirror-gutter-wrapper" style=3D"left: -44px; width: 44px;"><div class=3D"C=
odeMirror-linenumber CodeMirror-gutter-elt" style=3D"left: 0px; width: 36px=
;">60</div></div><pre class=3D""><span style=3D"padding-right: 0.1px;">Quer=
y 3:</span></pre></div><div style=3D"position: relative;"><div class=3D"Cod=
eMirror-gutter-wrapper" style=3D"left: -44px; width: 44px;"><div class=3D"C=
odeMirror-linenumber CodeMirror-gutter-elt" style=3D"left: 0px; width: 36px=
;">61</div></div><pre class=3D""><span style=3D"padding-right: 0.1px;">*/</=
span></pre></div><div style=3D"position: relative;"><div class=3D"CodeMirro=
r-gutter-wrapper" style=3D"left: -44px; width: 44px;"><div class=3D"CodeMir=
ror-linenumber CodeMirror-gutter-elt" style=3D"left: 0px; width: 36px;">62<=
/div></div><pre class=3D""><span style=3D"padding-right: 0.1px;"><span cm-t=
ext=3D"">=E2=80=8B</span></span></pre></div><div style=3D"position: relativ=
e;"><div class=3D"CodeMirror-gutter-wrapper" style=3D"left: -44px; width: 4=
4px;"><div class=3D"CodeMirror-linenumber CodeMirror-gutter-elt" style=3D"l=
eft: 0px; width: 36px;">63</div></div><pre class=3D""><span style=3D"paddin=
g-right: 0.1px;">SELECT</span></pre></div><div style=3D"position: relative;=
"><div class=3D"CodeMirror-gutter-wrapper" style=3D"left: -44px; width: 44p=
x;"><div class=3D"CodeMirror-linenumber CodeMirror-gutter-elt" style=3D"lef=
t: 0px; width: 36px;">64</div></div><pre class=3D""><span style=3D"padding-=
right: 0.1px;"> category_name,</span></pre></div><div style=3D"position: r=
elative;"><div class=3D"CodeMirror-gutter-wrapper" style=3D"left: -44px; wi=
dth: 44px;"><div class=3D"CodeMirror-linenumber CodeMirror-gutter-elt" styl=
e=3D"left: 0px; width: 36px;">65</div></div><pre class=3D""><span style=3D"=
padding-right: 0.1px;"> quartiles,</span></pre></div><div style=3D"positio=
n: relative;"><div class=3D"CodeMirror-gutter-wrapper" style=3D"left: -44px=
; width: 44px;"><div class=3D"CodeMirror-linenumber CodeMirror-gutter-elt" =
style=3D"left: 0px; width: 36px;">66</div></div><pre class=3D""><span style=
=3D"padding-right: 0.1px;"> COUNT(category_name)</span></pre></div><div st=
yle=3D"position: relative;"><div class=3D"CodeMirror-gutter-wrapper" style=
=3D"left: -44px; width: 44px;"><div class=3D"CodeMirror-linenumber CodeMirr=
or-gutter-elt" style=3D"left: 0px; width: 36px;">67</div></div><pre class=
=3D""><span style=3D"padding-right: 0.1px;">FROM (SELECT</span></pre></div>=
<div style=3D"position: relative;"><div class=3D"CodeMirror-gutter-wrapper"=
style=3D"left: -44px; width: 44px;"><div class=3D"CodeMirror-linenumber Co=
deMirror-gutter-elt" style=3D"left: 0px; width: 36px;">68</div></div><pre c=
lass=3D""><span style=3D"padding-right: 0.1px;"> c.name category_name,</sp=
an></pre></div><div style=3D"position: relative;"><div class=3D"CodeMirror-=
gutter-wrapper" style=3D"left: -44px; width: 44px;"><div class=3D"CodeMirro=
r-linenumber CodeMirror-gutter-elt" style=3D"left: 0px; width: 36px;">69</d=
iv></div><pre class=3D""><span style=3D"padding-right: 0.1px;"> NTILE(4) O=
VER (ORDER BY f.rental_duration) AS quartiles</span></pre></div><div style=
=3D"position: relative;"><div class=3D"CodeMirror-gutter-wrapper" style=3D"=
left: -44px; width: 44px;"><div class=3D"CodeMirror-linenumber CodeMirror-g=
utter-elt" style=3D"left: 0px; width: 36px;">70</div></div><pre class=3D"">=
<span style=3D"padding-right: 0.1px;">FROM film f</span></pre></div><div st=
yle=3D"position: relative;"><div class=3D"CodeMirror-gutter-wrapper" style=
=3D"left: -44px; width: 44px;"><div class=3D"CodeMirror-linenumber CodeMirr=
or-gutter-elt" style=3D"left: 0px; width: 36px;">71</div></div><pre class=
=3D""><span style=3D"padding-right: 0.1px;">JOIN film_category fc</span></p=
re><div class=3D"CodeMirror-linewidget" cm-ignore-events=3D"true" style=3D"=
left: -44px; width: 807px; z-index: 5; position: relative;"><div id=3D"comm=
ent-wrapper-70"><div code-comment=3D"" line=3D"70" content-id=3D"97335055" =
editable=3D"false" body=3D"Way to go! Your query ran without any errors and=
returned the correct results." category=3D"awesome" comment-id=3D"5873988"=
class=3D"ng-scope ng-isolate-scope"><div class=3D"comment-container awesom=
e"> <ng-form name=3D"commentForm" class=3D"ng-pristine ng-valid ng-valid-re=
quired"> <div ng-hide=3D"editing" class=3D"comment-viewer"> <div class=3D"c=
omment clearfix"> <div class=3D"pill pill-awesome"><span translate=3D"" cla=
ss=3D"ng-scope ng-binding">Awesome</span></div> <div class=3D"inline-commen=
t ng-isolate-scope" marked=3D"body"><p>Way to go! Your query ran without an=
y errors and returned the correct results.</p>
</div> </div> <!-- ngIf: editable --> </div> <div ng-show=3D"editing" class=
=3D"comment-editor ng-hide"> <div class=3D"category-inputs"> <!-- ngRepeat:=
categoryInfo in categories --><label ng-repeat=3D"categoryInfo in categori=
es" class=3D"ng-binding ng-scope"> <input type=3D"radio" required=3D"" name=
=3D"category" ng-model=3D"modifiedComment.category" ng-value=3D"categoryInf=
o.value" class=3D"ng-pristine ng-untouched ng-valid ng-not-empty ng-valid-r=
equired" value=3D"critical"> Required </label><!-- end ngRepeat: cat=
egoryInfo in categories --><label ng-repeat=3D"categoryInfo in categories" =
class=3D"ng-binding ng-scope"> <input type=3D"radio" required=3D"" name=3D"=
category" ng-model=3D"modifiedComment.category" ng-value=3D"categoryInfo.va=
lue" class=3D"ng-pristine ng-untouched ng-valid ng-not-empty ng-valid-requi=
red" value=3D"nitpick"> Suggestion </label><!-- end ngRepeat: catego=
ryInfo in categories --><label ng-repeat=3D"categoryInfo in categories" cla=
ss=3D"ng-binding ng-scope"> <input type=3D"radio" required=3D"" name=3D"cat=