Documente Academic
Documente Profesional
Documente Cultură
Marks
Q1
Index No
Q2
Login No
Q3
Lab
Q4
Time
Total
Question 01
Nenasa is a library facility which is fully funded and maintained by a charitable organization.
At present, the library is equipped with nearly 20,000 books belonging to various categories
including Literature, History , Health and medical sciences, Social science and Law. A detailed
record is kept for each book in the library and it includes the properties like Title, Author,
Publisher, Category, Date of Entry etc. There may be multiple copies of the same book, but each
of these is also assigned with a unique reference number. (i.e. They do not share the same
reference number).
The Library provides lending service only for its registered members. Registration is provided for
a period of one year upon payment. A registered member is issued with an identification number
which they subsequently use when borrowing the books. The library is keeping full detailed
records for each of its registered members. Name, Gender, Age, Date of Registration and Date of
Expiry are some of the details stored about the members.
Books are lent for one day. Each member is allowed to borrow a maximum of two books per day.
The library keeps records on each borrowing action of the members. These records generally
include the details such as Lending No, Member, Book, Date of Lend etc.
When a book borrows by a member the system want to record the staff members detail in the
lending detail. The library is headed by a senior librarian and assisted by two assistant librarians.
You are required to draw a suitable database design for the Nenasa Library by considering the
above scenario. Your solution should include the following.
Question 02
ABC Movie (Pvt) Limited is a movie rental shop and they are maintaining a database consist with
four tables (Customer, Movies, Movie Copies and Movie Transaction). Create a database in your
exam folder using MS Access software and save it with your Index Number.
You have to create 04 tables and specifications have given in the following table. First column
contains table names and the second column contains the field names of each table. The last
column gives you some additional information and you should change appropriate settings to
satisfy the given additional information. If an additional detail is blank for a field it means no
additional settings for those fields.
Table Name
Field Name
Customer Table NICNo
FName
LName
TelNo
Email
Movies Table
MovieID
MovieTitle
YearMade
MediaType
Movie
Table
Copies CopyID
MovieID
Movie
Transaction
Table
TransactionID
NICNo
CopyID
DateHired
DateReturned
Payment
User should be able to select CD, DVD and Tape from a list
for this field
This is the primary Key
Could be selected from the list and the list should display
MovieIDs from the Movies table
This is the primary Key
Question 03
Use the Airline Reservation Database that is given in your exam folder for this question.
Part I
a) Create a query to display the following information of passengers; Passport ID, Last Name,
(03 Marks)
b) Create a query to display the Aircraft Names which journey from Colombo to London. Save
the Query as Q2
(04 Marks)
c) Create a query to show the Total No of Seats Booked for each journey. (Display only
Journey ID and No of seats booked). Save the Query as Q3
(04 Marks)
2
d) Create a query to filter/show passenger details when you enter passengers Last Name as the
parameter value to a prompt dialog box. Use Enter Passenger Name as the prompt dialog
box statement. Save the Query as Q4
(04 Marks)
Part II
e) Create a report to display Reservation Details. Group the report details by the PassportID.
Apply the following page setup settings to the document and Save the Report as
ReservationDetails.
Page Size
: A4
Orientation
: Landscape
Margins
(05 Marks)
Part III
g) Build a form to display passenger/passengers Details. Save the Form as Passengers
(04 Marks)
h) Build a form to display Reservation Details. Insert a button to the form to open the
Reservation details report which was created in part II. Type ABC Airline Reservation
System at the form footer. Apply the given picture Travel Plane.JPG as the form logo.
Save the Form as Reservation.
(06 Marks)
i) Make a form to filter/display Journey Details based on a selected Aircraft ID. (Journey
Details should be displayed in a sub form when you select Aircraft ID from a combo box in
the same form). Save the Form as Aircrafts.
(05 Marks)
Part IV
j) Create a Switchboard for your database to navigate through form/s and report/s using the
structure given below. Forms and Reports should be navigated through Form Menu and
Report Menu respectively.
Main Menu
Form Menu
Report
Menu
Passenger
From
Aircraft
From
Reservation Details
Report
Journey Details Report
Main Menu
Main Menu
(05 Marks)
Total Marks 45
3
Question 04
Use the following table to answer this Question. Answers should be written on the question paper
itself.
Table Name: Members
MemberNo
M01
M02
M03
M04
M05
Name
Anurada
Champika
Nayani
Kanchana
Achini
Madushani
Gayani
Rathnayaka
Mihidu
Fernando
NIC
804560897v
Category
Academic
856789434v
Student
703467879v
835670783v
689056782v
Address
Gangodawila,
Nugegoda
Pasyala
DateJoined
2/9/1999
BooksAllowed
15
3/8/2009
Non
Acadamic
Acadamic
Maharagama
2/8/1998
Colombo 7
4/7/2009
15
Non
Academic
Maharagama
4/2/1999
(02 Marks)
2. Write a SQL query to display Member names whose names starting from A
..
(02 Marks)
3. Write a SQL query to delete Achini Madushanis record from the Members Table.
(03 Marks)
4. Write a SQL query to display Member number and name of each Member in ascending
order of date joined.
(04Marks)
5. Nayani Kanchana has changed her address as Negombo. Write a SQL query to update her
record in the Members table.
(04 Marks)
Total Marks 15
Lab
Login No
Time