APAN 5310 - M6 - Hands-on Session Handout

.pdf

School

University of Massachusetts, Amherst *

*We aren’t endorsed by this school

Course

221

Subject

History

Date

Oct 30, 2023

Type

pdf

Pages

2

Uploaded by hengweizhang

(*5(*3 °±² ³ 2! ³ 1-N[SSQ`XXX³\TT[SS 8R`XXX`XXXVNN\TT[SS 1-N[SSQ\TTZZZaYYY ± Original Data ± Unnormalized ² customer name address state country email phone ° ³land´ phone µ ³cell´ phone ¶ ³fax´ order date·time product ° ³Q¸P´ product µ ³Q¸P´ product ¶ ³Q¸P´ product ¹ ³Q¸P´ product º ³Q¸P´ ± ,.aYYYUMN[SS 1-\TT\TT]UUUR_WWW ´°±µ <DVNNYQQXPPVNN[SS`XXX\TT[SS *,\TT 41- :8(* RUM\TT\TT]UUUR_WWW')PRZRR\TT]UUUYQQ`XXX ´±$ ³!!#³°"²# ´±$ ³!""³±#´° ²°¶²´¶µ²±# µµ%!#±±%!#´# ´´µ°´$ ·± ') °¸´$ ¹ "$ µ°´ ·° ') °$ ¸$ $ ¹ µ *,RYQQVNNN 8PUM_WWW\TTRQR_WWW µ"µ² 2ZZZYQQOR_WWW_WWW^^^ 1N[SS /+1 :8(* PRYQQVNNN`XXX')UM\TTZZZ_WWWYQQP`XXX¸P\TTZRR$ ´$ ³ #²³#´$ $ µ±¶² ¶µ²±# ± %!#° %!#´" $ ´$ ´µ° ·µ ') $ ¸$ $ ¹ $ ´²µ°´ ·± ') ± ¸ ²¹ ´´µ°´$ ·± ') °¸´$ ¹ ""µµ´± ·± ') µ°¸ ²¹ ±±µ°#´ ·µ ') µ¸$ $ ¹ ° +-\\\N^^^[SSR 1-NYQQR^^^ ´ !" 0VNN[SS[SSR^^^ 8aYYY_WWWRRaYYY*,(* :8(* Q\\\NUMYQQ')[[[R_WWWaYYYVNN\TT]]]`XXX¸P\TT !µ³!$ !³$ ´´µ !µ³°°µ³"""! !µ³!$ "³!±#° ±"¶²±¶µ²±# ²°%!#°´%!#´´ µ°´µ°´ ·± ') ´°¸ ²¹ ´ *,N_WWWN 1-ZZZ_WWW`XXXaYYY µ² " )+R[SS 8aYYY_WWWRRaYYY 31- :8(* PUMZZZ_WWW`XXXaYYY')XPP\TTYQQQR_WWWSK¸P\TTZRR!²°³µ°´³#±"  µ"¶²µ¶µ²±# ±´%!#²$ %!#°µ $ ² µ´° ·´ ') ²¸$ $ ¹ #´#°´´ ·! ') ´¸#$ ¹ 1N_WWWN 1-\TTYQQaYYY ´"!´ 7NSKR 1N[SSR 28 :8(* YQQN_WWWN')Q_WWWN]UUUR`XXX]]]¸P\TTZRR !!µ³"µ$ ³±°"! °²¶²!¶µ²±# ²"%!# ´%!#±$ #´°µ´ ·µ ') ±µ¸ ²¹ °#$ ´µ² ·° ') ´¸$ $ ¹ "$ µ°´ ·± ') °$ ¸$ $ ¹ ! 3\TTRYQQYQQR 3RYQQ`XXX\TT[SS µ$ "! 1VNNOR_WWWaYYY^^^ 8aYYY_WWWRRaYYY 8*, :8(* [SS\TTRYQQYQQR')\TT]UUUR_WWWaYYY\TT[SS`XXX^^^`XXX #!´³´$ "³$ !!µ #²°³$ "´³""±  ±´¶²±¶µ²±# ±±%!#°#%!#°² ±$ ´ °² ·° ') #¸´$ ¹ " +-N[[[\TT[SS 5R_WWWR___ µ$ µ 5N`XXX`XXXNVNNP 8aYYY_WWWRRaYYY 33/ :8(* Q]UUUR_WWW')SKVNN_WWW]UUU\TTXPPR¸P\TTZRR °!²³´°°³!°²² µ²¶²µ¶µ²±# ²´%!# °%!#´$ "°´°²´ ·± ') ´¸´$ ¹ !$ ´°´± ·° ') µ´¸$ $ ¹ °$ µ´ µ ·µ ') "¸$ $ ¹ °st Normal Form ³°NF´ `orders` order_id customer_name address state country email order_date quantity product_id ± ,.aYYYUMN[SS 1-\TT\TT]UUUR_WWW ´°±µ <DVNNYQQXPPVNN[SS`XXX\TT[SS *,\TT 41- :8(* RUM\TT\TT]UUUR_WWW')PRZRR\TT]UUUYQQ`XXX ²°¶²´¶µ²±# µµ%!#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²°%!#°´%!#´ ± " ´ *,N_WWWN 1-ZZZ_WWW`XXXaYYY µ² " )+R[SS 8aYYY_WWWRRaYYY 31- :8(* PUMZZZ_WWW`XXXaYYY')XPP\TTYQQQR_WWWSK¸P\TTZRRµ"¶²µ¶µ²±# ±´%!#²$ %!#° ´ # ´ *,N_WWWN 1-ZZZ_WWW`XXXaYYY µ² " )+R[SS 8aYYY_WWWRRaYYY 31- :8(* PUMZZZ_WWW`XXXaYYY')XPP\TTYQQQR_WWWSK¸P\TTZRRµ"¶²µ¶µ²±# ±´%!#²$ %!#° ! $ 1N_WWWN 1-\TTYQQaYYY ´"!´ 7NSKR 1N[SSR 28 :8(* YQQN_WWWN')Q_WWWN]UUUR`XXX]]]¸P\TTZRR °²¶²!¶µ²±# ²"%!# ´%!#± µ ±² 1N_WWWN 1-\TTYQQaYYY ´"!´ 7NSKR 1N[SSR 28 :8(* YQQN_WWWN')Q_WWWN]UUUR`XXX]]]¸P\TTZRR °²¶²!¶µ²±# ²"%!# ´%!#± ° ±± 1N_WWWN 1-\TTYQQaYYY ´"!´ 7NSKR 1N[SSR 28 :8(* YQQN_WWWN')Q_WWWN]UUUR`XXX]]]¸P\TTZRR °²¶²!¶µ²±# ²"%!# ´%!#± ± µ ! 3\TTRYQQYQQR 3RYQQ`XXX\TT[SS µ$ "! 1VNNOR_WWWaYYY^^^ 8aYYY_WWWRRaYYY 8*, :8(* [SS\TTRYQQYQQR')\TT]UUUR_WWWaYYY\TT[SS`XXX^^^`XXX ±´¶²±¶µ²±# ±±%!#°#%!#° ° ±µ " +-N[[[\TT[SS 5R_WWWR___ µ$ µ 5N`XXX`XXXNVNNP 8aYYY_WWWRRaYYY 33/ :8(* Q]UUUR_WWW')SKVNN_WWW]UUU\TTXPPR¸P\TTZRR µ²¶²µ¶µ²±# ²´%!# °%!#´ ± ±° " +-N[[[\TT[SS 5R_WWWR___ µ$ µ 5N`XXX`XXXNVNNP 8aYYY_WWWRRaYYY 33/ :8(* Q]UUUR_WWW')SKVNN_WWW]UUU\TTXPPR¸P\TTZRR µ²¶²µ¶µ²±# ²´%!# °%!#´ ° ±´ " +-N[[[\TT[SS 5R_WWWR___ µ$ µ 5N`XXX`XXXNVNNP 8aYYY_WWWRRaYYY 33/ :8(* Q]UUUR_WWW')SKVNN_WWW]UUU\TTXPPR¸P\TTZRR µ²¶²µ¶µ²±# ²´%!# °%!#´ µ ±  `customer_phones` `products` phone_id phone_number phone_type order_id product_id product_number price ± ´±$ ³!!#³°"²# YQQN[SSQ ± ± ´´µ°´$ °¸´$ µ ´±$ ³!""³±#´° PRYQQYQQ ± µ "$ µ°´  °$ ¸$ $ ° $ ´$ ³ #²³#´$ $ YQQN[SSQ µ ° $ ´$ ´µ° $ ¸$ $ ´ !µ³!$ !³$ ´´µ YQQN[SSQ ° ´ $ ´²µ°´ ± ¸  !µ³!$ !³$ ´´µ PRYQQYQQ ° ""µµ´± µ°¸  ! !µ³!$ !³$ ´´µ SKN]]] ° ! ±±µ°#´ µ¸$ $ " !²°³µ°´³#±"  YQQN[SSQ ´ " µ°´µ°´ ´°¸  # !!µ³"µ$ ³±°"! YQQN[SSQ # $ ² µ´° ²¸$ $ $ #!´³´$ "³$ !!µ YQQN[SSQ ! $ #´#°´´ ´¸#$ ±² #²°³$ "´³""±  PRYQQYQQ ! ±² #´°µ´  ±µ¸  ±± °!²³´°°³!°²² YQQN[SSQ " ±± °#$ ´µ² ´¸$ $ ±µ ±$ ´ °² #¸´$ ±° "°´°²´ ´¸´$ ±´ !$ ´°´± µ´¸$ $ ±  °$ µ´ µ "¸$ $ µnd Normal Form ³µNF´ `orders` `customer_phones` `products` order_id product_id quantity phone_id phone_number phone_type order_id product_id product_number price ± ± ± ± ´±$ ³!!#³°"²# YQQN[SSQ ± ± ´´µ°´$ °¸´$ ± µ ° µ ´±$ ³!""³±#´° PRYQQYQQ ± µ "$ µ°´  °$ ¸$ $ µ ° µ ° $ ´$ ³ #²³#´$ $ YQQN[SSQ µ ° $ ´$ ´µ° $ ¸$ $ µ ´ ± ´ !µ³!$ !³$ ´´µ YQQN[SSQ ° ´ $ ´²µ°´ ± ¸  µ µ ± !µ³!$ !³$ ´´µ PRYQQYQQ ° ""µµ´± µ°¸  µ ± ! !µ³!$ !³$ ´´µ SKN]]] ° ! ±±µ°#´ µ¸$ $ µ ! µ " !²°³µ°´³#±"  YQQN[SSQ ´ " µ°´µ°´ ´°¸  ° " ± # !!µ³"µ$ ³±°"! YQQN[SSQ # $ ² µ´° ²¸$ $ ´ # ´ $ #!´³´$ "³$ !!µ YQQN[SSQ ! $ #´#°´´ ´¸#$ ´ $ ! ±² #²°³$ "´³""±  PRYQQYQQ ! ±² #´°µ´  ±µ¸  ±² µ ±± °!²³´°°³!°²² YQQN[SSQ " ±± °#$ ´µ² ´¸$ $ ±± ° ±µ ±$ ´ °² #¸´$ µ ± ±° "°´°²´ ´¸´$ ! ±µ ° ±´ !$ ´°´± µ´¸$ $ " ±° ± ±  °$ µ´ µ "¸$ $ " ±´ ° " ±  µ `customer_orders` customer_id order_id customer_name address state country email order_date µ²´! ± ,.aYYYUMN[SS 1-\TT\TT]UUUR_WWW ´°±µ <DVNNYQQXPPVNN[SS`XXX\TT[SS *,\TT 41- :8(* RUM\TT\TT]UUUR_WWW')PRZRR\TT]UUUYQQ`XXX ²°¶²´¶µ²±# µµ%!#±±%!#´ !#$ µ µ *,RYQQVNNN 8PUM_WWW\TTRQR_WWW µ"µ² 2ZZZYQQOR_WWW_WWW^^^ 1N[SS /+1 :8(* PRYQQVNNN`XXX')UM\TTZZZ_WWWYQQP`XXX¸P\TTZRRµ±¶² ¶µ²±# ± %!#° %!#´ $ #´± ° +-\\\N^^^[SSR 1-NYQQR^^^ ´ !" 0VNN[SS[SSR^^^ 8aYYY_WWWRRaYYY*,(* :8(* Q\\\NUMYQQ')[[[R_WWWaYYYVNN\TT]]]`XXX¸P\TT ±"¶²±¶µ²±# ²°%!#°´%!#´ ²´! ´ *,N_WWWN 1-ZZZ_WWW`XXXaYYY µ² " )+R[SS 8aYYY_WWWRRaYYY 31- :8(* PUMZZZ_WWW`XXXaYYY')XPP\TTYQQQR_WWWSK¸P\TTZRRµ"¶²µ¶µ²±# ±´%!#²$ %!#° °!´$ 1N_WWWN 1-\TTYQQaYYY ´"!´ 7NSKR 1N[SSR 28 :8(* YQQN_WWWN')Q_WWWN]UUUR`XXX]]]¸P\TTZRR °²¶²!¶µ²±# ²"%!# ´%!#± #µ±° ! 3\TTRYQQYQQR 3RYQQ`XXX\TT[SS µ$ "! 1VNNOR_WWWaYYY^^^ 8aYYY_WWWRRaYYY 8*, :8(* [SS\TTRYQQYQQR')\TT]UUUR_WWWaYYY\TT[SS`XXX^^^`XXX ±´¶²±¶µ²±# ±±%!#°#%!#° !´$ # " +-N[[[\TT[SS 5R_WWWR___ µ$ µ 5N`XXX`XXXNVNNP 8aYYY_WWWRRaYYY 33/ :8(* Q]UUUR_WWW')SKVNN_WWW]UUU\TTXPPR¸P\TTZRR µ²¶²µ¶µ²±# ²´%!# °%!#´
(*5(*3 °±² ³ 2! ³ 1-N[SSQ`XXX³\TT[SS 8R`XXX`XXXVNN\TT[SS 1-N[SSQ\TTZZZaYYY µ ¶rd Normal Form ³¶NF´ `orders` `customer_phones` `products` order_id product_id quantity customer_id phone_number phone_type product_id product_number price ± ± ± µ²´! ´±$ ³!!#³°"²# YQQN[SSQ ± ´´µ°´$ °¸´$ ± µ ° µ²´! ´±$ ³!""³±#´° PRYQQYQQ µ "$ µ°´  °$ ¸$ $ µ ° µ !#$ µ $ ´$ ³ #²³#´$ $ YQQN[SSQ ° $ ´$ ´µ° $ ¸$ $ µ ´ ± $ #´± !µ³!$ !³$ ´´µ YQQN[SSQ ´ $ ´²µ°´ ± ¸  µ µ ± $ #´± !µ³!$ !³$ ´´µ PRYQQYQQ ""µµ´± µ°¸  µ ± $ #´± !µ³!$ !³$ ´´µ SKN]]] ! ±±µ°#´ µ¸$ $ µ ! µ ²´! !²°³µ°´³#±"  YQQN[SSQ " µ°´µ°´ ´°¸  ° " ± °!´$ !!µ³"µ$ ³±°"! YQQN[SSQ # $ ² µ´° ²¸$ $ ´ # ´ #µ±° #!´³´$ "³$ !!µ YQQN[SSQ $ #´#°´´ ´¸#$ ´ $ ! #µ±° #²°³$ "´³""±  PRYQQYQQ ±² #´°µ´  ±µ¸  ±² µ !´$ # °!²³´°°³!°²² YQQN[SSQ ±± °#$ ´µ² ´¸$ $ ±± ° ±µ ±$ ´ °² #¸´$ µ ± ±° "°´°²´ ´¸´$ ! ±µ ° ±´ !$ ´°´± µ´¸$ $ " ±° ± ±  °$ µ´ µ "¸$ $ " ±´ ° " ±  µ `customer_orders` order_id customer_id order_date ± µ²´! ²°¶²´¶µ²±# µµ%!#±±%!#´ µ !#$ µ µ±¶² ¶µ²±# ± %!#° %!#´ ° $ #´± ±"¶²±¶µ²±# ²°%!#°´%!#´ ´ ²´! µ"¶²µ¶µ²±# ±´%!#²$ %!#° °!´$ °²¶²!¶µ²±# ²"%!# ´%!#± ! #µ±° ±´¶²±¶µ²±# ±±%!#°#%!#° " !´$ # µ²¶²µ¶µ²±# ²´%!# °%!#´ `customers` customer_id customer_name address state country email µ²´! ,.aYYYUMN[SS 1-\TT\TT]UUUR_WWW ´°±µ <DVNNYQQXPPVNN[SS`XXX\TT[SS *,\TT 41- :8(* RUM\TT\TT]UUUR_WWW')PRZRR\TT]UUUYQQ`XXX !#$ µ *,RYQQVNNN 8PUM_WWW\TTRQR_WWW µ"µ² 2ZZZYQQOR_WWW_WWW^^^ 1N[SS /+1 :8(* PRYQQVNNN`XXX')UM\TTZZZ_WWWYQQP`XXX¸P\TTZRR $ #´± +-\\\N^^^[SSR 1-NYQQR^^^ ´ !" 0VNN[SS[SSR^^^ 8aYYY_WWWRRaYYY*,(* :8(* Q\\\NUMYQQ')[[[R_WWWaYYYVNN\TT]]]`XXX¸P\TT ²´! *,N_WWWN 1-ZZZ_WWW`XXXaYYY µ² " )+R[SS 8aYYY_WWWRRaYYY 31- :8(* PUMZZZ_WWW`XXXaYYY')XPP\TTYQQQR_WWWSK¸P\TTZRR °!´$ 1N_WWWN 1-\TTYQQaYYY ´"!´ 7NSKR 1N[SSR 28 :8(* YQQN_WWWN')Q_WWWN]UUUR`XXX]]]¸P\TTZRR #µ±° 3\TTRYQQYQQR 3RYQQ`XXX\TT[SS µ$ "! 1VNNOR_WWWaYYY^^^ 8aYYY_WWWRRaYYY 8*, :8(* [SS\TTRYQQYQQR')\TT]UUUR_WWWaYYY\TT[SS`XXX^^^`XXX !´$ # +-N[[[\TT[SS 5R_WWWR___ µ$ µ 5N`XXX`XXXNVNNP 8aYYY_WWWRRaYYY 33/ :8(* Q]UUUR_WWW')SKVNN_WWW]UUU\TTXPPR¸P\TTZRR Data Store example: Denormalized for Analytics Applications ³fast access´ `customer_orders` order_id customer_id order_date total_price ± µ²´! ²°¶²´¶µ²±# µµ%!#±±%!#´ ±µ°¸´! µ !#$ µ µ±¶² ¶µ²±# ± %!#° %!#´ !#¸´  ° $ #´± ±"¶²±¶µ²±# ²°%!#°´%!#´ ´°¸  ´ ²´! µ"¶²µ¶µ²±# ±´%!#²$ %!#° °°¸° °!´$ °²¶²!¶µ²±# ²"%!# ´%!#± "$ ¸$ ! ! #µ±° ±´¶²±¶µ²±# ±±%!#°#%!#° µ ¸´" " !´$ # µ²¶²µ¶µ²±# ²´%!# °%!#´ $ ¸´´
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help

Browse Popular Homework Q&A

Q: Which statement is true of networking?     It occurs only in-person, not online.     It can be…
Q: a Blue is dominant (B) to green (b) in a specific species of lizards. В b ВВ В Вь ВЬ What is the…
Q: Your friend’s portfolio consistently plots above the Security Market Line. As a result, your friend…
Q: How was Hitler able to come to power in Germany, and maintain it?
Q: 4. Write in the product, including stereochemistry where relevant, for these reactions. See end of…
Q: Define swapping in?
Q: Differentiate between and .
Q: Assume you are using T-flipflops. Find the input functions Tw, Tx, Ty. W 0 0 0 0 1 1 1 1 X 0 0 1 0 0…
Q: Which of the following statements about the American Revolution is true? O It inspired the people of…
Q: Under prospect theory, the shape of the utility function implies that investors are
Q: In the morning, a cup of hot coffee hot coffee is 210 degrees Fahrenheit and the kitchen where the…
Q: There is a competition at the local movie theater for free movie tickets. You must guess all four…
Q: 10 5 TAltitude in thousands of feet 5 10 15 What is the highest altitude reached during the trip? 20…
Q: A 20.0 nF capacitor is connected across an AC generator that produces a peak voltage of 4.10 V. ▼…
Q: Consider the linear equation 3x – 6y = 24 a. What is the slope of line presented by the equation? b.…
Q: What is meant by pipelining?
Q: To fight recession, the Fed will: (Select all that apply)   A. Buy securities on the open market.…
Q: Suppose that a population of rabbits cannot exceed 1,000 rabbits. The growth rate is 0.4 per year.…
Q: 2. What do the items in the list describe? Bacon's Rebellion House of Burgesses Development of…
Q: m 4. , using the following steps. In(x) xxx0.01 Compute lim In(x) xxx100 We want to obtain the limit…
Q: 6-66 Let x and y be independent random variables with variances of and o2, respectively. Consider…
Q: Q.12 What is passive and active attacks in information security explain with suitable example.