0% found this document useful (0 votes)
10 views57 pages

Complete File

The document is a portfolio for Computer Science practical assignments at Habib Public High School for the session 2022-23. It includes various practical tasks related to MS-Access, such as creating tables, establishing relationships, and performing queries. Each practical section outlines objectives, procedures, and expected outcomes for students to complete their assignments.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views57 pages

Complete File

The document is a portfolio for Computer Science practical assignments at Habib Public High School for the session 2022-23. It includes various practical tasks related to MS-Access, such as creating tables, establishing relationships, and performing queries. Each practical section outlines objectives, procedures, and expected outcomes for students to complete their assignments.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 57

HABIB PUBLIC HIGH SCHOOL

COMPUTER SCIENCE
PORTFOLIO
MS-ACCESS PRACTICAL
ASSIGNMENTS

SESSION

2022-23

HSSC-I
Aga Khan University Examination Board
Page No: ___
HABIB PUBLIC HIGH SCHOOL
MT. Khan Road, Karachi

Computer Science
XI

Certificate

It is certified that Mr. _______________ of XI Computer Science has

carried out the necessary practical work as prescribed by the Aga Khan

University Examination Board (AKUEB) for the year 2022-2023.

___________ __________
Mr. Younus Bashir Mr. S.M Raza
Teacher Computer Science Section Head

Date: __________

Page No: ___


INDEX
List of Practical
Serial Objective Page Date Teacher’s
No. No. Sign
1 PRACTICAL # 1
(Create Table and entering data)
2 PRACTICAL # 2
(Create table with field properties setting)
3 PRACTICAL # 3
(One to One Relationship)
4 PRACTICAL # 4
(One to Many Relationship)
5 PRACTICAL # 5
(Query Wizards, Sorting and Applying
Criteria using Design View)
6 PRACTICAL # 6
(Query Design View for SELECT and
Update)
7 PRACTICAL # 7
(Query Design for Select and Delete)
8 PRACTICAL # 8
(Create, Alter, Drop Table Using SQL)
9 PRACTICAL # 9
(Form using Wizard)
10 PRACTICAL # 10
(SQL DML Insert and Update)
11 PRACTICAL # 11
(Calculated Fields using SQL)
12 PRACTICAL # 12
(Forms in Design View)
13 PRACTICAL # 13
(Reports Using Wizard)
14 PRACTICAL # 14
Report using Design

Page No: ___


PRACTICAL # 1 (Create Table and enter data)
OBJECTIVE:
Create the following table “STUDENT_INFO” with the appropriate data type and enter the data.
Student First Last Address Course Course Name RegistrationDate CourseDescription Fee
ID (PK) Name Name Code

1 Ali Javed Karachi CMP-001 Database 1-Aug-19 This course is about 12000
the structure and
design of the
database
2 Nisar Nazar Karachi CMP-002 Programming 1-Aug-19 This course is about 120000
C programming
3 Naseer Khan Lahore MA-001 Differential 8-Sep-19 This course is about 140000
Equation differentiating
equations in
mathematics

PROCEDURE:
___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

Page No: ___


___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

Page No: ___


PRINTS
Print of table’s datasheet view.

Print of table’s design view.

Page No: ___


PRACTICAL # 2 (Create a table with field properties setting)
OBJECTIVE:
Create a database in MS-Access of Student Information
Create table STUDENT_DETAILS, the fields are as follows;
GRNO, Name, Class, Address, CNIC, City, Email, DOB, and set the following properties
 Set GRNO as the primary Key and set caption property for ‘GRNO as ‘Student GR NUMBER’.
 Set field size of name up to 50 characters and set it as ‘not null’.
 Give CNIC short text data type and apply input mask as 00000-0000000-0
 Give the default value in the city as ‘Karachi’.
 Apply no duplication on Email.
 Enter 5 random and appropriate records in the table.
 Arrange the table in ascending order according to the name column.

PROCEDURE:
___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

Page No: ___


___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

Page No: ___


PRINTS
Field Property of ‘GRNO’ column.

