Dbms Project Report: Agricultural Sales Management System
Dbms Project Report: Agricultural Sales Management System
Dbms Project Report: Agricultural Sales Management System
Project Report
AGRICULTURAL SALES
MANAGEMENT SYSTEM
Submitted by:
Saurav bansal 2k18/me/202
Saurabh agase 2k18/me/201
Abstract
Agri Sales Management Project is a Mini-DBMS Project by which we can easily
understand the concepts of Create, Read Update and Delete operations using
JavaFx and Mysql Technologies. The primary objective behind developing Agri
Sales Management Mini DBMS Project is to show Purchasing of Agriculture
related products like Vegetables, Fruits etc.. Selling those products and managing
the inventory. Modules: Agri Sales Management project consists of 5 Modules:
Seller, Customer, Purchase, Sales and Inventory.
1.
INTRODUCTION
A database management system (DBMS) refers to the technology for creating and
managing databases.Basically DBMS is a software tool to organize (create,
retrieve, update and manage) data in a database.
The main aim of a DBMS is to supply a way to store up and retrieve database
information that is both convenient and efficient. By data, we mean known facts
that can be recorded and that have embedded meaning. Normally people use
software such as DBASE IV or V, Microsoft ACCESS, or EXCEL to store data in
the form of a database.
Database systems are meant to handle large collections of information.
Management of data involves both defining structures for storage of information
and providing mechanisms that can do the manipulation of those stored
information. Moreover, the database system must ensure the safety of the
information stored, despite system crashes or attempts at unauthorized access.
This project is aimed at computerizing the manual process of the agricultural
selling system. Front end and backend are implemented using HTML,javafx and
MySQL respectively. Along with the JSP program to analyse the program. The
project consists of five forms(entity) namely the :
● SELLER who will sell his agricultural products.
● CUSTOMER who will buy the products.
● PURCHASE to give customers the choice to purchase the product.
● SALES keeps a record of all the sales.
● INVENTORY to manage the proper updated records of sales and all .
2.
THEORY
● Triggers:
A database trigger is procedural code that is automatically executed in response to
certain events on a particular table or view in a database. The trigger is mostly used for
maintaining the integrity of the information on the database. For example, when a new
record (representing a new worker) is added to the employees table, new records should
also be created in the tables of the taxes, vacations and salaries. Triggers can also be used
to log historical data.
● Stored procedure:
A stored procedure (also termed proc, storp, sproc, StoPro, StoredProc, StoreProc,
sp, or SP) is a subroutine available to applications that access a relational database
management system (RDBMS). Such procedures are stored in the database data
dictionary.
Uses for stored procedures include data-validation (integrated into the database) or
access-control mechanisms. Furthermore, stored procedures can consolidate and centralize
logic that was originally implemented in applications. To save time and memory, extensive
or complex processing that requires execution of several SQL statements can be saved into
stored procedures, and all applications call the procedures. One can use nested stored
procedures by executing one stored procedure from within another.
● JSP :
Java Server Pages (JSP) is a technology that helps software developers create
dynamically generated web pages based on HTML, XML, or other document types.
Released in 1999 by Sun Microsystems, JSP is similar to PHP and ASP, but it uses the
Java programming language.To deploy and run Java Server Pages, a compatible web
server with a servlet container, such as Apache Tomcat or Jetty, is required
3.
ANALYSIS & REQUIREMENT
SPECIFICATION
● Purpose
The purpose of this project is to outline Wedding data and requirements, to recommend
data management solutions and to provide information regarding the wedding. The purpose
of this project is to develop a data management system to consolidate, organize, document,
store and distribute information related to the wedding management system.
A centralized database created to consolidate data,allowing integrated,long term
analyses, and dynamic search ability with user friendly query tools to be performed to
support adaptive management. Many data collection, analysis and presentation software
programs that are currently being used must be able to interface with any new data
management system. Continuity with consistent data collection methodology is enforced by
a common database system,allowing for standardized format for forms and reports between
projects.
● Scope
The scope of the project is managing consistency and storage of data by dedicated data
administrators. It provides most of the features that a Database Management System should
have. It is developed by using MySQL database. It has been implemented in the WINDOWS
platform.
● Functional Requirements:
Three modules are used in this project namely Admin, user, seller;
• Admin: can insert,analyse the table’s
• User: can register their information
● Seller: can sell the agricultural items.
● Non Functional Requirements
● HARDWARE REQUIREMENTS:
● SOFTWARE REQUIREMENTS:
STRATEGY OF DESIGN
A good system design strategy is to organize the program modules in such a way that are
easy to develop and later to, change. Structured design techniques help developers to deal
with the size and complexity of programs. Analysts create instructions for the developers
about how code should be written and how pieces of code should fit together to form a
program.
● BOTTOM UP DESIGN
These approaches lead to a design where we decide how to combine these modules to
provide larger ones; to combine those to provide larger ones, and so on, till we arrive at
one big module which is the whole of the desired program. The set of these modules form
a hierarchy. This is a cross-linked tree structure in which each module is subordinate to
those in which it is used.
Since the design progressed from bottom layer upwards, the method is called bottom-up
design. This method has one terrible weakness; we need to use a lot of intuition to design
exactly what functionality a module should provide. If we get it wrong, then at higher
level, we will find that it is not as per requirements; then we have to redesign at a lower
level.
● TOP- DOWN DESIGN
A top design approach starts by identifying the major modules of the system,
decomposing them into lower level and iterating until the desired level of detail is
achieved. This is a stepwise refinement; starting from an abstract design, in each step the
design is refined to a more concrete level, until we reach a level where no refinement is
needed and the design can be implemented directly. Most design methodologies based on
this approach are suitable, if the specifications are clear and development is from the
scratch.
● HYBRID DESIGN
Hybrid approach has really become popular after the acceptance of reusability of
modules. Standard libraries, Microsoft foundation classes, object oriented concepts are
steps in this direction. We may soon have internationally acceptable standards for
reusability.
● SYSTEM DESIGN
The systems objectives outlined during the feasibility study serve as the basis from which
the work of system design is initiated. Much of the activities involved at this stage is of
technical nature requiring a certain degree of experience in designing systems, sound
knowledge of computer related technology and thorough understanding of computers
available in the market and the various facilities provided by the vendors.
IMPLEMENTATION
The project is implemented using MySQL database along with PHP and HTML. In this project,
we use the below mentioned concepts for implementing different types of effects like HTML
pages to demonstrate on a web page as a stand-alone or web based application.
try{
Class.forName("com.mysql.jdbc.Driver").newInstance();
}catch(ClassNotFoundException cnfe){
System.err.println("Error: "+cnfe.getMessage());
}catch(InstantiationException ie){
System.err.println("Error: "+ie.getMessage());
}catch(IllegalAccessException iae){
System.err.println("Error: "+iae.getMessage());
conn = DriverManager.getConnection(url,user,"");
// System.out.println(url);
return conn;
this.amount = amount;
this.pName = pName;
this.pType = pType;
this.qty = qty;
this.amount = amount;
String pName;
String pType;
double qty;
String amount }
#toggle { -fx-background-color:
linear-gradient(#f2f2f2, #d6d6d6),
-fx-background-radius: 8,7,6;
-fx-background-insets: 0,1,2;
-fx-text-fill: black;
#toggle:selected {
-fx-background-color:
#c3c4c4,
-fx-background-radius: 30;
-fx-background-insets: 0,1,1;
-fx-text-fill: black;
So, these are just the few sets of codes used in the programming of this database
and framework of it with CSS as style and make it look beautiful….
Sincere efforts were taken for the implementation of the following goals.
⮚ Maximizing the output reliability
With this project we learnt the full use of mysql as dbms software and learning how to
implement its features of creating table ,deleting and updating values etcc..,. Along with
this extra features of html and css with javafx and implementing them to get a good
desirable working system.
8.
FUTURE SCOPE
● THE CSS can be used to add extra advanced features to make the site look more
attractive and appealing
● User interface can be developed further to greater extent
● Advanced java features can be used to create more such complex databases with a
good er model of tables and implementing them in MYSQL
9. REFERENCES
[1] http://www.w3schools.com/howto/howto_css_login_form.asp
[2] http://www.roseindia.com/css/css3_button.asp
[3] http://www.stackoverflow.com/tags/javascript/info
[4] http://wikipedia.com/wiki/JSP