03 Database Models PART1 — Transcript
Full transcript
- 0:01module 1 topic 3 entitled data models
- 0:05this topic examines data modeling data
- 0:08modeling is the first step
- 0:10in the database design journey serving
- 0:12as a bridge
- 0:13between a real world object in the
- 0:16computer database
- 0:17you will learn first some basic data
- 0:19modelling concepts
- 0:21and how current data models have
- 0:23developed from earlier models
- 0:29database design focuses on how the
- 0:31database structure
- 0:32will be used to store and manage end
- 0:34user data
- 0:36data modeling the first step in
- 0:38designing a database
- 0:39refers to the process of creating a
- 0:41specific data model
- 0:43for a determined problem domain
- 0:46a data model is a relatively simple
- 0:49representation
- 0:50usually graphical of more complex
- 0:52real-world data structures
- 0:55in general terms a model is an
- 0:57abstraction
- 0:58of a more complex real-world object or
- 1:01event
- 1:02a model's main function is to help you
- 1:04understand
- 1:05the complexities of the real-world
- 1:08environment
- 1:09within the database environment a data
- 1:12model represents
- 1:13data structures and their
- 1:15characteristics
- 1:16relations constraints transformations in
- 1:20other constructs
- 1:22with the purpose of supporting a
- 1:23specific problem domain
- 1:31the importance of data modeling cannot
- 1:33be overstated
- 1:35it facilitates communication data models
- 1:38can facilitate interruption among the
- 1:40designer
- 1:41the application's programmer and the end
- 1:43user
- 1:44data models are a communication tool
- 1:48data modeling gives various views of the
- 1:50database
- 1:51data constitutes the most basic
- 1:53information employed by a system
- 1:56applications are created to manage data
- 1:59and to help transform data into
- 2:00information
- 2:02but data is viewed in different ways by
- 2:04different people
- 2:06data modeling organizes data for various
- 2:09users
- 2:10when a good database blueprint is
- 2:11available it doesn't matter
- 2:14that an application programmer's view of
- 2:16the data is different
- 2:17from that of the manager or the end user
- 2:21provides an obstruction for the creation
- 2:24of a good database
- 2:26the data model is an abstraction you
- 2:28cannot draw
- 2:29the required data out of the data model
- 2:39the basic building blocks of all data
- 2:41models are entities
- 2:42attributes relationships and constraints
- 2:46an entity is a person place thing or
- 2:49event
- 2:50about which data will be collected and
- 2:52stored
- 2:53an entity represents a particular type
- 2:55of object in the real world
- 2:57which means an entity is distinguishable
- 3:00that is each entity occurrence is unique
- 3:04and distinct an attribute is a
- 3:06characteristic
- 3:07of an entity a relationship describes an
- 3:11association among entities for example
- 3:15a relationship exists between customers
- 3:18and agents
- 3:19that can be described as follows an
- 3:21agent can serve many customers
- 3:24and each customer may be served by one
- 3:26agent
- 3:27data models use three types of
- 3:29relationships
- 3:31one too many many too many and one to
- 3:34one
- 3:35database designers usually use the
- 3:37shorthand notations
- 3:39one is two m or one two asterisk
- 3:43m is to n or asterisk to a series
- 3:47and one is to one or one to one
- 3:50respectively
- 3:51a constraint is a restriction placed on
- 3:53the data
- 3:55constraints are important because they
- 3:57help to ensure
- 3:58data integrity constraints are normally
- 4:02expressed in the form of
- 4:03rules
- 4:08from a database point of view the
- 4:10collection of data becomes meaningful
- 4:12only when it reflects
- 4:14properly defined business rules a
- 4:17business rule is a brief
- 4:18precise and ambiguous description
- 4:22of a policy procedure or principle
- 4:25within a specific organization
- 4:28business rules derive from a detailed
- 4:31description of an organization's
- 4:33operations
- 4:34help to create and enforce actions
- 4:36within that organization's environment
- 4:39properly written business rules are used
- 4:42to define entities
- 4:43attributes relationships and constraints
- 4:48the main sources of business rules are
- 4:50company managers
- 4:52policy makers department managers and
- 4:56written documentation such as
- 4:58a company's procedure standards and
- 5:00operations manuals
- 5:02a faster and more direct source of
- 5:04business rules is direct interviews with
- 5:06end users
- 5:11the process of identifying and
- 5:12documenting business rules
- 5:14is essential to database design for
- 5:17several reasons
- 5:19it helps to standardize the company's
- 5:21view of data
- 5:23it can be a communication tool between
- 5:25users and designers
- 5:27it allows the designer to understand the
- 5:30nature
- 5:31role and scope of the data it allows a
- 5:33designer to understand
- 5:36business processes it allows the
- 5:38designer also to develop
- 5:40appropriate relationship participation
- 5:42rules and constraints
- 5:44and to create an accurate data model
- 5:52business rules set the stage for the
- 5:54proper identification of entities
- 5:57attributes relationships and constraints
- 6:00in the real world
- 6:01names are used to identify objects as a
- 6:04general rule
- 6:05a noun in the business rule will
- 6:08translate into an entity in the model
- 6:10and the verb that associates the nouns
- 6:14will translate into a relationship
- 6:16among the entities for example
- 6:19the business rule a customer may
- 6:22generate many invoices
- 6:24contains two nouns customer and invoices
- 6:28and a verb generate that associates the
- 6:31nouns
- 6:32from this business rule you could deduce
- 6:34the following
- 6:35customer and invoice are objects of
- 6:38interest for the environment
- 6:40and should be represented by their
- 6:41respective entities
- 6:44there is a generate relationship between
- 6:47customer
- 6:48and invoice to properly identify the
- 6:52type of relationship
- 6:53you should consider that relationships
- 6:56are bidirectional
- 6:58that is they go both ways for example
- 7:02the business rule a customer may
- 7:04generate many invoices
- 7:06is complemented by the business rule and
- 7:09invoice is generated by only one
- 7:12customer
- 7:13in that case the relationship is one too
- 7:16many
- 7:17and customer is the one side and the
- 7:20invoice is the many side
- 7:23to properly identify the relationship
- 7:25type you should generally
- 7:27ask two questions how many instances of
- 7:30b
- 7:31are related to one instance of a how
- 7:34many instances of a
- 7:36are related to one instance of b for
- 7:39example
- 7:40you can assess the relationship between
- 7:42student and class
- 7:43by asking two questions in how many
- 7:46classes
- 7:47can one student enroll the answer
- 7:50many classes how many students can role
- 7:54in one class answer many students
- 8:04during the translation of business rules
- 8:06data model components
- 8:08you identify entities attributes
- 8:10relationships and
- 8:12constraints this identification process
- 8:15includes naming the object in a way
- 8:17that makes it unique and distinguishable
- 8:20from other objects in the problem domain
- 8:23it is important to pay special attention
- 8:26to how you name the objects you are
- 8:28discovering
- 8:29entity names should be descriptive of
- 8:32the objects in the business environment
- 8:34and use terminology that is familiar to
- 8:37the users
- 8:38an attribute name should also be
- 8:40descriptive of the data
- 8:42represented by that attribute it is also
- 8:46a good practice
- 8:47to prefix the name of an attribute with
- 8:50the name or abbreviation
- 8:51of the entity at which it occurs
- 8:56the use of a proper naming convention
- 8:58will improve the data model's ability to
- 9:00facilitate
- 9:01communication among the designer
- 9:04application programmer
- 9:06and the end user a proper naming
- 9:08convention can go along towards
- 9:11making your model self-documenting
- 9:18the evolution of data models is the
- 9:20quest for better data management
- 9:22led to several models that attempt to
- 9:25resolve the previous model's critical
- 9:27shortcomings and to provide solutions to
- 9:29ever
- 9:30evolving data management needs the
- 9:33hierarchical model was developed in the
- 9:351960s to manage
- 9:37large amounts of data for complex
- 9:40manufacturing projects
- 9:42such as the apollo rocket that landed on
- 9:44the moon in 1969
- 9:46the model's basic logical structure is
- 9:49represented
- 9:50by an upside down tree the hierarchical
- 9:54structure contains
- 9:55levels or segments a segment is the
- 9:58equivalent
- 9:59of a file system's record type within
- 10:02the hierarchy
- 10:03a higher layer is perceived as the
- 10:06parent
- 10:07of the segment directly beneath it
- 10:10which is called the child the
- 10:13hierarchical model depicts
- 10:14a set of one-to-many relationships
- 10:17between a parent
- 10:18and its children segments each parent
- 10:22can have many children but each child
- 10:26has only one parent
- 10:32network model was created to represent
- 10:34complex data relationships
- 10:36more effectively than the hierarchical
- 10:38model to improve database performance
- 10:41and to impose a database standard
- 10:44in the network model the user perceives
- 10:47the network database as a collection of
- 10:49records
- 10:50in one is too many relationships however
- 10:53unlike the hierarchical model the
- 10:56network model allows a record to have
- 10:58more than one parent while the network
- 11:01database model is generally not
- 11:03used today the definitions of standard
- 11:07database concepts that emerge with the
- 11:09network model
- 11:10are still used by the modern data models
- 11:14the schema is the conceptual
- 11:17organization of the entire database
- 11:19as viewed by the database administrator
- 11:22the sub-schema defines the portion of
- 11:25the database
- 11:26seen by the application programs that
- 11:29actually produce
- 11:30the desired information from the data
- 11:32within the database
- 11:34a data manipulation language or dml
- 11:38defines the environment in which data
- 11:41can be managed and is used to work
- 11:44with the data in the database a schema
- 11:47data
- 11:48definition language enables a database
- 11:50administrator to define
- 11:52the schema components
- 11:57the relational model's foundation is a
- 11:59mathematical concept
- 12:01known as a relation to avoid the
- 12:04complexity of abstract mathematical
- 12:06theory
- 12:06you can think of a relation sometimes
- 12:09called the table
- 12:10as a two-dimensional structure composed
- 12:12of intersecting rows and columns
- 12:15each row in a relation is called a tuple
- 12:19each column represents an attribute the
- 12:22relational model also describes a
- 12:24precise
- 12:25set of data manipulation constructs
- 12:28based on advanced mathematical concepts
- 12:34the relational data model is implemented
- 12:36through a very sophisticated relational
- 12:39database management system
- 12:41or rdbms this performs the same basic
- 12:45functions provided by the hierarchical
- 12:48and network dbms systems in addition to
- 12:51a host of other functions
- 12:53that make the relational data model
- 12:55easier to understand
- 12:56and implement the most important
- 12:59advantage of the rdbms
- 13:02is its ability to hide the complexities
- 13:05of the relational
- 13:06model from the user the rdbms manages
- 13:10all of the physical details while the
- 13:12user sees the relational database
- 13:15as a collection of tables in which data
- 13:17is stored
- 13:19the user can manipulate and query
- 13:22the data in a way that seems intuitive
- 13:25and logical
- 13:28figure 2.2 displays the relational
- 13:31diagram that shows the connecting fields
- 13:34agent code and the relationship type one
- 13:37is too many
- 13:38microsoft access the database software
- 13:40application used to generate this
- 13:43employs the infinity symbol to indicate
- 13:45the many side
- 13:47in this example the customer represents
- 13:49the many
- 13:50side because an agent can have many
- 13:53customers
- 13:54the agent represents the one side
- 13:57because
- 13:58each customer has only one agent
- 14:01a relational table stores a collection
- 14:03of related entities in disrespect
- 14:06the relational database table resembles
- 14:08a file
- 14:09but there is a crucial difference
- 14:11between a table in a file
- 14:13a table yields complete data and
- 14:16structural independence
- 14:17because it is a purely logical structure
- 14:21how the data is physically stored in the
- 14:23database
- 14:24is of no concern to the user or the
- 14:27designer
- 14:28the perception is what counts
- 14:34another reason for the relational data
- 14:36model's rise to dominance
- 14:39is its powerful and flexible query
- 14:42language
- 14:43most relational database software uses
- 14:46structured query language or sql
- 14:49which allows the user to specify what
- 14:52must be done without
- 14:53specifying how the rdbms uses sql
- 14:58to translate user queries into
- 15:00instructions for retrieving the
- 15:02requested data
- 15:04sql makes it possible to retrieve data
- 15:07with far less effort
- 15:08than any other database or file
- 15:10environment
- 15:12from an end user perspective any sql
- 15:15based
- 15:15relational database application involves
- 15:19three parts a user interface a set of
- 15:22tables
- 15:23stored in the database and the sql
- 15:26engine
- 15:31the next slide on this topic three data
- 15:33models is about the entity relationship
- 15:36model
About this transcript
This page contains the full transcript of 03 Database Models PART1 by Mary Jane Samonte, generated from the public captions YouTube serves with the video. The transcript has 1,850 words across 388 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to translate the transcript into 100+ languages.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.