Entities, Instances, Attributes and Identifiers. 2 home back first prev next last What Will I Learn? In this lesson, you will learn to: –Define and give.

Slides:



Advertisements
Similar presentations
Sorting Rows. 2 home back first prev next last What Will I Learn? In this lesson, you will learn to: –Construct a query to sort a results set in ascending.
Advertisements

Database Design Lessons 2 & 3 Database Models, Entities, Relationships.
Chapter 6: Entity-Relationship Model (part I)
Entity, Attribute, and Relationship DATA ENTITY TYPE: a noun, i.e. roles, events, locations, people, tangible things about which we wish to maintain.
Data Design The futureERD - CardinalityCODINGRelationshipsDefinition.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Database Design Concepts Info 1408 Lecture 2 An Introduction to Data Storage.
Systems Analysis and Design in a Changing World, 6th Edition
Database Design Concepts Info1408
Database Design Concepts Info 1408 Lecture 2 An Introduction to Data Storage.
Database Design Concepts Lecture 7 Introduction to E:R Modelling Identifying Entities.
APPENDIX C DESIGNING DATABASES
MIS2502: Data Analytics Relational Data Modeling
Oracle Academy -Week 1-.
Data Modeling Using the Entity-Relationship Model
IT 244 Database Management System Data Modeling 1 Ref: A First Course in Database System Jeffrey D Ullman & Jennifer Widom.
Module 2: Conceptual Data Modeling with ERD
1 Web-Enabled Decision Support Systems Entity-Relationship Modeling Prof. Name Position (123) University Name.
DeSiamorewww.desiamore.com/ifm1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
CSE314 Database Systems Data Modeling Using the Entity- Relationship (ER) Model Doç. Dr. Mehmet Göktürk src: Elmasri & Navanthe 6E Pearson Ed Slide Set.
ระบบฐานข้อมูลขั้นสูง (Advanced Database Systems) Lecturer AJ. Suwan Janin Phone:
Overview of Database Development
1 Advanced Computer Programming Databases. Overview What is a database? Database Basics Database Components Data Models Normalization Database Design.
Module Title? Data Base Design 30/6/2007 Entity Relationship Diagrams (ERDs)
Database Design Sections 6 & 7 Second Normal Form (2NF), Unique Identifiers (UID), Third Normal Form (3NF), Arcs, Hierarchies and Recursive relationships.
Artificial, Composite and Secondary UIDs
Database Systems Lecture # 7 8 th Feb, Conceptual and Logical Design Person buys Product name pricenamessn Conceptual Model: Relational Model: (plus.
Copyright Ó Oracle Corporation, All rights reserved. Normalization Use the student note section below for further explanation of the slide content.Use.
MIS 3053 Database Design & Applications The University of Tulsa Professor: Akhilesh Bajaj ER Model Lecture 1 © Akhilesh Bajaj, 2000, 2002, 2003, 2004.
Systems Analysis and Design in a Changing World, 6th Edition 1 Chapter 4 - Domain Classes.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Plug-In T5: Designing Database Applications Business Driven Technology.
 Fundamentally, data mining is about processing data and identifying patterns and trends in that information so that you can decide or judge.  Data.
