We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5
Detailed Practical Examples for Database Systems
Introduction This document provides detailed, step-by-step examples for implementing database systems using Microsoft Access and SQL. Each example is fully fleshed out to ensure clarity and completeness.
Example 1: School Management System
Objective: Manage students, courses, and enrollment records in a school.
1. Open MS Access and create a blank database. 2. Create a table 'Students' with fields: - StudentID: AutoNumber (Primary Key) - Name: Text - Age: Number - Gender: Text - Address: Text 3. Similarly, create tables 'Courses' and 'Enrollments'. 4. Save all tables.
Step 3: Establishing Relationships
1. Go to 'Database Tools' → 'Relationships'. 2. Drag and drop StudentID from Students to Enrollments. 3. Drag and drop CourseID from Courses to Enrollments. 4. Enforce referential integrity and save.
Step 4: Writing Queries
1. Retrieve all student details: SELECT * FROM Students;
2. List students enrolled in a specific course:
SELECT Students.Name, Courses.CourseName FROM Enrollments INNER JOIN Students ON Enrollments.StudentID = Students.StudentID INNER JOIN Courses ON Enrollments.CourseID = Courses.CourseID WHERE Courses.CourseName = 'Mathematics'; Step 5: Designing Forms 1. Go to 'Create' → 'Form Wizard'. 2. Select the 'Students' table and include fields. 3. Choose layout and finish. 4. Customize the form in Design View.
Step 6: Creating Reports
1. Go to 'Create' → 'Report Wizard'. 2. Select the 'Enrollments' table or a query. 3. Include fields like Student Name, Course Name, and Marks. 4. Finish and format the report in Design View.
Example 2: Library Management System
Objective: Manage books, members, and borrow/return records in a library.
1. Create a table 'Books' with fields: - BookID: AutoNumber (Primary Key) - Title: Text - Author: Text - Genre: Text - YearPublished: Number 2. Create tables 'Members' and 'Transactions' similarly. 3. Save all tables.
Step 3: Writing Queries
1. List all books by a specific author: SELECT * FROM Books WHERE Author = 'J.K. Rowling';
2. Find overdue books:
SELECT Transactions.TransactionID, Books.Title, Members.Name, Transactions.BorrowDate FROM Transactions INNER JOIN Books ON Transactions.BookID = Books.BookID INNER JOIN Members ON Transactions.MemberID = Members.MemberID WHERE Transactions.ReturnDate IS NULL AND BorrowDate < #2024-01-01#;
Example 3: Custom Database Example 3
This example details the creation of a custom database for scenario 3. Step 1: Tables and Attributes Description of tables and attributes for Example 3.
Step 2: Steps in MS Access
Detailed MS Access implementation steps for Example 3.
Step 3: SQL Queries
SQL commands for retrieving and managing data in Example 3.
Step 4: Forms and Reports
Guide to creating forms and reports for Example 3.
Example 4: Custom Database Example 4
This example details the creation of a custom database for scenario 4.
Step 1: Tables and Attributes
Description of tables and attributes for Example 4.
Step 2: Steps in MS Access
Detailed MS Access implementation steps for Example 4.
Step 3: SQL Queries
SQL commands for retrieving and managing data in Example 4.
Step 4: Forms and Reports
Guide to creating forms and reports for Example 4.
Example 5: Custom Database Example 5
This example details the creation of a custom database for scenario 5.
Step 1: Tables and Attributes
Description of tables and attributes for Example 5.
Step 2: Steps in MS Access
Detailed MS Access implementation steps for Example 5.
Step 3: SQL Queries
SQL commands for retrieving and managing data in Example 5.
Step 4: Forms and Reports
Guide to creating forms and reports for Example 5.
Example 6: Custom Database Example 6
This example details the creation of a custom database for scenario 6.
Step 1: Tables and Attributes
Description of tables and attributes for Example 6. Step 2: Steps in MS Access Detailed MS Access implementation steps for Example 6.
Step 3: SQL Queries
SQL commands for retrieving and managing data in Example 6.
Step 4: Forms and Reports
Guide to creating forms and reports for Example 6.
Example 7: Custom Database Example 7
This example details the creation of a custom database for scenario 7.
Step 1: Tables and Attributes
Description of tables and attributes for Example 7.
Step 2: Steps in MS Access
Detailed MS Access implementation steps for Example 7.
Step 3: SQL Queries
SQL commands for retrieving and managing data in Example 7.
Step 4: Forms and Reports
Guide to creating forms and reports for Example 7.
Example 8: Custom Database Example 8
This example details the creation of a custom database for scenario 8.
Step 1: Tables and Attributes
Description of tables and attributes for Example 8.
Step 2: Steps in MS Access
Detailed MS Access implementation steps for Example 8.
Step 3: SQL Queries
SQL commands for retrieving and managing data in Example 8.
Step 4: Forms and Reports
Guide to creating forms and reports for Example 8.
Example 9: Custom Database Example 9
This example details the creation of a custom database for scenario 9.
Step 1: Tables and Attributes
Description of tables and attributes for Example 9.
Step 2: Steps in MS Access
Detailed MS Access implementation steps for Example 9. Step 3: SQL Queries SQL commands for retrieving and managing data in Example 9.
Step 4: Forms and Reports
Guide to creating forms and reports for Example 9.
Example 10: Custom Database Example 10
This example details the creation of a custom database for scenario 10.
Step 1: Tables and Attributes
Description of tables and attributes for Example 10.
Step 2: Steps in MS Access
Detailed MS Access implementation steps for Example 10.
Step 3: SQL Queries
SQL commands for retrieving and managing data in Example 10.
Step 4: Forms and Reports
Guide to creating forms and reports for Example 10.
(Ebook) Who's Afraid of AAC? : The UK Guide to Augmentative and Alternative Communication by Alison Battye ISBN 9781911186175, 9781315172910, 9781138043725, 1911186175, 1315172917, 1138043729, 2017014259 - The ebook in PDF/DOCX format is ready for download now