Business Analytics (I) Flashcards
(13 cards)
Where does data come from?
- Transaction processing system (TPS)
- Enterprise Information Systems (CRM,SCM,ERP)
- External Sources
Problems with the traditional file environement
-Files maintained separately by different departments
-Data redundancy
-Data inconsistency
-Poor security
-Lack of data sharing and availability
Problems with data redundancy
1 Extra data-entry time
2 Extra storage space required
3 Data inconsistency
What is a databse?
A structure collection of related files containing records on people, places, or things of interest
-A single table or a collection of logically related table
4 Core Database Concepts
- Database
-Collection of tables - Entity
-Generalised category representing person, place, thing on which we store and maintain information (e.g. Students) - Field / Attributes (=columns)
-Specific characteristics of each entity - Record (=row)
-A collection of fields that describe an instance of an entity
Primary Key
-A specific field that uniquely identifies an individual record
-Cannot be duplicates
-Never changing, never null
Solution to Data Redundancy
Keep tables separate but define relationships to link tables -> Relational Database
How do you create linkage between tables?
-Use common fields between tables to create linkage between them
-This common field must be primary key for one of the tables linked, and is called foreign key for other table
Cardinality of Relationships
- One-to-One
Each instance in the relationship will have exactly one related instance
(student v.s. student id) - One-to-Many
An instance on one side of the relationship have many related instances (but an instance on the other side will have a maximum of one related instance)
(a painter v.s. his paintings) - Many-to-Many
(a student may take many courses and each course may have many students)
Basic Operations of a Relationship Database
1 Select (Choose only 7 years old kids)
-> Vertically shrink the table by eliminating unwanted rows
2 Join
Combine two tables (e.g. putting names and snacks together)
3 Project
Pick certain columns (e.g. only keeping names)
-> Horizontally shrink the table
Views of Data
-Logical View: how end users view data
-Physical View: how data are actually structured and organised
Database Management System (DBMS)
Specific type of software for creating, storing, organising and accessing data from a database
Capabilities of DBMS
1 Data definition capabilities
2 Data dictionary
3 Querying and reporting