Sie sind auf Seite 1von 6

MS Access Practice Questions

Q1
A Malhotra clinic operates a laboratory that conducts various types of
pathological tests on patients visiting the clinic. The database consists of three tables
that have been described below:
Patients
Identity of Patient
First Name of Patient
Middle Name of Patient
Last Name of Patient
Date of Birth
Test Types
Identity of Test
Name of Test
Test Charges

(Primary Key)

(Primary Key)

Test Results
Identity of Patient
Identity of Test
Date of Test
Result of Test as comments

(Primary key)
(Foreign key)

Required:

Create database by creating tables be name Patient, Test Type and Test Results

Enter four records for each table and establish and implement referential integrity
between fields of tables.

Incorporate constrain to specify that the laboratory not charge less than Rs. 500 for
any test that conducted in laboratory.

Create a lookup to enter Identity of patient and Identity of Test in Test Result Table
from Patients and Test Types Table respectively.

Create the forms for entering the records in database named by Patient, Test Type
and Test Results.

Create an query that retrieves Date of Test held between 1 st Jan 2011 to 31st Jan
2011, First Name of Patient starts with R, and Type of Test is Sugar and display
Identity of Patient.

Prepare a report which shows identity of Patient, First Name of Patient,


Identification of Test, and Name of Test. Groupings should be based on Name of
Test.
*****

Q2
The library at DAV College, Chandigarh maintains database of the books issued
and returned by the students, consisting of three tables of which are given below:
Students
Identity of Student
Name of Student
Date of Birth

(Primary Key)

Books
Identity of Books
Subject Book
Accession Number

(Primary Key)

Books Issued
Accession Number
Identity of Student
Identity of Books
Date of Issue
Date of Return

(Primary Key)
(Foreign Key)

Required:

Create a database which contains above tables with referential integrity constraints.

Ensure that the date of birth of student is not after l-Apr-1995. Give a suitable
message if this condition/constraint is violated.

Enter four records for Students, six records of Books and three records of Books
Issued.

Set Lookup to enter Identity of students, Accession Number and Identity of Books
in Books Issued Table from Students and Books Table respectively.

Design and generate the forms for the above tables that may be used for entering the
books issued to students interactively.

Create query to list the Subject Books as Computer issued after 1 st March 2012, to
the students name starting from R. and also display Identity of Books.

Create the report to group the books on Subject Book, Accession Number and
Identity of Students.
*****

Q3
M/s SMS Ltd. stores the data as to the leave taken by its employees in
Employee Leave database consisting of three tables with following as given below:
Employee
Identity of Employee
Name of Employee
Date of Joining

(Primary Key)

Leave Record
Identity of Employee
Date of Leave
Type of Leave
Number of Days

Progress Record
File ID
Identity of Employee
Date of Next Increment
Remarks

(Primary Key)
l=Casual, 2=Earned, 3=Medical

(Primary Key)
(Foreign Key)

Required:

Q4

Create a database named as that contains above tables with referential integrity
constraints.

Ensure that the date of joining the firm for an employee is not after l-Jan-2012.
Give a suitable message if this Condition/constraint is violated.

Enter six records for leave, six records of employees for the three different type of
leave and six records for Progress Record.

Set lookup property to ensure that the record for Identity of Employee is entered in
leave record and progress record table using list box.

Create query statement that prepares a list of employees with their identity and
names and the days of leave having more than or equal to 4 days in casual leave and
date of next increment is between 1st APRIL 2010 to1st APRIL 2012..

Design a form that is capable of entering records into Employee, Leave Record and
Progress Record table.

Prepare a report of the employees to show the type of leave avail by them along
with identity of Employee, Date of Next Increment. Grouping should be based on
Types of Leave.

M/s Virmani & Sons Ltd. maintains database of its employees the details of three tables
of which is given below:
Employees
Identity of Employee
Name of Employee
Date of Birth
Pay Details
Identity of Employee
Salary
Numeric value of month

(Primary Key)

(Primary Key)

Months
Numeric value of Month
Name of Month

(Primary Key)

