Presentation is loading. Please wait.

Presentation is loading. Please wait.

Database Design Part of the design process is deciding how data will be stored in the system –Conventional files (sequential, indexed,..) –Databases (database.

Similar presentations


Presentation on theme: "Database Design Part of the design process is deciding how data will be stored in the system –Conventional files (sequential, indexed,..) –Databases (database."— Presentation transcript:

1 Database Design Part of the design process is deciding how data will be stored in the system –Conventional files (sequential, indexed,..) –Databases (database management system) Relational database Object oriented database Hybrid database –Data warehouse

2 Objectives of Database Design Make sure that data can be shared among users Keep accurate and consistent data Make sure that all data needed for current and future applications is stored (anticipate needs) Allow database to grow with user needs Ability to construct new views of database suitable for user needs

3 Relational Database The most common type of DBs is relations DBs represented by the ER (Entity-Relationship) diagram. Entity: An object or event about which someone chooses to collect data. Relationship: associations between entities (1:1, 1:M, M:N) Attribute: some characteristics of an entity. Attributes are sometimes called data items or fields. Record: A collection of data items that have something in common with the entity described. A record has a primary key and may have many attributes.

4 Relational Database Key: one of the data items in a record that is used to identify a record. –Two types of keys: Primary key: a key that uniquely identifies a record secondary key: –when it’s impossible to identify a record uniquely by using one of the data items found in a record, a key can be constructed by choosing two or more data items and combining them. Metadata: data about the data in a file or a DB. Metadata describe the name, data type and length of each data item.

5 Database Design from DFD & Data Dictionary SalesMan 4 Record Sale Sales Info Salesperson Number Salesperson Name Sales Area Customer Number Customer Name Warehouse Number Sales Amount Sales Info = SalesPerson No + SalesPerson Name + Sales Area + Customer No. + Customer Name + Warehouse No. + Sales Amount Detailed Field Information (Meta data) come from Data Element Data Dictionary

6 Normalization Normalization is the transformation of complex user views and data stores to a set of smaller, stable data structures. –Reduce data redundancy –Increase relations between tables (inefficiency)

7 Normalization The problem Salesperson Number Salesperson Name Sales Area Customer Number Customer Name Warehouse Number Sales Amount 10AliAbdoun150Samer220 10AliAbdoun300Rula316 SamehAbdoun300Rula24 16SamehAbdoun240Rashed26 11AbdoJbeiha177Lamia14

8 Normalization The solution Salesperson Number Salesperson Name Sales Area Customer Number Customer Name Warehouse Number Sales Amount Salesperson Number Salesperson Name Sales Area Customer Number Customer Name Salesperson Number Customer Number Warehouse Number Sales Amount

9 Data Warehouse A data warehouse is a centralized database that captures information from various parts of an organization's business processes. This information can later be analyzed to determine predictive relationships through the use of data mining techniques. Data are gathered from different departments in the business and stored in a huge expensive data warehouse that costs millions of dollars

10 Data Warehouse Data Warehouse External sources Transformation & Integration Operational environment Internal files Internal database Decision Support System Marketing Planning

11 Data Warehouse Types of data gathered could be: –Customers behaviors and orders –Product prices –Timely business transactions (inventory, order processing, distribution, chain management) –Timely marketing activities

12 Data Warehouse Characteristics of data stored in a data warehouse: –Not necessarily normalized (for performance reasons) –Stored in sections aligned with business structure entities (customers, products, orders, distributors,..) –Nonvolatile data (loaded from operational environment but not changed) –Unify data terms, attribute definitions and values from different sources –Stored for a long time

13 Data Warehouse Purposes of creating data warehouses in businesses –Assist managers in the decision making process –Post-decision monitoring of decision effects –Answer frequent queries from managers, using Online Analytic Processing (OLAP) Data Marts: a data warehouse that is limited in scope. –Contains selected information from a centralized data warehouse that supports certain group of end users.

14 Data Mining Data mining software is software that allows you to analyze large volumes of raw data from business systems, applications, databases, web sites, and text based mediums. Extracts and manipulates information that is hidden in the raw data. (patterns)

15 Data Mining Example Collect data from different shops & credit card companies, such as: –Credit card values and payment –Items bought and shops frequently used –Membership applications –Response of free offers –When and how frequent traveled Used for marketing purposes to predict customer behavior, give free coupons & advertisement

16 Data Mining Benefits Identify prospects and then retain them as customers Unfold troubled business processes Predict cross-sell opportunities and make recommendations Learn parameters influencing trends in sales Segment markets and personalize communications

17 Data Patterns Four types of patterns decision makers try to identify include: 1.Associations: patterns that occur together at the same time: A person who buys cereal usually buys milk too. 2.Sequences: patterns of action that take place over a period of time: if a family buys a house this year, they will most probably buy refrigerator, washer, oven, … next year. 3.Clustering: pattern that develops amongst a group of people: people who live in a particular area buy a particular car. 4.Trends: patterns that are noticed over a period of time: customer move from buying generic goods to buying customized products.

18 Online Analytic Processing Introduced in 1993 Helps decision makers who want to look at data from different ways Data are best stored in a way that makes most frequent queries more efficient… hence de-normalization Data are summarized, calculated and collected to answer mangers’ queries

19 Data Warehouse / Mining Disadvantages –High cost –Ethical issues (Privacy) –Security of the data


Download ppt "Database Design Part of the design process is deciding how data will be stored in the system –Conventional files (sequential, indexed,..) –Databases (database."

Similar presentations


Ads by Google