0% found this document useful (0 votes)
13 views

Extended_Database_Guide

Extended database practice for Bs and ads students 2024 and 2027

Uploaded by

nshizuka663
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Extended_Database_Guide

Extended database practice for Bs and ads students 2024 and 2027

Uploaded by

nshizuka663
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Extended Guide to Database Systems with Practical Examples

Introduction
This document provides 10-15 practical examples for implementing database systems using
Microsoft Access and SQL. Each example includes a step-by-step guide to designing tables,
establishing relationships, writing queries, and creating forms and reports.

Example 1: Student Management System


Objective: Manage student records, courses, and enrollments in a school.

Step 1: Tables and Attributes


1. Students: StudentID (PK), Name, Age, Gender, Address
2. Courses: CourseID (PK), CourseName, Credits
3. Enrollments: EnrollmentID (PK), StudentID (FK), CourseID (FK), Marks

Step 2: Creating Tables in MS Access


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. Create tables 'Courses' and 'Enrollments' similarly.
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: Placeholder Title


Objective: Placeholder description for example 2.

Step 1: Tables and Attributes


Table design and attributes for example 2.

Step 2: Steps in MS Access


Detailed steps for implementing example 2 in MS Access.

Step 3: SQL Queries


SQL commands for example 2.

Step 4: Forms and Reports


Guide to forms and reports for example 2.

Example 3: Placeholder Title


Objective: Placeholder description for example 3.

Step 1: Tables and Attributes


Table design and attributes for example 3.

Step 2: Steps in MS Access


Detailed steps for implementing example 3 in MS Access.

Step 3: SQL Queries


SQL commands for example 3.

Step 4: Forms and Reports


Guide to forms and reports for example 3.

Example 4: Placeholder Title


Objective: Placeholder description for example 4.
Step 1: Tables and Attributes
Table design and attributes for example 4.

Step 2: Steps in MS Access


Detailed steps for implementing example 4 in MS Access.

Step 3: SQL Queries


SQL commands for example 4.

Step 4: Forms and Reports


Guide to forms and reports for example 4.

Example 5: Placeholder Title


Objective: Placeholder description for example 5.

Step 1: Tables and Attributes


Table design and attributes for example 5.

Step 2: Steps in MS Access


Detailed steps for implementing example 5 in MS Access.

Step 3: SQL Queries


SQL commands for example 5.

Step 4: Forms and Reports


Guide to forms and reports for example 5.

Example 6: Placeholder Title


Objective: Placeholder description for example 6.

Step 1: Tables and Attributes


Table design and attributes for example 6.

Step 2: Steps in MS Access


Detailed steps for implementing example 6 in MS Access.

Step 3: SQL Queries


SQL commands for example 6.

Step 4: Forms and Reports


Guide to forms and reports for example 6.

Example 7: Placeholder Title


Objective: Placeholder description for example 7.

Step 1: Tables and Attributes


Table design and attributes for example 7.
Step 2: Steps in MS Access
Detailed steps for implementing example 7 in MS Access.

Step 3: SQL Queries


SQL commands for example 7.

Step 4: Forms and Reports


Guide to forms and reports for example 7.

Example 8: Placeholder Title


Objective: Placeholder description for example 8.

Step 1: Tables and Attributes


Table design and attributes for example 8.

Step 2: Steps in MS Access


Detailed steps for implementing example 8 in MS Access.

Step 3: SQL Queries


SQL commands for example 8.

Step 4: Forms and Reports


Guide to forms and reports for example 8.

Example 9: Placeholder Title


Objective: Placeholder description for example 9.

Step 1: Tables and Attributes


Table design and attributes for example 9.

Step 2: Steps in MS Access


Detailed steps for implementing example 9 in MS Access.

Step 3: SQL Queries


SQL commands for example 9.

Step 4: Forms and Reports


Guide to forms and reports for example 9.

Example 10: Placeholder Title


Objective: Placeholder description for example 10.

Step 1: Tables and Attributes


Table design and attributes for example 10.

Step 2: Steps in MS Access


Detailed steps for implementing example 10 in MS Access.
Step 3: SQL Queries
SQL commands for example 10.

Step 4: Forms and Reports


Guide to forms and reports for example 10.

Example 11: Placeholder Title


Objective: Placeholder description for example 11.

Step 1: Tables and Attributes


Table design and attributes for example 11.

Step 2: Steps in MS Access


Detailed steps for implementing example 11 in MS Access.

Step 3: SQL Queries


SQL commands for example 11.

Step 4: Forms and Reports


Guide to forms and reports for example 11.

Example 12: Placeholder Title


Objective: Placeholder description for example 12.

Step 1: Tables and Attributes


Table design and attributes for example 12.

Step 2: Steps in MS Access


Detailed steps for implementing example 12 in MS Access.

Step 3: SQL Queries


SQL commands for example 12.

Step 4: Forms and Reports


Guide to forms and reports for example 12.

Example 13: Placeholder Title


Objective: Placeholder description for example 13.

Step 1: Tables and Attributes


Table design and attributes for example 13.

Step 2: Steps in MS Access


Detailed steps for implementing example 13 in MS Access.

Step 3: SQL Queries


SQL commands for example 13.
Step 4: Forms and Reports
Guide to forms and reports for example 13.

Example 14: Placeholder Title


Objective: Placeholder description for example 14.

Step 1: Tables and Attributes


Table design and attributes for example 14.

Step 2: Steps in MS Access


Detailed steps for implementing example 14 in MS Access.

Step 3: SQL Queries


SQL commands for example 14.

Step 4: Forms and Reports


Guide to forms and reports for example 14.

Example 15: Placeholder Title


Objective: Placeholder description for example 15.

Step 1: Tables and Attributes


Table design and attributes for example 15.

Step 2: Steps in MS Access


Detailed steps for implementing example 15 in MS Access.

Step 3: SQL Queries


SQL commands for example 15.

Step 4: Forms and Reports


Guide to forms and reports for example 15.

You might also like