Required:

Create a database that contains above tables with referential integrity constraints.

Ensure that the date of birth of employee is not after l-Apr-1995. Give a suitable
message if this condition/constraint is violated.

Enter six records for months, three records of employees with their pay details for
two different months.

Set lookup property to ensure that the records entered in Pay details and Months
tables are entered using list box.

Create a Query that retrieves Identification of Employee whose salary is more than
Rs 15000/ PM, their names starting from S, and whose date of birth fall in the year
1974.

Create a form to enter records in Employees, Pay Details, and Months tables.

Create a report of the employees which show Identity of Employee, Name of employee, Basic
pay for Month. Grouping should be based on the name of Month.

Q5

Alpha Ltd. maintains a database of its employees as follows:


Employee Information
Field
ECode
EName
EAddress
EGender
EDate
Birth
EPhone

Data Type
Text (Width:4)
Text
(Width:10)
Memo
Text
of Date/Time

Description
Identification of employee (Primary Key)
Name of employee
Address of the employees
M=Male, F=Female
Date of Birth of employees
10 digit unique number

Salary Information
Field
ECode
Msal paid

Data Type
Text (Width:4)
Text: List

Ysal paid
Basic
HRA
DA
Gross Pay

Text: List
Currency

Description
Identity of employee (Foreign key)
Month of salary paid(from January to
December)
Year of salary paid (2006,2007,2008)
Basic Pay of the employee
30% of Basic Pay
50% of Basic Pay
4

Leave Record
Field
Data Type
ECode
Text (Width:4)
Date of leave
Date/Time
No of days of number
leave

Description
Identity of employee (Foreign key)

Required:

Create the above database, Establish and implement referential integrity between
fields of tables

Employees date of birth must be between01/01/1985 and 31/12/1994. If this


condition is violated, display a suitable message.

Enter four records in each table and use the lookup property wherever required.

Create a query Salary Report that retrieves ECode, Name of the employee, basic,
HRA, DA, Gross Pay, PF deduction 10% of basic Pay, Tax deductions 15% of
(Gross PF) and net salary of a particular employee

Create the above query with two constraints that the name should start with A
and the basic pay is more than Rs. 20000.

Create a query Joining Report that retrieves ECode, Name, and Date of leave
and date of joining. Write salutation words like Sir or Madam against the employee
name.

Create the Forms to enter values in Employee Information, Salary Information and
Leave Record.

Prepare Salary Report, and Joining Report of the employees report of the
employees for their salary.
*****

Q6

University of Delhi maintains database of teachers as follows

Teacher Information
Field
TCode
TName
TAddress
TGender
TDate
Birth

Data Type
Text (Width:4)
Text (Width:10)
Memo
Text : Look
wizard
of Date/Time

Description
Identification of teacher (Primary Key)
Name of teacher
Address of the teacher
up M=Male, F=Female
Date of Birth of teachers

Department Information
Field
DCode
DName

Data Type
Description
Text (Width:2)
Identity of Department (Primary key)
Text:
Look up Name of the dept. (Commerce, Science,
wizard
Arts)

College Information
Field
TCode
DCode
DOJ

Data Type
Text (Width:4)
Text (Width:2)
Date/Time

Description
Identification of teacher (Primary Ket)
Identity of Department (Foreign Key)
Date of joining

Required:

Create a database named as Teachers Information, Department Information and


College Information that contains above tables with referential integrity
constraints.

Ensure that the date of birth entered is not after 1/1/1975. Give a suitable
message if this condition/constraint is violated.

Enter four records for each table.

Set lookup property to ensure the records entered in College Information table
are entered using list box created through Teachers and Department Information
tables.

Create a query which shows the TCode, names of the teachers starting from R,
who belongs to Commerce department and date of joining is beteen 16 th July
2005 to 16th july 2006.

Design the forms for all the above three tables which will be capable of entering
the records in Teachers Information, Department Information and College
Information table.

Create a report which shows TCode, TName, DName and DOJ. The Grouping
should be based on DOJ.
*****

Das könnte Ihnen auch gefallen