Dbms Final Report
Dbms Final Report
A
MINI PROJECT REPORT ON
Submitted by,
THANUSHA R YASHASWINI H V
1JS20CS172 1JS20CS188
Under the guidance of
Mrs. K S Rajeshwari Mrs. Pooja H
Assistant Professor, Dept of CSE Assistant Professor, Dept of CSE
JSSATE, Bengaluru JSSATE, Bengaluru
CERTIFICATE
This is to certify that the mini-project work entitled "REAL ESTATE MANAGEMENT
SYSTEM" is a Bonafide work carried out by Ms. THANUSHA R (1JS20CS172) and Ms.
YASHASWINI H V (1JS20CS188) in partial fulfillment for the Database Management
Systems Laboratory with Mini Project (18CSL58) of 5th semester Bachelor of Engineering
in Computer Science and Engineering of the Visvesvaraya Technological University,
Belgaum during the academic year 2022-2023. It is certified that all corrections and
suggestions indicated for Internal Assessment have been incorporated in the report deposited
in the department library. The project report has been approved as it satisfies the academic
requirements in respect of project work prescribed for the said degree.
1)…………………………………….. ……………………………………
2)…………………………………….. …………………………………….
ABSTRACT
The World of data is constantly changing and evolving every second. This
inturn has created a completely new dimension of growth and challenges for
businesses around the globe .By accurately recording data ,storing, updating
and tracking them on an efficient and regular basis ,businesses can address
their challenges on one hand and make use of the immense potentials offered
by this sector om the other hand.
This application will help in smooth and easy functioning of selling and
buying the properties that are available in city. Users are prompted with a
login screen with their credential stored in the database.
Users will also be given with features to search the cities available, which
will help them to get a glance at the properties available around the city. The
user interface will be simple and easy to understand .Users will be able to
get the precise information about the properties that are available in the city.
ACKNOWLEDGEMENTS
We express my humble pranamas to His Holiness Jagadguru Sri Sri Sri Shivarathri
Deshikendra Mahaswamiji who has showered their blessings on us for framing our career
successfully.
We express our sincere thanks to our beloved principal, Dr. Bhimasen Soragaon for having
supported us in our academic endeavors.
We are also indebted to Dr. P B Mallikarjuna, Head of Department of Computer Science and
Engineering for the facilities and support extended towards us.
We are thankful to the resourceful guidance, timely assistance and graceful gesture of our
guide Mrs. K S Rajeshwari, Assistant Professor, Department of Computer Science and
Engineering, and Mrs. Pooja H, Assistant Professor, Department of Computer Science and
Engineering, who has helped us in every aspect of our project work.
And last but not the least, we would be very pleased to express our heart full thanks to all the
teaching and non-teaching staff of CSE department and our friends who have rendered their
help, motivation and support.
The completion of any project involves the efforts of many people. We have been lucky
enough to have received a lot of help and support from all quarters during the making of this
project, so with gratitude, we take this opportunity to acknowledge all those who have given
guidance and encouragement helped us emerge successful.
THANUSHA R
1JS20CS172
YASHASWINI H V
1JS20CS188
TABLE OF CONTENTS
CHAPTER TITLE PAGE NO
ACKNOWLEDGEMENT
ABSTRACT
TABLE OF CONTENTS
TABLE OF FIGURE
1 PREAMBLE
1.1 INTRODUCTION 1
1.2 DATA REQUIREMENTS 3
1.3 NORMALIZATION
4
2 SYSTEM DESIGN
2.1 INTRODUCTION 6
2.2 ER DIAGRAM 6
2.3 ER TO RELATIONAL SCHEMA 8
2.4 SCHEMA DIAGRAM 10
3 SOFTWARE REQUIREMENTS
3.1 HARDWARE REQUIREMENTS 11
3.2 SOFTWARE REQUIREMENTS 11
3.3 TECHNOLOGIES USED 11
4 DATABASE IMPLEMENTATION
4.1 ADVANTAGES OF USING 12
XAMPP
4.2 CREATE TABLES 13
4.3 TRIGGERS 25
4.4 VIEWS 27
4.5 PSUEDOCODE 28
5 RESULTS
5.1 HOME PAGE 31
5.2 CONTACT US 32
5.3 PROPERTY PAGE 33
5.4 PROPERTY DETAILS 34
5.5 MORTAGE CALCULATOR 36
5.6 USER 37
5.7 USAGE PASSWORD 39
5.8 ADD PROPERTY 40
5.9 FORGET PASSWORD 43
5.10 ADMIN 44
5.11 REVIEW 45
5.12 SEARCH PROPERTIES 46
6 CONCLUSION
6.1 SUMMARY 48
6.2 LIMITATIONS 48
6.3 FUTURE ENHANCEMENT 49
7 REFERENCES 50
LIST OF FIGURES
SL NO FIG NO WITH TITLE PAGE
NO.
1 Fig 2.1 E R Diagram 8
1.3 NORMALIZATION
Normalization is a process of organizing the data in database to avoid data
redundancy, insertion anomaly, update anomaly & deletion anomaly. To
overcome
these anomalies, we need to normalize the data. There are 4 basic types of
normalizations. They are:
• First normal form(1NF)
• Second normal form(2NF)
• Third normal form(3NF)
• Boyce & Codd normal form (BCNF)
First normal form (1NF) is defined as per rule as: an attribute (column) of a
table
Cannot hold multiple values. It should hold only atomic values. This means
that there
shouldn’t be repetition of data in the tables.
A table is said to be in 2NF if the two conditions stated are satisfied. The
table is in
First normal form and all the non-prime attribute are dependent on the proper
subset
of any candidate key of table. The attribute that is not part of any candidate
key are
known as non-prime attribute.
A table design is said to be in 3NF if the table is in 2NF Transitive functional
Dependency of non-prime attribute on any super key are removed.
Boyce Codd normal form (BCNF) is the advance version of 3NF that’s why
it is also
referred as 3.5NF. BCNF is stricter than 3NF. A table complies with BCNF
if it is in
3NFand for every functional dependency X->Y, X should be the super key
of the
table.
CHAPTER 2
SYSTEM DESIGN
2.1 INTRODUCTION
It is the process of defining, developing and designing systems which
satisfies the specific needs and requirements of a business or organization.
The purpose of the System Design process is to provide sufficient detailed
data and information about the system and its system elements to enable the
implementation consistent with architectural entities as defined in models
and views of the system architecture. The designer determine what data must
be stored and how the data elements interrelate. With this information, they
can begin to fit the data to the database model. Database management system
manages the data accordingly. Database design involves classifying data and
identifying interrelationships.
2.2 ER DIAGRAM:
An entity–relationship model or the ER Diagram describes inter-related
things of interest in a specific domain of knowledge. An ER model is
composed of entity types and specifies relationships that can exist between
instances of those entity types.
Entity Type :
It refers to the category that a particular entity belongs to.
Entity Set :
An entity set is a collection or set of all entities of a particular entity type at
any point in time. The type of all the entities should be the same.
Attributes:
In a database management system (DBMS), an attribute is a piece of data
that describes an entity.
Types of attributes:
• Single valued Attribute:
Attributes having a single value for a particular item is called a single valued
attribute.
• Multi-valued Attribute:
Attribute having a set of values for a single entity is called a multi-valued
attribute.
• Derived Attributes or stored Attributes:
Derived attribute is a type of attribute where the value for that attribute will
be derived from one or more of the other attributes of the same entity set.
• Complex Attribute:
The attributes that are formed by arbitrarily nesting the composite and
multivalued attributes are called complex attributes.
Relationship type:
A Relationship Type is a type of association that can exist between two
different (or same) entity types.
Constraints:
Constraints are used to limit the type of data that can go into a table.
Types:
• NOT NULL constraints.
• Unique constraints.
• Primary key constraints.
• (Table) Check constraints.
• Foreign key (referential) constraints.
2.3 ER TO RELATIONAL SCHEMA:
Steps to convert Entity Sets to Tables.
1. Create a table for the entity set.
2. Make each attribute of the entity set a field of the table, with an appropriate
data type.
3. Declare the field or fields comprising the primary key
TABLE ENQUIRY
CREATE TABLE tblenquiry (
ID int(11) NOT NULL,
PropertyID int(10) NOT NULL,
FullName varchar(200) NOT NULL,
Email varchar(200) NOT NULL,
MobileNumber bigint(10) NOT NULL,
Message mediumtext NOT NULL,
EnquiryNumber varchar(200) NOT NULL,
EnquiryDate timestamp NOT NULL DEFAULT current_timestamp(),
Status varchar(10) DEFAULT NULL,
Remark varchar(200) DEFAULT NULL,
RemarkDate timestamp NULL DEFAULT NULL ON UPDATE
current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
Trigger 2
CREATE TRIGGER ‘STATE’
AFTER INSERT ON ‘TBLSTATE’
FOR EACH ROW
INSERT INTO STATELOG
VALUES(NULL,NEW.ID,NEW.COUNTRY ID,NEW.STATE NAME,
‘STATE INSERTED’,NOW());
4.4 VIEWS
A view is virtual table based on the result set of an SQL statement .It contains
rows and columns , just like a real table. The fields in view are fields from
one or more real table in a database.
CREATE VIEW VIEWPROP AS
SELECT ID, UserID , PropertyTitle ,Area ,Size , RentorsalePrice
FROM `tblproperty`
4.2 PSUEDO CODE:
4.2.1Algorithm for admin login
Step 1: BEGIN
Step 2: Enter username and password
Step 3: Verify the credentials entered with that in the login table
Step 4: If Credentials match, then proceed to the
Admin page Else show login failed
Step 5: End if
Step 6: END
HOME PAGE
Property Details
Fig 5.4 Property Details
Property Details Page appears when user clicks on the Property they want to
see .
Posted by column contains the details of the person who posted the property.
Features of Properties which are present and not present will be specified.
Location of the property is also available on this page.
MORTAGE CALCULATOR
Admin Dashboard has total count of various aspects like properties ,total
no of cities in which properties are available ,total users registered ,number
of owners and so on..
Fig 5.15 Admin Profile