1.  An introduction to data modelling  The purpose of data modelling  Modelling data relationships 2.
Systems Analysis and Design in a Changing World, 6th Edition 1 Chapter 4 Domain Classes.
1. Objectives At the end of this chapter you should be able to:  Discuss the use and features of a data model  Define the terms entity and attribute.
Entity-Relationship (ER) Modelling ER modelling - Identify entities - Identify relationships - Construct ER diagram - Collect attributes for entities &
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
DeSiamorePowered by DeSiaMore1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
3 & 4 1 Chapters 3 and 4 Drawing ERDs October 16, 2006 Week 3.
Msigwaemhttp//:msigwaem.ueuo.com/1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
Student Page Title Introduction Task Process Evaluation Conclusion Credits [Teacher Page]Teacher Page A WebQuest for 5th Grade Science Designed by Aaron.
ERD ( Conceptual data model From the statement of data requirements a conceptual data model is produced. This describes.
Identifying Relationships. 2 home back first prev next last What Will I Learn? In this lesson, you will learn to: –Interpret and describe relationship.
Quiz questions. 1 A data structure that is made up of fields and records? Table.
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management
Subtype Mapping. 2 home back first prev next last What Will I Learn? In this lesson, you will learn to: –State and apply the table, column, identifiers,
Supertypes and Subtypes
Copyright Ó Oracle Corporation, All rights reserved. Assign Unique Identifiers A Unique Identifier (UID) is any combination of attributes and/or.
Introduction to Functions – Single Row Functions.
Resolving Many-to-Many Relationships. 2 home back first prev next last What Will I Learn? In this lesson, you will learn to: –Identify attributes which.
MIS2502: Data Analytics Relational Data Modeling
Teachers must identify the site in order to let the students use it.
Chapter 3: Modeling Data in the Organization. Business Rules Statements that define or constrain some aspect of the business Assert business structure.
April 20022CS3X1 Database Design The relational model John Wordsworth Department of Computer Science The University of Reading
1 Information System Analysis Topic-3. 2 Entity Relationship Diagram \ Definition An entity-relationship (ER) diagram is a specialized graphic that illustrates.
ERD :: 19 / 1 / Entity-Relationship (ER) Modeling. ER Modeling is a top-down approach to database design. Entity Relationship (ER) Diagram –A.
1 Database Design Sections 6 & 7 First Normal Form (1NF), Second Normal Form (2NF), Unique Identifiers (UID), Third Normal Form (3NF), Arcs, Hierarchies.
DATA MODELING AND DATABASE DESIGN
Let try to identify the conectivity of these entity relationship
Database Fundamentals
© The McGraw-Hill Companies, All Rights Reserved APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
MIS2502: Data Analytics Relational Data Modeling
MIS2502: Data Analytics Relational Data Modeling
MIS2502: Data Analytics Relational Data Modeling 2
Database Management system
Database Management system
DATA MODELING AND DATABASE DESIGN
Database Fundamentals
Presentation transcript:

Entities, Instances, Attributes and Identifiers

2 home back first prev next last What Will I Learn? In this lesson, you will learn to: –Define and give an example of an entity –Distinguish between an entity and an instance of an entity –Name and describe attributes for a given entity –Distinguish between an attribute and its value –Distinguish between mandatory and optional attributes, and between volatile and nonvolatile attributes –Select and justify a unique identifier (UID) for an entity

3 home back first prev next last Why Learn It? Knowing how to organize and classify data makes it possible to draw useful conclusions about seemingly random facts. Our technology rich world produces vast quantities of facts in need of structure and order. It is important to learn about entities because they are the things about which we store data. –For example:  A school needs to store data about (as a minimum): STUDENTs, TEACHERs, COURSEs, ROOMs, GRADEs.

4 home back first prev next last Why Learn It? It is important to learn about attributes because they provide more information about the entities. –Attributes help you be more specific about what data you need to track. –For example:  In your school, you need to list the different names of students so you can distinguish different students.  You also need to know names of the teachers, the number of the seats in each room, the credits of each course, and so on… …

5 home back first prev next last Why Learn It? What about unique identifiers? –It is important to learn about unique identifiers because they distinguish one instance of an entity from another. For example: –In a classroom, you need to distinguish between one person and another. –When classifying your CD collection, you need to be able to locate a particular CD. –When listing transactions on a financial statement you need to be able to distinguish between multiple transactions that occurred on the same day.

6 home back first prev next last What is the “main thing”? Look at the magazine advertisements and the Internet sites identified by the teacher. What is the “main thing” that each ad or website is about?

7 home back first prev next last Entity An entity is: –“Something” of significance to the business about which data must be known –A name for a set of similar things that you can list –Usually a noun Examples: objects, events, people –Entities have instances. An instance is a single occurrence of an entity.

8 home back first prev next last Entities and Instances

9 home back first prev next last Entities and Instances There are many entities. –Some entities have many instances; some have only a few.  A Dalmatian ( 达尔马提亚人, 达尔马提亚狗 ), a Siamese cat( 暹罗猫 ), a cow, and a pig are instances of ANIMAL.  A convertible ( 敞篷汽车:车顶可以折卸的汽车 ), a sedan ( 私 家轿车 ), and a station wagon ( 旅行车 ) are instances of CAR. Entities can be: –Tangible, like PERSON or PRODUCT –Non tangible, like SKILL LEVEL –An event, like CONCERT

10 home back first prev next last Entities and Instances Is DOG an instance or an entity? It depends: –If we are interested in different kinds of animals, it makes sense to think of an entity ANIMAL with instances DOG, CAT, HORSE and so on –But what if we run a dog-breeding business? We need to keep data on many different breeds of dog, but not on other species of animal. –For a dog-breeder, it is more natural to think of an entity DOG with instances TERRIER( 一种灵敏的 小猎狗 ), POODLE ( 狮子狗 ), LABRADOR ( 拉布拉多猎 狗 ) and so on.

11 home back first prev next last What is an attribute? Like an entity, an attribute represents something of significance to the business. An attribute is a specific piece of information that: –Describes an entity –Quantifies an entity –Qualifies an entity –Classifies an entity –Specifies an entity An attribute has a single value.

12 home back first prev next last What is an attribute? Attributes have values. –An attribute value can be a number, a character string, a date, an image, a sound, etc.  These are called "data types" or "formats." –Every attribute has a data type.

13 home back first prev next last What is an attribute? What would be the data types of the CUSTOMER attributes? –For example, “family name” would be a character string. –Attributes are single-valued. Each attribute can have only one value (at any point in time) for each instance of the entity.

14 home back first prev next last What is an attribute? Some attributes (such as age) have values that constantly change. These are called volatile attributes. Other attributes (such as order date) will change rarely, if ever. These are nonvolatile attributes. If there is a choice between attributes, use the nonvolatile one. For example, use birth date instead of age.

15 home back first prev next last What is an attribute? Some attributes must have a value. These are mandatory attributes. –For example:  in most businesses that track personal information, “name” is required. Others attributes may have a value or be left null. These are optional attributes. –For example:  cell phone number is often not required, except in mobile or wireless applications.  address could be a mandatory attribute for EMPLOYEE if you are modeling an application. It could be optional for a CUSTOMER if you are modeling an online catalog.

16 home back first prev next last Attributes of SONG A disc jockey (DJ) has to be familiar with all kinds of music -- songs, soundtracks, etc. If we were to model a DJ business, the entity that holds the collection of music could be called SONG. A SONG has attributes. What attributes would it have? Can you give examples of values for each attribute?

17 home back first prev next last A SONG has a unique identifier (UID) A UID is an attribute or combination of attributes that distinguish one song from another. How do you find a particular song in the whole collection? What would be a unique identifier for SONG? Think about all the students in the classroom. –Each student is described by several traits or attributes. –Which attribute or attributes allow you to pick a single student from the rest of the class? –That is the student’s UID.

18 home back first prev next last Terminology Key terms used in this lesson include: –Entity –Instance –Tangible –Nontangible/ Intangible –Attribute –Data type –Volatile –Mandatory –Optional –Null –Single valued –Unique identifier (UID)

19 home back first prev next last Summary In this lesson, you have learned to: –Define and give an example of an entity –Distinguish between an entity and an instance of an entity –Name and describe attributes for a given entity –Distinguish between an attribute and its value –Distinguish between mandatory and optional attributes, and between volatile and nonvolatile attributes –Select and justify a unique identifier (UID) for an entity

20 home back first prev next last Practice Guide The link for the lesson practice guide can be found in the course outline.