Computer Literacy pdf-5
Computer Literacy pdf-5
• Ask Users: Talk to people who will use the database to understand their
needs.
• Review Current System: Find out if they already use a database and what
works or doesn’t work.
• Check for Issues: Look for duplicate data, unnecessary data, or missing
information.
• Observe Workflows: Watch how users work with current data and get their
feedback.
• List Database Uses: Write down every task the database needs to perform,
like creating reports or tracking sales.
• List Needed Information: Write down all data the database should store, like
Customer Name, Contact Info, etc.
• Build Queries and Reports: Use your findings to design the queries and
reports needed to manage and display data.
• Control Access: Decide who can see or edit data and set security levels.
Step 7: Plan and Test
• Finalize the Plan: Ensure everything is clear and complete before building.
2.2
In Microsoft Access, tables are linked through relationships that connect data across
multiple tables using a shared field (usually a primary key and a foreign key). These
relationships establish the foundation for effective data retrieval, integrity, and
analysis. Here are the three primary types of relationships in Access, along with
detailed explanations and examples based on your database:
1. One-to-One Relationship
For example:
• Use Case: If you had a "Customer" table and a "Customer Details" table,
where each customer’s sensitive information (like payment details) is stored
separately from their basic information.
• Implementation: Both tables would share the Customer ID as the primary key
in each table.
• Why: This separation can improve security by limiting access to sensitive data
only to users with permissions for the secondary table.
In your current setup, you may not have a natural one-to-one relationship, but if you
were to expand and include secure or confidential information tied to customers or
products, this relationship type might be beneficial.
2. One-to-Many Relationship
For example:
2. Drag the primary key (e.g., Customer ID in the Customer table) to the foreign
key (Customer ID in the Orders table).
3. Many-to-Many Relationship
A many-to-many relationship occurs when records in one table can relate to multiple
records in another, and vice versa. Microsoft Access doesn’t support this directly, so
a junction table is used to represent the relationship indirectly by breaking it into two
one-to-many relationships.
For example:
• Sales and Products: If you wanted to track which products are in which sales
transactions, each sale might include multiple products, and each product might be
part of multiple sales. Here, you’d create a SalesProduct junction table with both
Sale ID and Product ID.
• Implementation: The Sales Product table would have two foreign keys (Sale
ID and Product ID), forming two one-to-many relationships (one with Sales and one
with Products).
1. Create a new table (e.g., SalesProduct) with foreign keys referencing the
primary keys of both Sales and Products.
2. Link each foreign key in the junction table to the respective primary key in the
related tables.
3. This way, Access can manage complex relationships, allowing for efficient
querying and reporting on shared data.
Summary
2.4
2.5