prelim lesson2 Flashcards
DBMS is the only entity where user directly sits
on DBMS and uses it. Any changes done here
will directly be done on DBMS itself. It does
not provide handy tools for end users and
preferably database designer and
programmers use single tier architecture.
1tier
- DBMS is 2-tier then must have some application,
which uses the DBMS
. Programmers use ____ architecture where they access DBMS by means of
application. Here application tier is entirely
independent of database in term of operation, design
and programming.
2tier
Most widely used architecture
3tier
tells how the logical structure of a database is modeled.
Data Models are fundamental entities to introduce abstraction in
DBMS. Data models define how data is connected to each other and
how it will be processed and stored inside the system.
Data model
- precise description of the data
content in a system. - Underlying structure of a
database. - Conceptual tool.
- Data + Relationship +
Semantics + Constraints - Design the database at physical,
logical and view level - The data modelling or data structuring
represents the nature of data, and the business
logic to control the data. It is also organize the
database. - The structure of data are explicitly determines
by the data model. - Data model helps to communicate between
business people, who requires the computer
system, and the technical people who can fulfill
their requirements.
Data modeling
Why do we create data models
- To aid in the development of a sound
database design that does not allow
anomalies or inconsistencies - Goal: to create database tables that do not
contain duplicate data values that can
become inconsistent
a class of real world objects having
common attributes (e.g., sites, variables,
methods).
Entity
A characteristic or property of an
entity (site name, latitude, longitude)
Attribute
an association between two or
more entities
relationship
the number of entities on either
end of a relationship (one-to-one, one-to many, many-to-many, etc.)
Cardinality
An entity in ER model is real world entity, which
has some properties called attributes. Every attribute is
defined by its set of values called domain.
Entity
The logical association among entities is
called relationship. Relationships are mapped with
entities in various ways. Mapping cardinalities define
the number of association between two entities.
Relationship
Relationship types
- One to one
- One to Many
- Many to one
- Many to Many
are represented by means of
rectangles. Rectangles are named with the
entity set they represent.
Entity
______ are the properties of entities.
_____ are represented by means of ellipses.
Every ellipse represents one attribute and is
directly connected to its entity (rectangle).
Attributes
If the attributes are _____, they are further
divided in a tree like structure. Every node is then
connected to its attribute. That is, composite
attributes are represented by ellipses that are
connected with an ellipse.
Composite Attributes