When the conceptual design phase is completed, the ERD reflects ? at the conceptual level-the business rules that , turn, define the entities, relationship, optional ties, connectives, cardinalities, and constraints. (Remember that some of the design elements cannot be modelled and are, therefore, enforced at the application level;. For example, the constraint, ?a checked out item must be returned within five days? cannot be reflected in the ERD.) In addition, the conceptual model includes the definition of the attributes that describe that describe each of the entities and are required to meet information requirements.
Keep in mind that the conceptual model?s entries must be normalized before they can be properly implemented. The normalization process may yield additional entities and relationships, thus requiring the modification of the initial ERD. We
meets
unit
this
in
verified
we
model
that the
sure
made
normalization requirements. In short, we used design and normalization reflects real-world practice. However, you should remember that the logical design process is used to translate the conceptual design into the internal model for the selected DBMS. To the extent that normalization helps establish the appropriate attributes, their characteristics, and their domains, normalization moves you to
conceptual
because the
Nevertheless,
phase.
design
logical
the
process does preclude the definition of attributes, you can reasonably argue that normalization occasionally straddles the line between conceptual and logical modelling.
The following few examples illustrate the design of the logical model using SQL. (Make sure that the table conform to the E-R model?s structure and that they obey the foreign rules if your DBMS software allows you to specify foreign keys.)
Using SQL, you can create the table structures within the database you have designated. For example, the STORAGE table would created with:
เมื่อขั้นตอนการออกแบบเสร็จสมบูรณ์ , ERD สะท้อน ? ในระดับแนวคิดกฎทางธุรกิจที่ , เปิด , สร้างองค์กร , ความสัมพันธ์ , ตัวเลือกเสมอ connectives cardinalities , และข้อจำกัด ( จำได้ว่าบางส่วนขององค์ประกอบของการออกแบบไม่สามารถจำลอง และ จึง บังคับใช้ในระดับ ; โปรแกรม ตัวอย่างเช่น , ข้อจำกัด , ?ตรวจสอบออกรายการจะต้องคืนภายใน 5 วัน ไม่สามารถสะท้อนใน ERD ) นอกจากนี้ แบบจำลองรวมถึงคำนิยามของแอตทริบิวต์ที่อธิบายที่อธิบายแต่ละหน่วยงาน และจะต้องตอบสนองความต้องการข้อมูล
เก็บไว้ในใจว่าแบบจำลอง ? ของรายการจะต้องปกติ ก่อนที่พวกเขาจะถูกนำมาใช้ขั้นตอนการฟื้นฟูอาจผลผลิตองค์กรเพิ่มเติมและความสัมพันธ์ และก่อให้เกิดการเปลี่ยนแปลงของ ERD เริ่มต้น เราพบ
ในหน่วยนี้ได้
เราแบบที่แน่นอน
ปกติทำให้ความต้องการ ในสั้น เราใช้แบบปกติและสะท้อนให้เห็นถึงการปฏิบัติที่เป็นจริง อย่างไรก็ตามคุณควรจำไว้ว่าขั้นตอนการออกแบบเชิงตรรกะที่ใช้แปลแนวคิดการออกแบบในรูปแบบภายในการเลือก DBMS . ในขอบเขตที่ปกติจะช่วยสร้างคุณลักษณะที่เหมาะสมของลักษณะ และโดเมนของพวกเขา บรรทัดฐานย้ายคุณ
2
เพราะ
แต่
เฟสการออกแบบตรรกะ
ไม่ขัดขวางกระบวนการนิยามคุณลักษณะที่คุณสามารถเชื่อยืนยันว่าปกติบางครั้งคร่อมเส้นแบ่งระหว่างแนวคิดและตรรกะแบบ
ต่อไปนี้ไม่กี่ตัวอย่างแสดงให้เห็นถึงการออกแบบของตรรกะแบบ SQL ( ให้แน่ใจว่าตารางที่สอดคล้องกับ E-R แบบจำลอง ?เป็นโครงสร้างที่พวกเขาปฏิบัติตามกฎต่างประเทศถ้า DBMS ของคุณซอฟต์แวร์ที่ช่วยให้คุณสามารถกำหนดคีย์ต่างประเทศ )
ใช้ SQL คุณสามารถสร้างโครงสร้างของตารางในฐานข้อมูลที่คุณเขต . ตัวอย่างเช่น กระเป๋าตารางจะสร้างด้วย
การแปล กรุณารอสักครู่..
