Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
2 INTRODUCTION
THE basic purpose of designing this project is to get rid from manual entry and record system and
try to give easy and simple database management system for hostel. this project is design to keep
the record of the student living in hostel, allocation of rooms, their monthly or semester wise dues
and many more things but we are trying to make management system as much as simple and easy
as we can , but we well try to cover all the basic elements use for hostel management database.
3 ARCHITECTURE
This section illustrates the architecture of the database using an Entity Relationship Diagram
(ERD) and a Relational Schema Definition. The ERD shows the overall structure and
communication in the database. The Relational Schema Definition describes the tables to be
created in the database.
3.1 ERD
The Entity Relationship Diagram describes the entities hostel, student, rooms, fee and furniture,
Mess, Mess-employee, Visitor. Each entity has a primary key. Many students will be living in
the hostel. Girls-hostel has many rooms for the accommodation of the students in which more
than one student accommodate their self. so each room has assigned different types of furniture
for the students so they can easily spend the time in room. THEER are many workers in the
Girls-hostel who work in the mess and hostel as well (cleaning, washing,). Every student must
be submit his fee in time so they can get the every facility in hostel.
ERD OF HOSTEL MANAGEMENT SYSTEM;
Many institutes provide the facility of hostel for girls and boys. but we are mentioning only Girls
here, almost all the working is is same in both hostels.
Student
Fee
Rooms
Mess
ON <table name>
After insert
As
Begin
<print statement>
end
7 IMPLEMENTATION APPROACH
The implementation consists of the three following main components.
9.1 Music store database
The database was provided by the University of Amsterdam. Database administrators were the
assistants of the course. The database has JDBC (Java database connectivity) support. The
creation of the tables is made by using the query language SQL. Two examples of the code are
included below:
select*from student
right join fee
on student.stu_id=fee.st_id_no
--------------------------------view-------------
create view vw_student
as
select*from student
inner join hostel
select student.stu_id=hostel.h_id;
select*from vw_FiveStar
---------for trigger
create trigger insert_t
on student
after insert
as
begin
select*from inserted;
end
drop trigger insert_t
------for delete
create trigger delete_tr_Room
on Room
after delete
as
begin
select*from deleted
end
delete from Room
where r_id=4
-----for update
create trigger update_t
on Mess
after update
as
begin
select*from inserted
select*from deleted
end
update Mess set m_incharge_name='mawish'
where m_id=2;
alter trigger insert_t
on student
after insert
as
begin
select*from inserted;
end
--------------------------log trigger
create table log_tbl
(
log_id int primary key identity,
log_information varchar(max),
);
drop table log_tbl
end
select * from room
select*from log_tbl
8 CONCLUSION
AS mentioned earlier we will try to make our project easy and simple so it can be
implement at any level and can be productive and usefull for any hostel management
system. It develop that can easy to access and take admission any hostel seating in your
home through check website.