You are a database designer who is hired to design a database for a DVD store. You have interviewed the
owner of the store and the conversation has been recorded as follows:
“I’m the owner of a medium size DVD store. We have over 10,000 DVDs that we need to keep track of.
Each of our DVD has a number. For each movie, we need to know its title and category (e.g. comedy,
suspense, drama, action, or SciFi), director and year. Yes, we do have multiple copies of many of our
movies. We give each movie a specific id, and then track which movie a DVD contains.
We always have at least one DVD for each movie we track, and each DVD is always a copy of a single,
specific movie. Our DVDs are adapted to the movie lengths, so we don’t have any movies, which require
multiple DVDs.
The movies are stored on shelf according to their category sorted by movie title. We are frequently asked for
movies starring specific actors, Johnny Depp is always popular. So we’d like to keep track of the star actors
appearing in each movie.
Customers like to know each actor’s “real” birth name and age. We track only actors who appear in the
movies in our inventory.
We have lots of customers. We only rent DVDs to people who have joined our “DVD club”. To belong to
our club, they must have good credit. For each club member, we’d like to keep his/her first and last name,
current phone number, and current address. And, of course each club member has a membership number.
Then we need to keep track of what DVDs each customer currently has checked out. A customer may check
out multiple DVDs at any given time. Rentals are for one or more days, each movie with an individual price
per day. Furthermore we additionally charge 10 baht for movies longer than 2 hours. Maximum rental time
is 4 weeks. The customer gets a bill with movie titles, number of rent days, individual prices and total
amount. The bill looks something like this…”
คุณเป็นนักออกแบบฐานข้อมูลที่จ้างมาออกแบบฐานข้อมูลสำหรับเก็บ DVD คุณได้คุยกับ
เจ้าของร้าน และสนทนาได้ถูกบันทึกไว้ดังนี้ :
" ฉันเป็นเจ้าของขนาดกลาง ดีวีดี ร้าน ขณะนี้มีกว่า 10 , 000 แผ่น ดีวีดี ที่เราต้องติดตาม
แต่ละดีวีดีของเรามีหมายเลข สำหรับภาพยนตร์แต่ละ เราต้องรู้ชื่อและประเภท ( เช่นตลก ,
ใจจดใจจ่อ , ดราม่า , แอ็คชั่นหรือ SciFi ผู้กำกับ และปี ใช่เรามีหลายชุดหลายของภาพยนตร์ของเรา
เราให้ภาพยนตร์แต่ละรหัสที่เฉพาะเจาะจง และติดตาม ซึ่งภาพยนตร์ดีวีดีที่มี .
เรามักจะมีอย่างน้อยหนึ่ง DVD สำหรับภาพยนตร์แต่ละ เราติดตามอยู่เสมอ และแต่ละดีวีดีสำเนาเดียว
ภาพยนตร์เฉพาะ ดีวีดีของเราจะปรับให้เข้ากับภาพยนตร์ความยาว เราไม่มีหนังที่ต้องใช้
ดีวีดีหลายภาพยนตร์ที่ถูกเก็บไว้บนหิ้งตามหมวดหมู่ เรียงตามชื่อภาพยนตร์ เราถูกถามบ่อยสำหรับ
ภาพยนตร์นำแสดงโดยนักแสดงเฉพาะ จอนนี่ เดป มักจะเป็นที่นิยม เราจึงอยากติดตามดารานักแสดงที่ปรากฏในภาพยนตร์แต่ละ
.
ลูกค้าต้องการทราบคือ " นักแสดงแต่ละที่แท้จริง " ชื่อ และอายุ เราติดตามแค่นักแสดงที่ปรากฏในหนังในสินค้าคงคลังของเรา
.เรามีจำนวนมากของลูกค้า เราแค่เช่าดีวีดี กับผู้ที่ได้เข้าร่วม " ดีวีดี คลับ " เป็นของ
คลับของเรา จะต้องมีเครดิตดี สำหรับสมาชิกคลับแต่ละ เราต้องการให้เขา / เธอ และชื่อ นามสกุล หมายเลขโทรศัพท์
ปัจจุบัน และที่อยู่ปัจจุบัน และแน่นอนสมาชิกคลับแต่ละคนมีสมาชิกหมายเลข .
แล้วเราต้องติดตามว่าดีวีดีแต่ละลูกค้าปัจจุบันมีการตรวจสอบลูกค้าสามารถตรวจสอบ
ออกดีวีดีหลาย ๆในเวลาใดก็ตาม ให้เช่าสำหรับหนึ่งหรือมากกว่าหนึ่งวัน ภาพยนตร์แต่ละ กับแต่ละบุคคลราคา
ต่อวัน นอกจากนี้เรายังคิดค่าบริการ 10 บาทสำหรับภาพยนตร์นานกว่า 2 ชั่วโมง สูงสุดเช่าเวลา
คือ 4 สัปดาห์ ลูกค้าได้รับบิลกับชื่อภาพยนตร์ , จำนวน , วัน , ราคาของแต่ละบุคคลและยอด
บิลดูอะไรแบบนี้ . . . . . . . "
การแปล กรุณารอสักครู่..
