Podcast
Questions and Answers
Which of the following best defines a database?
Which of the following best defines a database?
- A single file containing unrelated information.
- A temporary storage location for data.
- A set of programs used to create graphics.
- A collection of related data stored in a central or multiple locations. (correct)
Eliminating data redundancy is a key benefit of using a database.
Eliminating data redundancy is a key benefit of using a database.
True (A)
What are the three components of data models?
What are the three components of data models?
Data structure, Operations, and Integrity rules
A primary key ______ identifies each record in a relational database.
A primary key ______ identifies each record in a relational database.
Match the file access methods with their descriptions:
Match the file access methods with their descriptions:
In the context of data hierarchy, what does a 'record' represent?
In the context of data hierarchy, what does a 'record' represent?
In a relational database, rows are referred to as fields, and columns are referred to as records.
In a relational database, rows are referred to as fields, and columns are referred to as records.
What is the main purpose of normalization in database design?
What is the main purpose of normalization in database design?
A ______ key is used to cross-reference tables in a relational database.
A ______ key is used to cross-reference tables in a relational database.
Match the following terms to their meanings in Object-Oriented Programming (OOP) context:
Match the following terms to their meanings in Object-Oriented Programming (OOP) context:
What does a Data Dictionary store?
What does a Data Dictionary store?
A Database Management System (DBMS) is used for creating, storing, maintaining, and accessing database files.
A Database Management System (DBMS) is used for creating, storing, maintaining, and accessing database files.
Name the characteristic of data in the data warehouse where data needs to be from a variety of sources.
Name the characteristic of data in the data warehouse where data needs to be from a variety of sources.
The heart of DBMS software which is responsible for data storage and retrieval is known as the ______.
The heart of DBMS software which is responsible for data storage and retrieval is known as the ______.
Match the following components of a database management system with their functions:
Match the following components of a database management system with their functions:
What is the primary function of a Data Warehouse?
What is the primary function of a Data Warehouse?
Data in a data warehouse is typically used for operational purposes.
Data in a data warehouse is typically used for operational purposes.
What is ETL?
What is ETL?
______ analytics involves analysing web data to determine the website's effectiveness and efficiency.
______ analytics involves analysing web data to determine the website's effectiveness and efficiency.
Match each type of Business analytics with the corresponding definition
Match each type of Business analytics with the corresponding definition
What does 'Data Manipulation' refer to in the context of database management systems?
What does 'Data Manipulation' refer to in the context of database management systems?
Object-oriented databases store both data and their relationships within a single object.
Object-oriented databases store both data and their relationships within a single object.
In object-oriented programming, what is a 'method'?
In object-oriented programming, what is a 'method'?
In the context of a data warehouse, ______ data is information in its original form.
In the context of a data warehouse, ______ data is information in its original form.
Match the following types of analytics with their descriptions:
Match the following types of analytics with their descriptions:
What is the purpose of 'integrity rules' in a data model?
What is the purpose of 'integrity rules' in a data model?
Business analytics is forward looking.
Business analytics is forward looking.
In the concept of data hierarchy, what is a file?
In the concept of data hierarchy, what is a file?
To cross reference tables, a ______ key is used.
To cross reference tables, a ______ key is used.
Match these characteristics with the stage of data warehouse.
Match these characteristics with the stage of data warehouse.
Flashcards
What is a Database?
What is a Database?
A collection of related data stored in a central location or multiple locations, usually a group of files, and a critical component of information systems.
Benefits of a database
Benefits of a database
Gain more insights, handle requests efficiently, reduce redundancy, ensure independence, improve management, maintain relationships, enhance security, and minimize space.
Data Hierarchy
Data Hierarchy
The structure and organization of data, comprised of fields, records, and files.
Sequential Access
Sequential Access
Signup and view all the flashcards
Random Access
Random Access
Signup and view all the flashcards
Indexed Sequential Access
Indexed Sequential Access
Signup and view all the flashcards
Database Design: Data Models
Database Design: Data Models
Signup and view all the flashcards
Data Structure
Data Structure
Signup and view all the flashcards
Operations (Data Models)
Operations (Data Models)
Signup and view all the flashcards
Integrity Rules
Integrity Rules
Signup and view all the flashcards
Relational Model
Relational Model
Signup and view all the flashcards
Structured vs Unstructured Data
Structured vs Unstructured Data
Signup and view all the flashcards
Data Dictionary
Data Dictionary
Signup and view all the flashcards
Primary Key
Primary Key
Signup and view all the flashcards
Foreign Key
Foreign Key
Signup and view all the flashcards
Normalization
Normalization
Signup and view all the flashcards
Database Management System (DBMS)
Database Management System (DBMS)
Signup and view all the flashcards
Database Engine
Database Engine
Signup and view all the flashcards
Data Definition
Data Definition
Signup and view all the flashcards
Data Manipulation
Data Manipulation
Signup and view all the flashcards
Application Generation
Application Generation
Signup and view all the flashcards
Data Administration
Data Administration
Signup and view all the flashcards
Object-Oriented Databases
Object-Oriented Databases
Signup and view all the flashcards
Class (OOP)
Class (OOP)
Signup and view all the flashcards
Object (OOP)
Object (OOP)
Signup and view all the flashcards
Property (OOP)
Property (OOP)
Signup and view all the flashcards
Value (OOP)
Value (OOP)
Signup and view all the flashcards
Method (OOP)
Method (OOP)
Signup and view all the flashcards
Data warehouse
Data warehouse
Signup and view all the flashcards
Extraction, transformation, and loading (ETL)
Extraction, transformation, and loading (ETL)
Signup and view all the flashcards
Study Notes
- The following topics are excluded from this lesson: hierarchical model (pg 60), network model (pg 61), data-driven websites, distributed databases (pg 66-67), data marts, data lakes (pg 72), big data (section 3.9, pg 75-78), database marketing (pg 78-79), Tableau & PowerBI (pg 79-81).
- Big data (section 3.9, pg 75-78) is for self study.
Database Defined
- Databases are collections of related data, stored centrally or in multiple locations.
- Databases are often groups of files.
- Databases are a critical component of information systems.
- Consider a database like a filing cabinet.
Benefits of a Database
- Better handles data requests.
- Eliminates or minimizes data redundancy.
- Data and programs are independent.
- Improves data management.
- Variety of relationships among data maintained.
- Improved security.
- Reduces storage space.
- Generates more information from same data.
Data Hierarchy
- Data is structured and organized, involving fields, records, and files.
- Record: Group of related fields
- File: Group of related records
File Access Methods
- Sequential access: records are organized sequentially, used for backups and archives.
- Random access: records accessed in any order, fast for few record access.
- Indexed sequential access: combination, like a book index.
Data Models
- Data models determine how data is created, represented, organized, and maintained.
- Data models have 3 components: data structure, operations, and integrity rules.
- Data structure describes the organization of and relationships among records.
- Operations describe methods and calculations performed on data (e.g., updating and viewing).
- Integrity rules define database boundaries, such as min/max values.
Relational Model
- Relational models use 2-dimensional tables of rows and columns.
- Rows are records, columns are fields.
- Relational models require data to be structured in rows and columns unlike unstructured data with no predefined format.
- DLA 152 teaches how to automate turning unstructured data into structured.
Relational Database Model
- Defining each table and field within is required to design a relational database, thus defining the logical structure.
- A data dictionary stores collection of definitions.
- Field names are student name, admission date, age, major.
- Field data types are character (text), date, number.
- A default value is no major = undecided.
- A validation rule is student age cannot be negative.
Relational Database Model Tools
- Primary Keys uniquely identify each record in a relational database, like a student number.
- Foreign Keys are fields that match the primary key column of another table, used to cross-reference tables.
- Normalizing improves database efficiency by eliminating redundant data.
Database Management System (DBMS)
- DBMS is software for creating, storing, maintaining, and accessing database files.
- DBMS makes database use more efficient.
- Users make information requests with the DBMS.
- The DBMS returns info to the user, searches the database and retrieves the information.
Components of DBMS
- Database engine: the heart of DBMS software, responsible for data storage and retrieval.
- Data definition: creates and maintains the data dictionary; defines file structures in a database.
- Data manipulation: allows users to add, delete, modify, and retrieve records from a database.
- Application generation: designs application elements using a database, like data entry screens and interactive menus.
- Data administration: tasks include backup and recovery, security, and change management.
Object-Oriented Databases
- In object-oriented databases, both data and relationships are in a single object.
- Object-Oriented Programming (OOP) Concepts are utilized.
- A
class
is a blueprint that defines whatobjects
can be created, whatproperties
they have, and whatmethods
they can perform. - A
object
is a real instance of a class (a specific thing created from the blueprint). - A
property
is a variable that belongs to an object and stores data about it. - A
value
is the actual data assigned to a property of an object. - A
method
is An action that an object can perform (a function inside the class).
OOP Concepts Illustrated Using a Database Storing Sims Characters & Their Actions
- All Sim characters have properties and skills.
- Each Sim character will have a name, age, mood and energy values.
- The actions (methods) the Sim can perform include eat, sleep, and walk.
class SimCharacter:
specifies properties, such as Name = "", Age = 0, Mood = "Happy", and Energy = 100.- Methods (actions) such as Eat, Sleep, and Walk are defined.
- The
Eat
method
increases energy by 20, Sleep sets energy to 100 and mood to "Refreshed", Walk decreases energy by 10. - This does not create actual Sims, it is a blueprint.
- Creating Sims as objects can be done from the blueprint.
- Sim1 = SimCharacter(), Sim1.Name is set to “Alice”, Sim1.Age = 25, Sim1.Mood is "Tired".
- Now Alice and Bob exist as real Sims with unique values.
- A Sim "performing" actions is carried out by the methods.
- Methods update properties.
- Sim1.Eat(), Sim2.Sleep(), Sim1.Walk().
Key Takeaways for OOP Example
- Classes define what an object should have and can do.
- Objects are actual instances of a class like Alice and Bob.
- Properties store data like name, age, mood, and energy.
- Values are assigned to properties.
- Methods allow objects to perform actions like eat, sleep, and walk.
Data Warehouse
- A collection of data from different sources supports decision-making applications and generates business intelligence.
- Multidimensional data - "hypercubes" are stored.
- Data characteristics in a data warehouse include being subject-oriented, and integrated.
- It is subject oriented with focus on specific area, integrated with variety of sources, time variant categorized based on time.
- It is also categorized by type of data capturing aggregated data, purpose used for analytical purposes.
Components of a Data Warehouse
- Input: Data comes from external data sources, databases, transaction files, etc.
- Extraction, transformation, loading (ETL): Collecting, converting, and transferring data to meet data warehouse needs.
- Storage: Organized as raw data, summary data, and metadata.
- Collected information is organized.
- Raw data is info in original form
- Summary data is subtotals of various categories.
- Metadata tells users how, when, and by whom the data was collected and converted into its current form
- Output: Supports different types of analysis and generates reports for decision-making.
- Online analytical processing
- Data mining analysis
- Decision-making reports
Business analytics
- Using data and statistical methods to gain insight with predictive modelling.
- Business analytics is forward looking - focused on the future, not what happened in the past.
Types of Business Analytics
- Descriptive Business Analytics covers past events and how to prepare for future.
- Predictive Business Analytics predicts what might happen in future.
- Prescriptive Business Analytics recommends actions and shows outcomes of those decisions.
- Web analytics analyzes web data and effectiveness/efficiency of website.
- Mobile analytics analyzes mobile device usage, advertising, and in-app/performance.
- It analyses advertising and marketing to determine which ads led to app installs.
- It also analyses in-app usage and app performance.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.