Practical 6
Practical 6
Create and open the database with multiple tables; Identify the one to one relationships
within the database and to produce reports bases on those relationships
Student_details
teacher
Teacher_details
Add 5 records in all the 4 tables
Once you click on relationships below window will be open, add all the tables from the
window by double clicking on it, once done adding close the window
Once you create you can see that we’ve successfully created one to one relationship
between our student and student_details
Follow the Step 1 to make one to one relationship between teacher and teacher_details
You’ll see the following output on your screen after successfully following the steps
Now press ctrl+s to save the relationship
Step 2) creating a query for student and student_details and making the report based on
that query
Once you click on that following window will open, double click on student and
student_details to add that in the field
As you can see we’ve sid in student and stu_id in student_details.
So we’ve to select only sid and rest all the fields, by double clicking on it
Once you click on the report your report will open, save the report by any name
Practical 6B
Create and open a database with multiple tables; Identify the one to one relationships
within the database and to produce reports based on those queries
course
enrollment
Student_details
Once you click on that following window will open, double click on course and
enrollment to add that in the field
Now you’ll add all the fields in the same way we’ve done in step2 of practical 6A
In this as you can see cid is common in both course and enrollment you’ll only add 1 cid
Your table should look like this
Create and Open a database with multiple tables. Identify the Many to Many
relationships within the database and to produce report based on those relationships
Once you click on relationships below window will be open, add course, enrollment,
student_details from the window by double clicking on it, once done adding close the
window
Now drag the cid from course to cid of enrollment
Click on referential integrity
Click on create
Similary
Drag the sid from enrollment to sid of student_details
Click on referential integrity
Click on create
Now create the query and create the report based on that query
Once you click on that following window will open, double click on course and
enrollment to add that in the field
Now you’ll add all the fields in the same way we’ve done in step2 of practical 6A
Save the query and create the report based on that query
Final output