8.1 Explain, one more time, the three ways that databases arise.
8.2 Describe why database redesign is necessary.
8.3 Explain the following statement in your own words: “Information systems and organizations
create each other.” How does this relate to database redesign?
8.4 Suppose that a table contains two nonkey columns: AdviserName and AdviserPhone.
Further suppose that you suspect that AdviserPhone : AdviserName. Explain how to
examine the data to determine if this supposition is true.
8.5 Write a subquery, other than one in this chapter, that is not a correlated subquery.
8.6 Explain the following statement: “The processing of correlated subqueries is nested,
whereas that of regular subqueries is not.”
8.7 Write a correlated subquery, other than one in this chapter.
8.8 Explain how the query in your answer to Review Question 8.5 differs from the query in
your answer to Review Question 8.7.
8.9 Explain what is wrong with the correlated subquery on page 317.
8.10 Write a correlated subquery to determine whether the data support the supposition in
Review Question 8.4.
8.11 Explain the meaning of the SQL keyword EXISTS.
8.12 Answer Review Question 8.10, but use the SQL EXISTS keyword.
8.13 Explain how the words any and all pertain to the SQL keywords EXISTS and NOT EXISTS.
8.14 Explain the processing of the query on page 319.
8.15 Using the View Ridge Gallery database, write a query that will display the names of any
customers who are interested in all artists.
8.16 Explain how the query in your answer to Review Question 8.15 works.
8.17 Why is it important to analyze the database before implementing database redesign
tasks? What can happen if this is not done?
8.18 Explain the process of reverse engineering.
8.19 Why is it important to carefully evaluate the results of reverse engineering?
8.20 What is a dependency graph? What purpose does it serve?
8.21 Explain the dependencies for WORK in the graph in Figure 8-3.
8.22 What sources are used when creating a dependency graph?
8.23 Explain two different types of test databases that should be used when testing
database redesign changes.
8.24 Explain the problems that can occur when changing the name of a table.
34 Part 3 Database Implementation
8.25 Describe the process of changing a table name.
8.26 Considering Figure 8-3, describe the tasks that need to be accomplished to change the
name of the table WORK to WORK_VERSION2.
8.27 Explain how views can simplify the process of changing a table name.
8.28 Under what conditions is the following SQL statement valid?
INSERT INTO T1 (A, B)
SELECT (C, D) FROM T2;
8.29 Show an SQL statement to add an integer column C1 to the table T2. Assume that C1
is NULL.
8.30 Extend your answer to Review Question 8.29 to add C1 when C1 is to be NOT NULL.
8.31 Show an SQL statement to drop the column C1 from table T2.
8.32 Describe the process for dropping primary key C1 and making the new primary key C2.
8.33 Which data type changes are the least risky?
8.34 Which data type changes are the most risky?
8.35 Write an SQL statement to change a column C1 to Char(10) NOT NULL. What conditions
must exist in the data for this change to be successful?
8.36 Explain how to change the minimum cardinality when a child that was required to
have a parent is no longer required to have one.
8.37 Explain how to change the minimum cardinality when a child that was not required to
have a parent is now required to have one. What condition must exist in the data for
this change to work?
8.38 Explain how to change the minimum cardinality when a parent that was required to
have a child is no longer required to have one.
8.39 Explain how to change the minimum cardinality when a parent that was not required
to have a child is now required to have one.
8.40 Describe how to change the maximum cardinality from 1:1 to 1:N. Assume that the
foreign key is on the side of the new child in the 1:N relationship.
8.41 Describe how to change the maximum cardinality from 1:1 to 1:N. Assume that the
foreign key is on the side of the new parent in the 1:N relationship.
8.42 Assume that tables T1 and T2 have a 1:1 relationship. Assume that T2 has the foreign
key. Show the SQL statements necessary to move the foreign key to T1. Make up your
own names for the primary and foreign keys.
8.43 Explain how to transform a 1:N relationship into an N:M relationship.
8.44 Suppose that tables T1 and T2 have a 1:N relationship. Show the SQL statements
necessary to fill an intersection T1_T2_INT. Make up your own names for the primary
and foreign keys.
8.45 Explain how the reduction of maximum cardinalities causes data loss.
8.46 Using the tables in your answer to Review Question 8.44, show the SQL statements
necessary to change the relationship back to 1:N. Assume that the first row in the
qualifying rows of the intersection table is to provide the foreign key. Use the keys and
foreign keys from your answer to Review Question 8.44.
8.47 Using the results of your answer to Review Question 8.46, explain what must be done
to convert this relationship to 1:1. Use the keys and foreign keys from your answer to
Review Question 8.46.
hapter 8 Database Redesign 335
8.48 In general terms, what must be done to add a new relationship?
8.49 Suppose that tables T1 and T2 have a 1:N relationship, with T2 as the child. Show the
SQL statements necessary to remove table T1. Make your own assumptions about the
names of keys and foreign keys.
8.50 What are the risks and problems of forward engineering?
8.1 อธิบายอีกรอบ สามวิธีที่ฐานข้อมูลเกิดขึ้น อธิบายถึงการออกแบบฐานข้อมูล
8.2 เป็นสิ่งจำเป็น .
8.3 อธิบายข้อความต่อไปนี้ในคำของคุณเอง : " ระบบสารสนเทศและองค์กร
สร้างแต่ละอื่น ๆ " แล้วมันเกี่ยวกับการออกแบบฐานข้อมูล
( สมมติว่าตารางมีคอลัมน์ nonkey สอง : advisername adviserphone
และ .ต่อไปสมมติว่าคุณสงสัยว่า adviserphone : advisername . อธิบายวิธีการ
ศึกษาข้อมูลเพื่อตรวจสอบสมมุติฐานนี้เป็นจริง .
8.5 เขียน subquery อีกหนึ่งในบทนี้ว่า ไม่ได้มีความสัมพันธ์ subquery .
8.6 อธิบายข้อความต่อไปนี้ : " การประมวลผลของความสัมพันธ์ subqueries คือส่วนที่ซ้อนกัน
, subqueries ปกติไม่ได้เป็น "
8.7 เขียน subquery มีความสัมพันธ์ ,มากกว่าหนึ่งในบทนี้ .
8.8 อธิบายวิธีการตอบแบบสอบถามในการตรวจทานคำถาม 8.5 แตกต่างจากแบบสอบถามใน
คำตอบของคุณเพื่อทบทวนคำถาม 8.7 .
8.9 อธิบายสิ่งที่ผิดกับความสัมพันธ์ subquery บนหน้า 317 .
8.10 เขียนความสัมพันธ์ subquery เพื่อตรวจสอบว่าข้อมูลที่สนับสนุนสมมุติฐานใน
รีวิว คำถามที่ 4 .
8.11 อธิบายความหมายของ SQL คำหลักที่มีอยู่ .
812 ความคิดเห็นตอบคำถาม 8.10 แต่ใช้ SQL มีอยู่คำหลัก .
8.13 อธิบายว่า คำพูดใด ๆและทั้งหมดที่เกี่ยวข้องกับ SQL คำหลักที่มีอยู่และไม่ได้มีอยู่จริง
8.14 อธิบายการประมวลผลแบบสอบถามบนหน้า 319 .
8.15 ใช้มุมมองสันเขา Gallery ฐานข้อมูล , เขียนแบบสอบถามจะแสดงชื่อของลูกค้าใด ๆ ผู้ที่สนใจในศิลปินทุกคน
.
816 อธิบายวิธีการแบบสอบถามในคำตอบของคุณเพื่อทบทวนคำถามงาน 8.15 .
เพียง 30.5 ทำไมมันเป็นสิ่งสำคัญที่จะวิเคราะห์ฐานข้อมูลก่อนการใช้งานออกแบบ
ฐานข้อมูล ? จะเกิดอะไรขึ้นถ้ามันไม่เสร็จ
8.18 อธิบายกระบวนการวิศวกรรมย้อนกลับ .
8.19 และทำไมมันสำคัญที่จะประเมินอย่างรอบคอบ ผลของการวิศวกรรมย้อนกลับ ?
8.20 อะไรอ้างอิงกราฟ ? จุดประสงค์อะไรที่ให้บริการ ?
821 อธิบายการอ้างอิงสำหรับการทำงานในกราฟในรูปที่ 8-3 .
, แหล่งที่มาของสิ่งที่จะใช้เมื่อมีการสร้างเมืองขึ้นกราฟ ?
8.23 อธิบายสองประเภทที่แตกต่างกันของการทดสอบฐานข้อมูลที่ควรจะใช้เมื่อทดสอบการออกแบบฐานข้อมูลการเปลี่ยนแปลง
.
8.24 อธิบายปัญหาที่อาจเกิดขึ้นเมื่อมีการเปลี่ยนชื่อของตาราง ส่วนที่ 3 การใช้
34 ฐานข้อมูลได้รับการอธิบายกระบวนการของการเปลี่ยนชื่อตาราง .
8.26 พิจารณารูป 8-3 อธิบายงานที่ต้องทำเพื่อเปลี่ยน
ชื่อของตารางทำงาน work_version2 .
8.27 อธิบายว่ามุมมองที่สามารถลดความซับซ้อนของกระบวนการในการเปลี่ยนชื่อตาราง .
8.28 ภายใต้เงื่อนไขใดต่อไปนี้คือ SQL งบใช้ได้ แทรกลงใน T1
( a , b )
เลือก ( C , D ) จาก T2 ;
8.29 แสดงงบ SQL เพื่อเพิ่มคอลัมน์ไปยังตารางจำนวนเต็ม C1 T2สมมติว่าเป็นโมฆะ C1
.
8.30 ขยายความคำตอบของคุณเพื่อทบทวนคำถาม 8.29 เพิ่ม C1 เมื่อ C1 จะไม่ null .
ดาแสดงงบ SQL เพื่อลงคอลัมน์ C1 จากตาราง 2 .
สัดส่วนอธิบายกระบวนการสำหรับการวาง C1 คีย์หลักและคีย์หลักใหม่
8.33 ซึ่งประเภท C2 การเปลี่ยนแปลงข้อมูลมีความเสี่ยงน้อยที่สุด
8.34 ซึ่งประเภทข้อมูลมีการเปลี่ยนแปลงมากที่สุด
835 เขียนงบ SQL เพื่อเปลี่ยนคอลัมน์ C1 กับ Char ( 10 ) ไม่ null . เงื่อนไขอะไร
ต้องอยู่ในข้อมูลการเปลี่ยนแปลงนี้จะประสบความสำเร็จ ?
ใช้อธิบายวิธีการเปลี่ยนคาร์ดินาลลิตสุดเมื่อเป็นเด็กก็ต้องมีพ่อแม่
ไม่ต้องมี 1 .
8.37 อธิบายวิธีการเปลี่ยนคาร์ดินาลลิตสุดเมื่อ เด็กที่ไม่ต้อง
มีพ่อแม่เป็นต้องมี เงื่อนไขจะต้องมีอยู่ในข้อมูล
เปลี่ยนงานนี้ ?
8.38 อธิบายวิธีการเปลี่ยนคาร์ดินาลลิตสุดเมื่อพ่อแม่ที่จะต้อง
มีเด็กไม่ต้องมี 1 .
8.39 อธิบายวิธีการเปลี่ยนคาร์ดินาลลิตสุดเมื่อพ่อแม่ที่ไม่ต้อง
มีลูกตอนนี้ ต้องมี 1 .
840 อธิบายวิธีการเปลี่ยนภาวะเชิงการนับสูงสุดจาก 1 : 1 1 : N . สมมติว่า
คีย์ต่างประเทศเป็นในด้านของลูกใหม่ในความสัมพันธ์ 1 : N .
8.41 อธิบายวิธีการเปลี่ยนภาวะเชิงการนับสูงสุดจาก 1 : 1 1 : N . สมมติว่า
คีย์ต่างประเทศเป็นในด้านของผู้ปกครองใหม่ ใน 1 : ความสัมพันธ์ .
8.42 สมมติว่าตาราง T1 และ T2 มี 1 : 1 ความสัมพันธ์ สมมติว่ามีต่างชาติ T2
คีย์ แสดงงบ SQL ที่จำเป็นเพื่อย้ายคีย์ต่างประเทศ T1 . แต่งหน้าของคุณ
เองชื่อคีย์หลักและต่างประเทศ
8.43 อธิบายวิธีการแปลง 1 : N ความสัมพันธ์เป็น N : M ความสัมพันธ์ .
8.44 สมมติว่าตาราง T1 และ T2 มี 1 : ความสัมพันธ์ แสดงงบ SQL
จำเป็นต้องกรอกแยก t1_t2_int สร้างชื่อของคุณเองและต่างประเทศคีย์หลัก
.
845 อธิบายว่า การลดลงของ cardinalities สูงสุดทำให้เกิดการสูญเสียข้อมูล .
8.46 โดยใช้ตารางในคำตอบของคุณเพื่อทบทวนคำถาม 8.44 , แสดงงบ SQL
จำเป็นที่จะเปลี่ยนความสัมพันธ์กลับไป 1 . สมมติว่า แถวแรกในแถวของตารางรอบคัดเลือก
สี่แยกให้คีย์ต่างประเทศ ใช้ปุ่ม
คีย์ต่างประเทศจากคำตอบของคุณเพื่อทบทวนคำถาม 8.44 .
847 โดยใช้ผลลัพธ์ของคำตอบของคุณเพื่อทบทวนคำถาม 8.46 อธิบายสิ่งที่ต้องทำ
แปลงความสัมพันธ์นี้ไป 1 : 1 ใช้คีย์และคีย์ต่างประเทศ จากคำตอบของคุณ
ทบทวนคำถาม 8.46 .
hapter ออกแบบระบบฐานข้อมูล 335
8.48 ในแง่ทั่วไป จะต้องทำอะไรเพื่อเพิ่มความสัมพันธ์ใหม่
8.49 สมมติว่าตาราง T1 และ T2 มี 1 : ความสัมพันธ์กับ T2 เป็นเด็ก แสดง
งบ SQL ที่จำเป็นเพื่อลบตาราง T1 . สรุปเอาเองเกี่ยวกับ
ชื่อของคีย์และคีย์ต่างประเทศ .
4 อะไรคือความเสี่ยงและปัญหาไปข้างหน้าวิศวกรรม ?
การแปล กรุณารอสักครู่..
