Databases and Warehousing/What is the difference between entities and attributes?

difference between entities and attributes แก้ไข


โครงสร้างข้อมูลของระบบคอมพิวเตอร์ จะมีลักษณะเป็นลำดับขั้นเริ่มตั้งแต่ bits ไปเป็น bytes, fields, records, files, database ดังรูป Figure 3.2 ซึ่งสำหรับ bit จะเป็นหน่วยของขนาดข้อมูลที่เริ่มทำการประมวลผล เช่น a0 a1 เป็นต้น กลุ่มของจำนวน 8 bits จะเรียกว่า Byte สำหรับ ในการเก็บข้อมูลตัวอักษรหนึ่ง character จะใช้ขนาด 1 byte ในการเก็บซึ่งอาจจะเป็นคำ ข้อความ ตัวเลข หรือ สัญลักษณ์ก็ได้ และในกลุ่มของตัวอักษร หรือ logical group เมื่อนำมารวมกันแล้วก็จะได้เป็นข้อความ หรือ จำนวนนับ ที่สมบูรณ์ เราจะเรียกว่า field สำหรับตัวอย่าง เช่น Student’ s name ก็จะปรากฎในรูปแบบของ field name

สำหรับ logical group ที่มีความสัมพันธ์กับ field เช่น ชื่อของลูกค้า ชื่อผลิตภัณท์ และ ชั่วโมงการทำงาน เป็นต้น ซึ่งความสัมพันธ์กับ field แต่ละ field จะเรียกว่า record และ ซึ่งความสัมพันธ์กับ record แต่ละ record จะเรียกว่า file ตัวอย่างเช่น ในการเรียนหนึ่ง course ก็จะประกอบด้วย student records หลายๆ student records นั้นเอง ดังนั้น ในฐานข้อมูล (Database) ก็จะประกอบไปด้วย files ต่างๆ เข้าด้วยกัน

ซึ่งในอีกลักษณะหนี่งที่เกี่ยวกับองค์ประกอบของ Database คือ record ซึ่งเราจะนิยามว่าเป็น entity, สำหรับ entity นั้นหมายความถึง คน สถานที่ สิ่งของ หรือ เหตุการณ์ ในแต่ละกระบวนการของข้อมูล ซึ่งแต่ละคุณสมบัติ หรือ คุณลักษณะต่างๆ ของ entity จะเรียก attribute (แสดงความสัมพันธกัน ของ field บนแต่ละ record) เช่น attribute ของ customer name จะมี invoice number, order number, order date.

Questions for Review แก้ไข

  1. /List the major sources of data.
  2. /List some of the major data problem.
  3. /What is the terabyte?(Write the number.)
  4. /Review the steps of the data life cycle and explain them.
  5. /List some of the categories of data available on the Internet.
  6. /Define data Quality.
  7. /Define document management.
  8. /Describe the hierarchy of a file management system.
  9. /What are the problems that arise from the file environment?
  10. /Discuss a relational database and how it differs from other databases.
  11. /What are the components of a database of a database management system (DBMS)?
  12. /What is the difference between the conceptual, logical and physical views of data?
  13. /How can you get data out of a database?
  14. /What are the benefits of using a DBMS?
  15. /What is the difference between entities and attributes?
  16. /Describe a data warehouse.
  17. /Describe a datamart.
  18. /Define a marketing transaction database.