Topic 5 Part 2 Flashcards
Define a table:
A collection of records organised into rows and columns within a database.
Where can we find databases?
Websites (e.g., login systems)
Banking systems
Retail and inventory systems
What does an entity represent in a database?:
An object or concept with attributes, like a customer or product.
What is another term for field?:
Attribute
Define the term foreign key:
A field in one table that links to the primary key of another table to establish relationships.
By adding a primary key, what can we make sure?:
That each record in a table is unique.
Name all the entity relationships:
One-to-one
One-to-many
Many-to-many
Explain one-to-one,
One-to-one: One record in a table is linked to one record in another table.
Explain one-to-many
One-to-many: One record in a table is linked to multiple records in another table.
Explain many-to-many
Many-to-many: Records in one table are linked to multiple records in another, often using a bridge table.
Advantages of using a primary key:
- Ensures unique identification of records.
- Prevents duplication of data.
- Maintains data integrity.
- Simplifies relationships between tables.
Define the term data mining.
Data mining is the process of analysing large sets of data to discover patterns, relationships, or useful insights. It often uses techniques like machine learning, statistics, and database systems.
Where is data mining used?
Where it’s used:
Marketing: Identifying customer preferences for targeted advertising.
Healthcare: Finding trends in patient data to predict diseases.
Fraud detection: Spotting unusual patterns in financial transactions.
Retail: Predicting product demand based on past sales.
Data Extraction
Definition:
Data extraction involves retrieving specific data from a larger set, usually from databases, documents, or web sources. It prepares raw data for analysis or use in another system.
Where is data extraction used?
Where it’s used:
Data migration: Transferring data from old systems to new ones.
Web scraping: Collecting information from websites for analysis.
Document processing: Extracting names, addresses, or invoices from scanned files.