Topic 2: Data Models Flashcards
define data model
representative of complex real-world data structure via graphical representation
define data modeling
progressive process of creating a specific data model to determine problem domain
importance of data modeling
- communication tool
- overall view for creating a good database
- organised data
4 data model basic building blocks
- Entity: category of the data
- attribute: characteristics of entity
- relationship: association among entities
- constraint: restriction on data
5 types of data model
- hierarchical model
- network model
- relational model
- entity relationship model
- object-oriented
3 data abstraction level
- external: end-user view
- conceptual: global view
- internal: DBMS view
- physical: way of data storage
4 elements in external schema
- entities
- relationships
- processes
- constraints
NoSQL
- to process large-scale database
- support distributed architecture
- support large amount of data
- provide high availability, high scalability, and fault tolerance
- focus on performance rather than transaction consistency
what is map reduce in Hadoop cluster
Map: filter and sort the data
reduce: summarise the data
define hierarchical model
basic logical structure represent by upside down ‘tree’
- contain levels and segments
define network model
to represent complex data relationships more effectively than the hierarchical model
define relational model
create relational table stores collection of related entities
advantages of relational model
- hide complexity from user by isolating user from physical level details
- promote structure independence via independent table
- improve conceptual simplicity
- ad hoc query
Define entity relationship model
Graphical representation of entities and their relationships in a database structure
advantages of ERD
- graphical representation
- show interrelationship among entities
- show major entity in diagram