th.
ketiadaan
ถาม - ตอบ
รายการด้านบน
แท็ก
ถาม - ตอบ
รายการด้านบน
แท็ก
ข้อใดสามารถเป็น Multi Valued Attribute ได้
1 ปีs ที่ผ่านมา
ความเห็น:
0
มุมมอง:
68
Share
Like
</td> </tr> </table></td> <td width="782" align="center" valign="top" bgcolor="#FFFFFF"><p class="po" style="font-size:12px;color:#FFF">ห</p> <p class="po">ขั้นตอนการพัฒนาระบบฐานข้อมูล</p> <table width="500" border="0" align="left" cellpadding="0" cellspacing="0"> <tr> <td width="54"><img src="http://202.29.239.50/temp/2560/class/pi/graphicloads-100-flat-2-arrow-next-3.ico" alt="" width="35" height="35"></td> <td width="446" class="iu" style="font-size:28px"><table width="500" border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td>การออกแบบฐานข้อมูลโดยใช้โมเดลแบบE-R</td> </tr> </tbody> </table></td> </tr> </table> <p>&nbsp;</p> <table width="700" border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="top" class="iu"><p>ในการเขียน E-R Diagram จะต้องทำความเข้าใจเกี่ยวกับส่วนประกอบต่าง ๆ ของ E-R ดังต่อไปนี้</p> <p><strong>– Entity</strong><br> entity แทนที่ สิ่ง ซึ่งอาจจะเป็นทั้งคน วัตถุ สิ่งของ หรือสิ่งซึ่งเป็นนามธรรมจับต้องไม่ได้ ใช้แทนที่สิ่งในโลกความเป็นจริงแต่ละ entity แทนที่ด้วยชื่อของ entity ในรูปสี่เหลี่ยมผืนผ้า</p> <p><strong>– Attribute</strong><br> attributes ใช้แสดงถึงคุณสมบัติของ entity เช่น ชื่อ นามสกุล &nbsp;เลขประจำตัว &nbsp;ที่อยู่ ฯลฯ แทนที่ด้วยชื่อของ attribute ในรูปวงรี</p> <p><a target="_blank" href="https://msit5.files.wordpress.com/2013/09/e-r1.jpg"><img data-attachment-id="461" data-permalink="https://msit5.wordpress.com/2013/09/17/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%ad%e0%b8%ad%e0%b8%81%e0%b9%81%e0%b8%9a%e0%b8%9a%e0%b8%82%e0%b9%89%e0%b8%ad%e0%b8%a1%e0%b8%b9%e0%b8%a5%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-e-r-diagram-entity-relation/e-r1/" data-orig-file="https://msit5.files.wordpress.com/2013/09/e-r1.jpg" data-orig-size="541,389" data-comments-opened="1" data-image-meta="{'aperture':'0','credit':'','camera':'','caption':'','created_timestamp':'0','copyright':'','focal_length':'0','iso':'0','shutter_speed':'0','title':''}" data-image-title="e-r1" data-image-description="" data-medium-file="https://msit5.files.wordpress.com/2013/09/e-r1.jpg?w=541&h=389" data-large-file="https://msit5.files.wordpress.com/2013/09/e-r1.jpg?w=541" alt="e-r1" src="https://msit5.files.wordpress.com/2013/09/e-r1.jpg?w=541&h=389" width="541" height="389" srcset="https://msit5.files.wordpress.com/2013/09/e-r1.jpg 541w, https://msit5.files.wordpress.com/2013/09/e-r1.jpg?w=150&h=108 150w, https://msit5.files.wordpress.com/2013/09/e-r1.jpg?w=300&h=216 300w" sizes="(max-width: 541px) 100vw, 541px"><br> </a><br> จากภาพข้างบนแสดงถึง entity ที่ชื่อ Customer ซึ่งจะแสดงชื่อ entity อยู่ในรูปสี่เหลี่ยมผืนผ้า<br> ส่วน attribute จะแสดงชื่อ attribute อยู่ในรูปวงรี ซึ่งเชื่อมโยงกับ entity ด้วยเส้นตรงที่ลากเชื่อมระหว่าง entity และ attribute</p> <p><strong>Key attribute</strong><br> คือ attribute ที่ถูกกำหนดให้เป็น key ของ entity โดยแทนที่ด้วย attribute ที่ถูกขีดเส้นใต้ จากในภาพ account Id ถูกขีดเส้นใต้เพื่อแสดงว่า attribute นี้ถูกใช้เป็น key ของ entity Customer</p> <p><strong>Multi-valued attribute</strong><br> คือ attribute ที่มีค่าบรรจุอยู่มากกว่าหนึ่งค่า โดยแทนที่ด้วยวงกลมรูปไข่ซ้อนกันสองวง จากในภาพ attribute ที่ชื่อ otherUsers เป็น multi-valued attribute หมายถึง Customer สามารถมีผู้ใช้คนอื่น ๆ ที่ใช้บัญชีของ Customer ได้ (ผู้ใช้คนอื่นอาจจะเป็นญาติกับ Customer เช่น ลูก, ภรรยา, น้อง)</p> <p><strong>Derived attribute</strong><br> คือ attribute ที่ค่าของมันได้มาจากการคำนวณของ attribute อื่น โดยแทนที่ด้วยวงกลมรูปไข่ที่เป็นเส้นประ &nbsp;จากในภาพ attribute ที่ชื่อ numberRentals หรือจำนวนที่เช่าซึ่งได้มาจากการรวมจำนวนสินค้าที่เช่าทั้งหมดเข้าด้วยกัน</p> <p><strong>Composite attribute</strong><br> คือ attribute ที่สามารถแยกออกเป็น attribute ย่อย ๆ ได้หลาย attribute แทนที่โดยชื่อ attribute ใน วงกลมรูปไข่ที่มีเส้นตรงลากไปเชื่อมโยงกับ attribute หลัก จากในภาพ attribute ที่ชื่อ address สามารถแยกออกเป็น attribute ย่อยที่ชื่อ street, city, state, zipcode &nbsp;ได้อีก</p> <p><strong>Relationship Types</strong><br> ใช้แสดงความสัมพันธ์ระหว่าง entity โดยแทนที่ด้วยรูปสี่เหลี่ยมข้าวหลามตัด ดังในภาพข้างล่าง Store &nbsp;Owns (เป็นเจ้าของ) &nbsp;Video (ในกรณีที่อ่านจากซ้ายไปขวา) หรือ Video IsOwnedBy (ถูกเป็นเจ้าของโดย) Store (ในกรณีที่อ่านจากขวาไปซ้าย) &nbsp;พึงสังเกตุว่าชื่อของ relationship types จะต้องเป็นคำกริยาเสมอ &nbsp;และความสัมพันธ์สามารถมี attribute ของตัวเองได้ เช่นในภาพ ความสัมพันธ์ Owns มี attribute คือ purchase Date และ cost</p> <p><a target="_blank" href="https://msit5.files.wordpress.com/2013/09/e-r2.jpg"><img data-attachment-id="462" data-permalink="https://msit5.wordpress.com/2013/09/17/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%ad%e0%b8%ad%e0%b8%81%e0%b9%81%e0%b8%9a%e0%b8%9a%e0%b8%82%e0%b9%89%e0%b8%ad%e0%b8%a1%e0%b8%b9%e0%b8%a5%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-e-r-diagram-entity-relation/e-r2/" data-orig-file="https://msit5.files.wordpress.com/2013/09/e-r2.jpg" data-orig-size="542,259" data-comments-opened="1" data-image-meta="{'aperture':'0','credit':'','camera':'','caption':'','created_timestamp':'0','copyright':'','focal_length':'0','iso':'0','shutter_speed':'0','title':''}" data-image-title="e-r2" data-image-description="" data-medium-file="https://msit5.files.wordpress.com/2013/09/e-r2.jpg?w=542&h=259" data-large-file="https://msit5.files.wordpress.com/2013/09/e-r2.jpg?w=542" alt="e-r2" src="https://msit5.files.wordpress.com/2013/09/e-r2.jpg?w=542&h=259" width="542" height="259" srcset="https://msit5.files.wordpress.com/2013/09/e-r2.jpg 542w, https://msit5.files.wordpress.com/2013/09/e-r2.jpg?w=150&h=72 150w, https://msit5.files.wordpress.com/2013/09/e-r2.jpg?w=300&h=143 300w" sizes="(max-width: 542px) 100vw, 542px"></a></p> <p><strong>Cardinality Constraints</strong><br> ใช้แสดงถึงข้อกำหนดของความสัมพันธ์ระหว่าง entity &nbsp;แบ่งออกเป็นสองแบบคือ&nbsp;</p> <p><strong>Cardinality ratio</strong><br> ใช้แสดงถึงอัตราส่วนของความสัมพันธ์ แทนที่ด้วยตัวเลข 1, M และ N<br> 1 :&nbsp; 1 &nbsp; &nbsp; &nbsp; &nbsp;แทนความสัมพันธ์แบบหนึ่งต่อหนึ่ง<br> 1 :&nbsp; N &nbsp; &nbsp; &nbsp; &nbsp;แทนความสัมพันธ์แบบหนึ่งต่อหลาย<br> M : N &nbsp; &nbsp; &nbsp; &nbsp;แทนความสัมพันธ์แบบหลายต่อหลาย</p> <p><strong>Participation</strong><br> ใช้แสดงการมีส่วนร่วมในความสัมพันธ์ของสมาชิกใน entity แทนที่ด้วยเส้นตรงหรือเส้นคู่<br> total &nbsp;(เส้นคู่) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ทุก ๆ สมาชิกที่อยู่ใน entity จะต้องอยู่ในความสัมพันธ์ทั้งหมด<br> partial &nbsp;(เส้นเดี่ยว) &nbsp; &nbsp; &nbsp;บางส่วนของสมาชิกที่อยู่ใน entity เท่านั้นที่อยู่ในความสัมพันธ์</p> <p>จากภาพข้างล่าง Store มีความสัมพันธ์ Owns กับ Video &nbsp;โดยหนึ่ง Store สามารถเป็นเจ้าของ Video ได้จำนวนหลาย ๆ Video &nbsp; แต่ว่าแต่ละ Video สามารถถูกเป็นเจ้าของได้โดย Store เพียงหนึ่ง Store เท่านั้น และแต่ละ Store อาจจะมี Video อยู่ในร้านหรือไม่มีก็ได้ (เส้นเดี่ยว) &nbsp;ในขณะที่ Video ทุก ๆ ม้วนจะต้องถูกเป็นเจ้าของโดยร้านค้าหนึ่งร้านเสมอ (เส้นคู่)</p> <p><a target="_blank" href="https://msit5.files.wordpress.com/2013/09/e-r3.jpg"><img data-attachment-id="463" data-permalink="https://msit5.wordpress.com/2013/09/17/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%ad%e0%b8%ad%e0%b8%81%e0%b9%81%e0%b8%9a%e0%b8%9a%e0%b8%82%e0%b9%89%e0%b8%ad%e0%b8%a1%e0%b8%b9%e0%b8%a5%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-e-r-diagram-entity-relation/e-r3/" data-orig-file="https://msit5.files.wordpress.com/2013/09/e-r3.jpg" data-orig-size="551,234" data-comments-opened="1" data-image-meta="{'aperture':'0','credit':'','camera':'','caption':'','created_timestamp':'0','copyright':'','focal_length':'0','iso':'0','shutter_speed':'0','title':''}" data-image-title="e-r3" data-image-description="" data-medium-file="https://msit5.files.wordpress.com/2013/09/e-r3.jpg?w=551&h=234" data-large-file="https://msit5.files.wordpress.com/2013/09/e-r3.jpg?w=551" alt="e-r3" src="https://msit5.files.wordpress.com/2013/09/e-r3.jpg?w=551&h=234" width="551" height="234" srcset="https://msit5.files.wordpress.com/2013/09/e-r3.jpg 551w, https://msit5.files.wordpress.com/2013/09/e-r3.jpg?w=150&h=64 150w, https://msit5.files.wordpress.com/2013/09/e-r3.jpg?w=300&h=127 300w" sizes="(max-width: 551px) 100vw, 551px"></a><br> </p> <div class="iu"></div></td> </tr> </table> <table width="500" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="134"><a target="_blank" href="http://202.29.239.50/temp/2560/class/3-5.php"><img src="http://202.29.239.50/temp/2560/class/pi/back-icon1.png" width="86" height="102"></a></td> <td width="138" align="right"><a target="_blank" href="http://202.29.239.50/temp/2560/class/3.php"><img src="http://202.29.239.50/temp/2560/class/pi/Line3.gif" width="352" height="90"></a></td> <td width="228" align="right"><a target="_blank" href="http://202.29.239.50/temp/2560/class/3-7.php"><img src="http://202.29.239.50/temp/2560/class/pi/next.png" width="80" height="101"></a></td> </tr> </table></td> <td width="200" valign="top" bgcolor="#BDE7E7"><table width="201" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="201"><img src="http://202.29.239.50/temp/2560/class/pi/m5.png" width="200" height="250"></td> </tr> <tr> <td><img src="http://202.29.239.50/temp/2560/class/pi/m6.png" width="200" height="250"></td> </tr> <tr> <td align="center"><iframe marginwidth="0" marginheight="0" src="http://www.pttplc.com/th/GetOilPrice.aspx" frameborder="0" width="173" scrolling="no" height="305"></iframe>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> </tr> </table></td> </tr> </table> <map name="Map" id="Map"> <area shape="rect" coords="4,3,225,40" href="1.php"> <area shape="rect" coords="6,41,212,72" href="2.php"> <area shape="rect" coords="7,75,208,145" href="3.php"> <area shape="rect" coords="7,148,172,180" href="4..php"> <area shape="rect" coords="8,181,198,221" href="5.php"> <area shape="rect" coords="7,223,193,283" href="6.php"> <area shape="rect" coords="8,284,196,322" href="7.php"> <area shape="rect" coords="7,323,198,387" href="8.php"> </map> </body> </html></td></tr></table></td></tr></table></body></html>
Simple Attribute คือ
แอททริบิวต์ attribute คืออะไร
Weak Entity คือ
Key Attribute คือ
เอนทิตี้ คือ
Reply
5
1
แบ่งปัน
การโฆษณา
ข่าวล่าสุด
Nike renew lucent ดี ไหม
1 ปีs ที่ผ่านมา
. โดย
DiscordantElectricity
Net fiber ค่าย ไหน ดี
1 ปีs ที่ผ่านมา
. โดย
ErroneousCircus
Amd ryzen 7 2700u ดี ไหม
1 ปีs ที่ผ่านมา
. โดย
State-runFunction
บ้าน เลข ที่ ไม่ ดี
1 ปีs ที่ผ่านมา
. โดย
SundryCatfish
ติว สอบ ก ทม ที่ไหน ดี
1 ปีs ที่ผ่านมา
. โดย
DrowningTempo
ดี แม็ ก เอ็ ก ซี รี่ 2012
1 ปีs ที่ผ่านมา
. โดย
DigestivePullman
E85 ใช้ กับ รถ รุ่น ไหน
1 ปีs ที่ผ่านมา
. โดย
TameDespotism
ไทร ทัน cng มือ สอง ดี ไหม
1 ปีs ที่ผ่านมา
. โดย
CalmWatchdog
เพลง เด็๋ ก ดี 12 ประการ
1 ปีs ที่ผ่านมา
. โดย
BruisedAsthma
ดี ดี ทาวเวอร์ ให้ เช่า 2562
1 ปีs ที่ผ่านมา
. โดย
UnsettlingSarcasm
การโฆษณา
ผู้มีอำนาจ
การโฆษณา
home
en
de
fr
jp
ko
pt
zh
hi
it
th
tr
ลิขสิทธิ์ © 2024
th.
ketiadaan
Inc.