













Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!














Asma Irfan Department of Computer Science Bahria University (Karachi Campus) [email protected] https://sites.google.com/site/asmair fanbukc
2
When a good database blueprint is available, differences in view of data by different employees/departments do not matter anymore. 4
(^) Anything about which data are to be collected and stored (a person, a place, a thing, or an event). Example: CUSTOMER (^) Each entity occurrence is unique and distinct
(^) A characteristic of an entity Example: customer name, customer phone number, etc.
(^) Describes an association among entities For example, a relationship between customers and agents can be described as “an agent can serve many 5
(^) A restriction placed on the data (^) Helps ensure data integrity (^) Examples: (^) A student’s GPA must be between 0.00 and 4. (^) Each class must have one and only one teacher (^) An employee’s salary must be between 6,000 and 350, 7
(^) A brief, precise and unambiguous description of a policy, procedure, or principle within a specific organization. (Note: an organization could be a business, government unit, research laboratory, university, etc. that stores and uses data to generate information) Used in defining entities, attributes, relationships and constraints. (^) Nouns for entities, verbs for relationships (^) Examples:
(^) To manage large amount of data for complex manufacturing projects such as Apollo rocket that landed on the moon in 1969 (^) Logical Structure represented by an upside down tree (^) Contains levels or segments (segment = file system’s record type) (^) 1:M relationships Lack of ad hoc query capability 10 A C D E F H B G (^) C is parent of G and H (^) G and H are children of
effectively than the hierarchical model (^) To improve database performance and to impose database standards. (^) Allowed a record to have more than one parent (^) Lack of ad hoc query capability (^) Generally not used today but the definitions of standard database concepts that emerged with the network model are still used by modern data 11 A C D H B E F G (^) B and C are parents of F
(^) Introduced by E. F. Codd (of IBM) in 1970 (^) Major breakthrough, a database revolution (^) Based on mathematical concept “relation” (^) Relation = matrix (table) consisting of tuples (rows) and attributes (columns) (^) Tables are related through a common attribute (Fig. 2.1) (^) Relational Database Management Systems (RDBMS) (^) Used Relational Diagrams (Fig. 2.2) (^) Introduced Structured Query Language (SQL) 13
14
(^) Widely accepted standard for data modeling (^) Peter Chen introduced ER data model in 1976 (^) Graphical representation of entities and their relationships in a database structure (^) Represented in a Entity Relationship Diagram (ERD) (^) Entity: represented by rectangle, capital letters, singular form, each row called Entity Instance or Entity Occurrence (^) Relationships: describes association among data (Fig. 2.3) (^) (Will cover in more detail in coming lectures) 16
17
19
(^) Demand to support more complex data representations gave rise to Extended Relational Data Model (ERDM). (^) ERDM gave birth to a new generation of relational databases supporting OO features. (^) With emergence of internet as a business communication tool, Extensible Markup Language (XML) emerged as the efficient exchange of structured, semi-structured and unstructured data. (^) To address the need of managing large amounts of unstructured data such as word-processing documents, Web pages, emails and diagrams, XML databases emerged. 20