Lab 1
Lab 1
An organization has a library which lends books and audio visual materials for its employees. The organization
has the tradition of keeping library records on MS Excel sheet. But now it is planning to store records in a
database system. The database development project has to be completed in six months.
The library keeps information about books, audio visual materials, and employees who borrows materials. It also
keeps track of who borrows which material at what time. The information on books includes title, author,
category, publisher, and publication year and is identified by ISBN number. Information about audio visual
materials like title, publication year, length in minutes, and storage media type (DVD, CD, or Tape) are recorded
and they are identified by a serial number. The unique number given by the organization, name and sex of
employees are also recorded. When an employee borrows a material, his\her name, the borrowing date, the due
date, and the ISBN number of the book or the serial number of the audio visual material are registered.
Instruction: - under this project, you are expected to perform the following three tasks based on the information
provided.
Instruction: - under this task, you are expected to prepare a plan for the project using Gantt chart. She/he should
use MS Visio to create the chart. The chart has to show all activities with their time schedule.
1. Planning
2. Requirement collection and analysis
3. Design
4. Implementation
5. Data conversion and loading
6. Testing
7. Operation maintenance
Instruction: - under this task, you are expected to createa database called Library which contains all the
required tables and relationships. You are expected to use SQL statements to create the tables, constraints, and
relationships.
Instruction: - under this task you are expected to create a user interface using VB/C# that can be used to enter
data into the Book table and retrieve the entered data.
Note: you should be provided with a copy of ABC_Rental (the MS-Access database) in order to complete this
project.
A company has a building with many rooms which are rented for office and business use. The given database of
the company keeps records of rooms, customers who rent room, payments, and rent agreements. The
agreements are renewed annually. The rental payment for a room is based on the size and the payment rate per
square meter. A record is also kept that indicates whether a room is occupied or not. The agreements which are
renewed annually have unique identifier, start date and end date.
Instruction: - Under this project, you are expected to perform the following two tasks based on the information
provided
Instruction: - under this task you are expected to migrate to the provided Microsoft Access database to
Microsoft SQL Server.
Instruction: - under this task you are expected to write queries that retrieve records from the migrated
(Microsoft SQL Server) database based on the given questions.
1. Write a query that displays room number and total rental income of each room
RoomNo TotalPayement
R001 168096.00
R101 96120.00
R201 72360.00
R301 42120.00
2. Write a query that shows the room number and price of the room(s) with the rental price
RoomNo Price
R301 2340
3. Write a query that retrieves the last customers name, telephone number, and rental duration(in months)
of unoccupied rooms along with the room number
4. Write a query that displays the name and total rental payment of each customer who currently rents a
room.
Possible Answer for Task 1: planning and organizing the project using Gantt Chart .