This means different people and different processes can the same actual data at the same time. Serving differently types of users with varying skill levels Handling different user views of the same stored data Combining interrelated data Controlling concurrent updates so as to maintain data integrity's
Database Basics
Evolvability
Evolvability refers to the ability of the DBMS to change in response to growing user needs and advancing technology. Evolvability is the system characteristic that enhances future availability of the data resources. Evolvability is not the same as expandability or extensibility, which imply extending or adding to the system, which then grows ever larger. Evolvability covers expansion or contraction, both of which may occur as the system changes to fit the ever changing needs and desires of the using environment.
Database Basics
Integrity
The importance and pervasiveness of the need to maintain database integrity is rooted in the reality that man is perfect. Destruction, errors and improper disclosure must be anticipated and explicit mechanisms provided for handling them. The three primary facets of database integrity are: protecting the existence of the database Maintaining the quality of the database Ensuring the privacy of the database
DBMS
Data Dictionary & Metadata
A database contains information about entities of interest to users in an organization When created, the database itself becomes an entity about which information must be kept for various data administration purposes Data dictionary (or system catalog) is a database about the database Contents of a DD are commonly referred to as metadata DD can be updated, queried much as a regular database DBMS often maintains the DD
DBMS
Benefits of Data Dictionary Benefits include improved documentation and control consistency in data use easier data analysis reduced data redundancy simpler programming the enforcement of standards better means of estimating the effect of change.
DBMS
Metadata
Metadata: data that describes the properties and context of user data.
but separate from that data; Stored as part of the database.
---including data types, field sizes, allowable values, and data context
DBMS
Data Independence
With knowledge about the three-schemes architecture the term data independence can be explained as followed: Each higher level of the data architecture is immune to changes of the next lower level of the architecture. Physical Independence: Therefore, the logical scheme may stay unchanged even though the storage space or type of some data is changed for reasons of optimisation or reorganisation. Logical Independence: Also the external scheme may stay unchanged for most changes of the logical scheme. This is especially desirable as in this case the application software does not need to be modified or newly translated.
Distributed Database
Types of Distributed Database System Distributed database system are of the following types Homogenous Distributed Database Systems Heterogeneous Distributed Database System
Distributed Database
Homogenous Distributed Database System All sites have identical software They are aware of each other and agree to cooperate in processing user requests It appears to user as a single system
A distributed system connects three databases: hq, mfg, and sales An application can simultaneously access or modify the data in several databases in a single distributed environment.
Distributed Database
Heterogeneous Distributed Database System In a heterogeneous distributed database system, at least one of the databases uses different schemas and software. A database system having different schema may cause a major problem for query processing. A database system having different software may cause a major problem for transaction processing.
Distributed Database
Features of Distributed Database System Replication System maintains multiple copies of data, stored in different sites, for faster retrieval and fault tolerance. Fragmentation Relation is partitioned into several fragments stored in distinct sites Replication and fragmentation can be combined Relation is partitioned into several fragments: system maintains several identical replicas of each such fragment.
Distributed Database
Advantages Distributed Database System Availability: failure of site containing relation r does not result in unavailability of r is replicas exist. Parallelism: queries on r may be processed by several nodes in parallel. Reduced data transfer: relation r is available locally at each site containing a replica of r.
Distributed Database
Disadvantages Distributed Database System Increased cost of updates: each replica of relation r must be updated. Increased complexity of concurrency control: concurrent updates to distinct replicas may lead to inconsistent data unless special concurrency control mechanisms are implemented. One solution: choose one copy as primary copy and apply concurrency control operations on primary copy.
Introduction to MS Access
Forms (Active)
Reports (Static)
Queries
We wish to construct a database to track waking glucose measurements for an indefinite amount of time on 100 patients receiving 3 possible drug combinations.
Tables Overview
j Think of Access as a collection of spreadsheets that are
STORE DATA ONE TIME / ONE PLACE DO NOT STORE CALCULATED DATA
relationally linked.
Demographics Patient_ID Fname Lname Address Phone Gender Race DOB Height Glucose Glucose_ID Patient_ID Date Weight Med_ID Glucose Meds Med_ID DrugCombonation
General Setup for Tables Describe General Options Show Validation Rule Relationships Lookup Option
Relationships Use table relationships to automatically cascade delete and update records. Other Data Sources Import = Copy; Link = Live Connect.
Query Overview - 1
j An MS-Access query is a set of stored SQL instructions that
Select Query Data grouping and/or filtering Make-Table Query Select + creates/populates new table. Update Query Updates fields from specified table data Append Query Runs query on one table, appends results to a table j Delete Query Delete selected records from table
Calculated Field Drag and Drop Fields BMI: [Weight]/([Height]/100)^2 Right-Clicking gray area above field enables property changes.
Choose Ascending or Descending in the Sort Row This query would sort by Gender THEN by Race.
This query will return all records in the database for: Females who are not white whose height are greater than 150 cm and who weigh between 60 and 70 kg
Running this Query indicates there are 203 Females and 261 Males in the database. Notice new Total row. Each field (column) can be set.
2)
3)
reports
Out of Program