Professional Documents
Culture Documents
Page
Page
System Overview
The Hostel Management System consists
of two main components: the User System Design
Dashboard and the Admin Dashboard. The system design includes the database
The User Dashboard is designed for schema, the user interface design, the
students, where they can register, apply admin interface and the system flow. The
Page | 2
ISSN 2456- 2637
database schema includes the tables for system meets the requirements and user
the user registration, admin registration, expectations.
room allocation, fee payment, and food
management. The user interface design
System Requirements
includes the login page, registration page,
dashboard, and forms for room allocation, The system requires a web server, a
fee payment, and food management. The database server, and a client-side web
admin interface design includes identity browser. The web server should support
number, user name. email address, login PHP, and the database server should
details, password, updation date. The support MySQL or MariaDB. The client-
system flow includes the process for user side web browser should be modern and
The system testing includes unit testing, solution for managing hostels. The system
integration testing, and acceptance testing. automates the hostel management process,
The unit testing includes testing the making it easier for hostel staff to manage
individual components of the system, the hostel and for students to apply for
including the model, view, and controller. accommodation, pay fees, and view their
The integration testing includes testing the hostel details. The system is designed using
integration of the components to ensure the MVC architectural pattern and is tested
that they work together correctly. The to ensure its reliability and functionality.
Page | 3
ISSN 2456- 2637
Description:-
ER model stands for an Entity-Relationship model. It is a high-level data model. This model is used
to define the data elements and relationship for a specified system. It develops a conceptual design
for the database. It also develops a very simple and easy to design view of data.In ER modeling, the
database structure is portrayed as a diagram called an entity-relationship diagram.
Page | 4
ISSN 2456- 2637
Description:-
SQL CREATE TABLE statement is used to create table in a database.If you want to create a table, you
should name the table and define its column and each column's data type.
Create Table:-
Page | 5
ISSN 2456- 2637
Show Table:-
Page | 6
ISSN 2456- 2637
Page | 7
ISSN 2456- 2637
Alter Table:-
Page | 8
ISSN 2456- 2637
Title: Execute DDL statements which demonstrate the use of views. Try to update the base
table using its corresponding view. Also consider restrictions on updatable views and perform
view creation from multiple tables.
Description:
A view is a database item that enables the creation of virtual tables in databases whose
contents are determined by queries or pulled from one or more tables.
Views are a subset of virtual tables in SQL.
Conventional tables require physical space in the database, whereas these views don't actually
require any.
Screenshots/Output:
Page | 9
ISSN 2456- 2637
Query :-
OutPut :-
Page |
ISSN 2456- 2637
Query :-
Output :-
Query:-
Page |
ISSN 2456- 2637
Output:-
Query:-
Page |
ISSN 2456- 2637
Output:-
Title: Write equijoin, non equijoin, self join , Natural join and outer join queries
Description:
MySQL JOINS are used with SELECT statement. It is used to retrieve data from multiple
tables. It is performed whenever you need to fetch records from two or more tables.
Screenshots/Output:-
Inner Join:-
Page |
ISSN 2456- 2637
Query:-
Output:-
Page |
ISSN 2456- 2637
Query:-
Output:-
Page |
ISSN 2456- 2637
Query:-
Output:-
Page |
ISSN 2456- 2637
Equijoin:-
Query:-
Output:-
Natural Join:-
Page |
ISSN 2456- 2637
Query:-
Output:-
Page |
ISSN 2456- 2637
Title: Design and Execute "SELECT" queries using conditional, logical, like/not like, in/not
in, between...and, is null/is not null operators in where clause, order by, group by, aggregate
functions, having clause, and set operators. Use SQL single row functions for date, time,
string etc.
Description:
Here are some sample queries that demonstrate the use of conditional, logical, like/not like,
in/not in, between...and, is null/is not null operators in the WHERE clause, ORDER BY,
GROUP BY, aggregate functions, HAVING clause, and set operators, as well as SQL single
row functions for date, time, and string manipulation.
Screenshots/Output:
Page |
ISSN 2456- 2637
Page |
ISSN 2456- 2637
Page |
ISSN 2456- 2637
Page |
ISSN 2456- 2637
Page |
ISSN 2456- 2637
Page |
ISSN 2456- 2637
Page |
ISSN 2456- 2637
Page |
ISSN 2456- 2637
Description: A stored is a prepared SQL code that you can save, so the code can be reused
over and over again. So if you have an SQL query that you write over and over again, save it
as a stored procedure, and then the stored procedure can act based on the parameter values
that is passed.
Screenshots/Output:
1.Stored Procedure:-
Page |
ISSN 2456- 2637
Query:-
Output:-
Page |
ISSN 2456- 2637
Query:-
Output:-
Page |
ISSN 2456- 2637
Description: In PL/SQL, triggers are special stored procedures that are executed automatically in
response to certain events, such as inserting, updating, or deleting data in a database table.
Triggers can be defined on tables or views, and are useful for enforcing business rules,
maintaining referential integrity, or auditing changes to data.
Screenshots/Output: 1.BEFORE
INSERT trigger:
Page |
ISSN 2456- 2637
Page |
ISSN 2456- 2637
Page |
ISSN 2456- 2637
Page |
ISSN 2456- 2637
Page |
ISSN 2456- 2637
Page |
35
ISSN 2456- 2637
Page |
36