26 09 24 - Database Basics Cont
26 09 24 - Database Basics Cont
There a 3 levels of database abstraction, which separate users from the physical
database. It goes user, to conceptual schema, internal schema then physical
machine
The user level is the normal community view of the database
The conceptual schema describes what data is stored and their relationships
Roles
Database application developer: builds applications that interface with the
database
Database admin (DBAs): load, store and backup data as well as tweak the
database for performance
DBMS dev: develop more DBMS
Database design
Database design processes can be divided into 6 steps:
Requirement analysis:
what data is to be stored,
what apps must be built,
what ops are most frequently performed and are subject to performance
requirements
conceptual design:
high level of requirement analysis
logical design:
choose the DBMS
convert the conceptual design into a database schema in the BDMS
schema refinement:
analyse any relations
identify problems
refine the schema
physical design:
ensure the design meets performance requirements
build indexes including clustering tables
redesign parts of the schema
application and security design:
write application programs
identify which data can be accessed by which users
take action to ensure that access rules are enforced
E-R diagrams
entity-relationship diagrams are conceptual models of a database design used to
show data that’s stored and data constraint
entities represent sets of stored values called attributes (i.e. student has name,
age, id, phone, address)
entity sets are groups of the same entities all with the same set of attributes
(although they can have different values for the attributes)
the domain of an attribute is the acceptable values for an attribute