Field Property of ‘Name’ column.

Field Property of ‘City column.

Page No: ___


Field Property of ‘CNIC’ column.

Field Property of ‘Email’ column.

Print of table with data entry.

Page No: ___


PRACTICAL # 3 (One-to-One Relationship)
OBJECTIVE:
Create a database in MS-Access of Bank Accounts.
 Create 1st table ACCOUNT(AccNo, Acc_Title, Acc_Address, Acc_Phone, Acc_Email)
 Create 2nd table STATUS (StatusID, AccNo, Acc_Status, Balance) with suitable data types.
 Create one to one relationship between the tables.
 Enter 5 Records from parent table to child table.
PROCEDURE:
___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

Page No: ___


___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

Page No: ___


PRINTS
‘ACCOUNT’ table’s design view.

‘STATUS’ table’s design view.

Page No: ___


Relationship tab after creating a relationship.

Datasheet View showing related records.

Page No: ___


PRACTICAL # 4 (One-to-Many Relationship)
OBJECTIVE:
Create a database in MS-Access for school.
1-Create 1st table with the name ‘student’
(SID, Name, Class, CellNo, Email)
2-Create 2nd table Attendance
(AID, SID, DayNumber, MonthName, Year, Present, Absent, Leave)
3- Create a one-to-many relationship between the tables.
4- Enter 5 Records in the table student and related 2 records for each parent record in the attendance
table.

PROCEDURE:
___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

Page No: ___


PRINTS
‘Student’ table’s design view.

‘Attendance’ table’s design view.

Page No: ___


Relationship tab after creating a relationship.

Datasheet view of student’s table showing related records.

Page No: ___


PRACTICAL # 5 (Query Wizards, Sorting and Applying Criteria using Design View)
OBJECTIVE:
Create a database of Library
1- Create table books
(Book_Id, Title, Publisher Name, Author Name, Issued) with suitable datatypes.
2- Create a suitable primary key and input 5 different records.
3- Sort records in ascending order by author name and show the datasheet view.
4- Create a query in the design view for the following;
 Display a list of books sorted by Title in ascending order.
 Display a list of books, published by other than Dogar Brothers/Majeed Sons.
 Display a list of books where there is no Author Name.
 Display a list of books where the Authors’ name starts with ‘M’ and issued is ‘Yes’.
PROCEDURE:
___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

Page No: ___


___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

Page No: ___


PRINTS
‘Books’ table’s design view.

Datasheet view after sorting records in ascending order by author name.

Query in design view to display a list of books sorted by Title in ascending order.

Page No: ___


Query in design view to display a list of books, published by other than Dogar Brothers/Majeed Sons.

Query in design view to display a list of books where there is no Author Name.

Query in design view to display a list of books where Authors’ name starts with ‘M’ and issued is
‘Yes’.

Page No: ___


PRACTICAL # 6 (Query Design View for SELECT and Update)
OBJECTIVE:

Create a database in MS Access for Hospital


1-Create table Patient (Patient_ID, Patient Name, Gender, DOB, Diagnosis, Prescription, Doctor Name,
DOT) with appropriate data types and suitable primary key & enter 10 records.
2-Create queries in the design view with the following names and purposes:
 Displays the records of male patients who have TB diagnosed.
 Display the name and gender of male patients whose names are started by ‘M’.
 Display the records of patients who are having Dengue, Malaria, or Typhoid.
 Display the records of patients who were treated from 1/01/2016 to 1/01/2018.
 Display the record of females who are older than 55 years on 12/12/2018.
 Update the doctor name= Muhammad Ali to all those patients with the date of treatment =
1/01/2018
 Update the doctor name to M.Ali where the doctor name is Muhammad Ali.

PROCEDURE:
___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

Page No: ___


___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

Page No: ___


PRINTS
Design View of the patient table.

Datasheet view of the patient table after entering records.

Query in design view to display the records of male patients who have TB diagnosed order.

Page No: ___


Query in design view to display the name and gender of male patients whose names are started by ‘M’.

Query in design view to display the records of patients who are having Dengue, Malaria or Typhoid.

Query in design view to display the records of patients who are having Dengue, Malaria or Typhoid.

Page No: ___


Query in design view to display the records of patients who were treated from 1/01/2016 to 1/01/2018

Query in design view to display the record of females who are older than 55 years on 12/12/2018.

Update the doctor name= Muhammad Ali to all those patient with date of treatment = 1/01/2018

Update the doctor name to M.Ali where the doctor name is Muhammad Ali

Page No: ___


PRACTICAL # 7 (Query Design for Select and Delete)
OBJECTIVE:

Create a database in MS Access of Employee Information


1-Create table Employee (EID, Name, Gender, DOB, Department, Designation, JoiningDate, and
Email) with appropriate data types and suitable primary key.
2- Create queries in the design view with the following names and purposes:
 Displays the records of the ‘marketing’ department where the designation is ‘Supervisor’
 Display the name of male employees whose names are started by ‘M’.
 Display the records of employees who are Clerk/ Salesman
 Display the record of female employees who are older than 25 years on 01/01/2022.
 Display the list of employees who do not belong to the ‘Finance’ department.
 Delete the record from the table whose employee ID is 3456.

PROCEDURE:
___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

Page No: ___


___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

Page No: ___


PRINTS
Design View of Employee table:

Datasheet view of employee table after entering and deleting records.

Query in design view to display the records of the ‘marketing’ department where the designation is
‘Supervisor’.

Page No: ___


Query in design view to display the name of male employees whose names are started by ‘M’.

Query in design view to display the records of employees who are Clerk/ Salesman.

Query in design view to display the record of females who are older than 25 years on 01/01/2022.

Page No: ___


Query in design view to display the list of employees who do not belong to the ‘Finance’ department.

Query in design view to delete record from the table whose employee ID is 3456.

Page No: ___


PRACTICAL # 8 (Create, Alter, Drop Table Using SQL)
OBJECTIVE
Create a database in MS-Access for Citizens.
 Create table Citizens (CNIC, Name, DOB, Address, Phone, Email) taking suitable data types
using CREATE statement. Set CNIC as Primary Key and Name as Not Null.
 Insert 2 records in the table using the insert statement.
 Change the structure of the table using ALTER statement and add a field of city and country.
 Open the table in the data sheet view and enter cities and countries.
 Remove the field of Address using the DROP statement.
 Enter two more records in the table using datasheet view.
 Write an SQL statement to delete the table.

PROCEDURE:
___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

Page No: ___


___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

Page No: ___


PRINTS
Create a statement as written in MS Access to create a Citizens' table

Insert query of inserting first records in the table using insert statement.

Change the structure of the table using SQL by adding the field of city and country.

Page No: ___


Change the structure of the table by using SQL to remove the field of Address using the DROP
statement.

Print to table’s datasheet view after adding/ dropping columns and inserting records.

SQL query to delete the entire table.

Page No: ___


PRACTICAL # 9 (Form using Wizard)
OBJECTIVE
Create a database in MS-Access for a Vehicle database
 Create table Vehicle (RegNo, BrandName, Model, Color)
 Create a form using a wizard with a tabular layout.
 Enter 15 Records in the table using the form.
 Navigate through records and change the first entry.

PROCEDURE:
___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

Page No: ___


___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

Page No: ___


PRINTS
Design View of table Vehicle.

Design View of form Vehicle.

Datasheet View after entering records from form.

Page No: ___


PRACTICAL # 10 (Select, Insert, Update and Delete)
OBJECTIVE
Create a database in MS Access for Cricket
 Create table SCORE (Player_Id, Player_Name, Runs, Balls) with suitable data types and
primary key.
 Enter at least five records using an insert statement.
 Run SQL query to update the runs=45 and ball=55 of the player whose Player_Id is 452.
 Run SQL query to update the name of the player from Yousuf Yuhana to Muhammad Yousuf.
 Run SQL query to retrieve the records of all players who scored greater than 40 runs on less
than 20 balls.
 Run SQL query to retrieve the records of all those players whose name starts with M or B.
 Run SQL query to delete the record of player_id=450.

PROCEDURE:
___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

Page No: ___


___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

Page No: ___


PRINTS
Design View of table SCORE.

Print of SQL insert statement while entering the first record.

Print of SQL to update the runs=45 and ball=55 of the player whose Player_Id is 452.

Page No: ___


Print of SQL to update the name of the player from Yousuf Yuhana to Muhammad Yousuf.

Print of SQL to retrieve the records of all players who scored greater than 40 runs on less than 20 balls.

Print SQL to retrieve the records of all those players whose name starts with M or B.

Print of SQL query to delete the record of player_id=450

Page No: ___


PRACTICAL # 11 (Calculated Fields using SQL)
OBJECTIVE
Create a payroll database.
1-Create 1st table Employee (Emp_ID, Name, Address)
2-Create 2nd table Salary (SID, Emp_ID, Month, Year, Basic Pay)
3-Create Relationship one to many between the tables and enter five records.
4-Create Query Salary Detail (Emp_ID, Name, Month, Basic Pay, Medical Allowance, House Rent
Allowance, Tax, Gross Pay, Net Pay) as given below:
Medical Allowance=10% of Basic Pay,
House Rent Allowance=15% of Basic Pay,
Gross Pay= Basic Pay + Medical Allowance + House Rent Allowance,
Tax=3% of Gross Pay,
Net Pay=Gross Pay-Tax

PROCEDURE:
___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

Page No: ___


___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

Page No: ___


PRINTS
Design View of table Employee and Salary:

Relationship tab after creating a relationship.

Page No: ___


Print of SQL of Salary Detail.

Page No: ___


PRACTICAL # 12 (Forms in Design View)
OBJECTIVE
Create a database in MS Access for Student Result
Create table Marks (SID, Name, Maths, Computer, Physics, English, Urdu)
 Set a suitable primary key and enter five records.
 Create form Students’ Marks in design view.
 Apply the caption “Student Results” in Red Color.
 Write “Habib Public High School” as a subheading.
 Change the label colors of all fields to “sea green” and label the text color as “white”.
 Apply line thickness of text boxes by 4 points with black color.
 Save the changes and enter three more records using the form.

PROCEDURE:
___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

Page No: ___


___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

Page No: ___


PRINTS
Datasheet View of table Marks after entering records:

Design View of Student’s Marks form.

Form View of Student’s Marks form.

Page No: ___


PRACTICAL # 13 (Reports Using Wizard)
Create a Database Expenditure
Create table Expense (Family No, Conveyance, Foods, Clothing, Rent, Education)
Create a query with the name total_expense having all the above fields as well as Total Expense using
the following formula:
Total Expense = Conveyance + Foods + Clothing + Rent + Education.
 Enter at least 5 records in the table.
 Append 2 records of expense table’s columns (Conveyance, Foods, Clothing, Rent, Education)
into the same table where Family No=3 and 4.
 Create report using wizards with columnar layout and portrait orientation.
 Print report using total_expense query.

PROCEDURE:
___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

Page No: ___


___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

Page No: ___


PRINTS
Datasheet View of table Expense after entering records:

Print of SQL query total_expense.

Print of query design with append query.

Page No: ___


Print of report:

Page No: ___


PRACTICAL # 14 (Reports using Design)
OBJECTIVE
Create a database in MS Access for Restaurant

 Create the following queries from design mode and save the queries.
 Create table Product (Product_Id, Product_Name, Price, QuantityLeft) with suitable data types
and primary key.
 Enter at least five records.
 Create a report using report design and use the product table and apply a heading with a
restaurant name and show the grouped record.
 Print report.

PROCEDURE:
___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

Page No: ___


___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

___________________________________________________________________________________

Page No: ___


PRINTS
Datasheet View of table Product after entering records:

Design View of Product report.

Page No: ___


Print Report

Page No: ___

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy