0% found this document useful (0 votes)
53 views8 pages

The One

This document discusses an automatic database schema generation tool for executing SQL queries. It allows developers to focus on creating the database using a GUI interface without an in-depth knowledge of database concepts. The tool lets users define tables and relationships between fields in JSP. It provides the ability to generate database schemas without extensive database experience. An example output of a successful SQL query in PostgreSQL is shown, returning target date, time and other fields from a user-created table.

Uploaded by

Lynn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views8 pages

The One

This document discusses an automatic database schema generation tool for executing SQL queries. It allows developers to focus on creating the database using a GUI interface without an in-depth knowledge of database concepts. The tool lets users define tables and relationships between fields in JSP. It provides the ability to generate database schemas without extensive database experience. An example output of a successful SQL query in PostgreSQL is shown, returning target date, time and other fields from a user-created table.

Uploaded by

Lynn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

www.ijcrt.

org © 2021 IJCRT | Volume 9, Issue 7 July 2021 | ISSN: 2320-2882

AUTOMATIC DATABASE SCHEMA


GENERATION TOOL FOR EXECUTING SQL
QUERIES
DASARI HEMA PRASANTH #1, V.SARALA #2
#1
MCA Student, Master of Computer Applications,

D.N.R. College, P.G.Courses & Research Center, Bhimavaram, AP, India.


#2
Assistant Professor, Master of Computer Applications,

D.N.R. College, P.G.Courses & Research Center, Bhimavaram, AP, India.

ABSTRACT

The Automatic Database Schema Generation is a framework, which permits the engineers to
concentrate on making the database utilizing the GUI interface .The client needs to satisfy the necessities in the
interface and he can play out the database tasks which he needs and can make the database. This task focuses
on making of a programmed database outline age. This task will be available to all designers and its office
permits engineers to concentrate on making the database pattern based on JSP while letting the application
worker characterize table dependent on the fields in JSP and connections between them. This framework gives
the accompanying offices. This encourages the client to concentrate much on application viewpoints deserting
the database aspects. This venture permits clients to create database composition age without having a lot of
information on database aspects.

Keywords: Automatic, Database, Schema, Generation

IJCRT2107738 International Journal of Creative Research Thoughts (IJCRT) www.ijcrt.org g800


www.ijcrt.org © 2021 IJCRT | Volume 9, Issue 7 July 2021 | ISSN: 2320-2882
I. INTRODUCTION Database management systems are often classified
A database is an organized collection according to the database model that they support;
of data. It is the collection the most popular database systems since the 1980s
of schemas, tables, queries, reports, views, and have all supported the relational model as
other objects. The data are typically organized to represented by the SQL language. Sometimes a
model aspects of reality in a way that DBMS is loosely referred to as a 'database'[1],[2].
supports processes requiring information, such as
1.1 APPLICATIONS OF DATABASE
modelling the availability of rooms in hotels in a
Databases are used to support internal
way that supports finding a hotel with vacancies.
operations of organizations and to underpin online
A database management system (DBMS) is
interactions with customers and suppliers
a computer software application that interacts with
(see Enterprise software).Databases are used to
the user, other applications, and the database itself
hold administrative information and more
to capture and analyze data. A general-purpose
specialized data, such as engineering data or
DBMS is designed to allow the definition, creation,
economic models. Examples of database
querying, update, and administration of databases.
applications include computerized library systems,
Well-known DBMSs include
flight reservation systems, computerized parts
MySQL, inventory systems, and many content management
systems that store websites as collections of
PostgreSQL,
webpage’s in a database.
MongoDB,

MariaDB,

Microsoft SQL Server,

Oracle,

MS-Access

Sybase,

SAP HANA,

MemSQL
FIGURE. 1 REPRESENTS AN EXAMPLE OF
and IBM DB2.
DATA BEING RETURNED AFTER A
A database is not generally portable across SUCCESSFUL QUERY IN POSTGRES SQL.
different DBMSs, but different DBMS can
From the above figure 1, we can clearly get
interoperate by using standards such
an idea that SQL query is written on a Command
as SQL and ODBC or JDBC to allow a single
Prompt for getting the Target_Date, Target_Time,
application to work with more than one DBMS.
Sever _Time and a lot more fields from a user
IJCRT2107738 International Journal of Creative Research Thoughts (IJCRT) www.ijcrt.org g801
www.ijcrt.org © 2021 IJCRT | Volume 9, Issue 7 July 2021 | ISSN: 2320-2882
created table. This query is written on a SQL which affects performance, scalability, resilience,
command prompt by suing PostGres SQL.Once if and security.
the query was correctly executed then we can able
to find out the resultant data as a result. 2. LITERATURE SURVEY

Writing study is the most significant


Both a database and its DBMS conform to
advance in programming improvement process.
the principles of a particular database model
Prior to building up the apparatus, it is important to
[6]. "Database system" refers collectively to the
decide the time factor, economy and friends
database model, database management system, and
quality. When these things are fulfilled, ten
database [7].
following stages are to figure out which working
Physically, database servers are dedicated
framework and language utilized for building up
computers that hold the actual databases and run
the device. When the software engineers begin
only the DBMS and related software. Database
assembling the instrument, the developers need part
servers are usually multiprocessor computers, with
of outside help. This help got from senior software
generous memory and RAID disk arrays used for
engineers, from book or from sites. Before building
stable storage. RAID is used for recovery of data if
the framework the above thought r taken into for
any of the disks fail. Hardware database
building up the proposed framework.
accelerators, connected to one or more servers via a
high-speed channel, are also used in large volume Following the innovation progress in the
transaction processing environments. DBMSs are territories of processors, PC memory, PC
found at the heart of most database applications. stockpiling, and PC organizes, the sizes, capacities,
DBMSs may be built around a and execution of databases and their individual
custom multitasking kernel with built- DBMSs have developed in significant degrees. The
in networking support, but modern DBMSs advancement of database innovation can be
typically rely on a standard operating system to partitioned into three times dependent on
provide these functions. Since DBMSs comprise a information model or structure: navigational,[9]
significant market, computer and storage vendors SQL/social, and post-relational.The two primary
often take into account DBMS requirements in their early navigational information models were the
own development plans [8]. Databases and DBMSs progressive model, exemplified by IBM's IMS
can be categorized according to the database framework, and the CODASYL model (arrange
model(s) that they support (such as relational or model), executed in various items, for example,
XML), the type(s) of computer they run on (from a IDMS.
server cluster to a mobile phone), the query
language(s) used to access the database (such as
SQL or XQuery), and their internal engineering,

IJCRT2107738 International Journal of Creative Research Thoughts (IJCRT) www.ijcrt.org g802


www.ijcrt.org © 2021 IJCRT | Volume 9, Issue 7 July 2021 | ISSN: 2320-2882
The social model, first proposed in 1970 by
Edgar F. Codd, left from this custom by demanding
that applications should look for information by
content, as opposed to by following connections.
The social model utilizes sets of record style tables,
each utilized for an alternate sort of substance. Just
in the mid-1980s did processing equipment become
ground-breaking enough to permit the wide
organization of social frameworks (DBMSs in
addition to applications). By the mid 1990s,
notwithstanding, social frameworks overwhelmed
in all enormous scope information handling FIGURE. 2 REPRESENT THE
ILLUSTRATION OF A SET TYPE USING A
applications, and starting at 2015 they stay BACHMAN DIAGRAM
prevailing: IBM DB2, Oracle, MySQL, and
Microsoft SQL Server are the top DBMS [10]. The
The introduction of the
predominant database language, normalized SQL
term database coincided with the availability of
for the social model, has affected database dialects
direct-access storage (disks and drums) from the
for other information models. Item databases were
mid-1960s onwards. The term represented a
created during the 1980s to beat the burden of
contrast with the tape-based systems of the past,
article social impedance befuddle, which prompted
allowing shared interactive use rather than
the instituting of the expression "post-social" and
daily batch processing. The Oxford English
furthermore the advancement of crossover object-
Dictionary cites [11] a 1962 report by the System
social databases.
Development Corporation of California as the first
to use the term "data-base" in a specific technical
sense.
As computers grew in speed and capability,
a number of general-purpose database systems
emerged; by the mid-1960s a number of such
systems had come into commercial use. Interest in
a standard began to grow, and Charles Bachman,
author of one such product, the Integrated Data
Store (IDS), founded the "Database Task Group"
within CODASYL, the group responsible for the
creation and standardization of COBOL. In 1971,
the Database Task Group delivered their standard,
which generally became known as the "CODASYL
IJCRT2107738 International Journal of Creative Research Thoughts (IJCRT) www.ijcrt.org g803
www.ijcrt.org © 2021 IJCRT | Volume 9, Issue 7 July 2021 | ISSN: 2320-2882
approach", and soon a number of commercial 3. EXISTING SYSTEM
products based on this approach entered the market.
There are many Database Management
The CODASYL approach relied on the
systems available today. The Database designer is
"manual" navigation of a linked data set which was
familiar with any one of the database Management
formed into a large network. Applications could
Systems. Let us consider a condition when a
find records by one of three methods:
database designer required to design the schema for
1. Use of a primary key (known as a CALC key,
an application on different DBMS. He required to
typically implemented by hashing)
learn all the DBMS User Interfaces. Where some of
2. Navigating relationships (called sets) from one
them are GUI (Graphic User Interface) based and
record to another
others are CUI(Character User Interface). So this
3. Scanning all the records in a sequential order
leads a main problem for the users to study every
database separately to work on that sql queries.
Later systems added B-trees to provide
alternate access paths. Many CODASYL databases
LIMITATION OF EXISTING SYSTEM
also added a very straightforward query language.
However, in the final tally, CODASYL was very
The following are the limitation of existing
complex and required significant training and effort
system. They is as follows:
to produce useful applications.IBM also had their
own DBMS in 1966, known as Information 1) In the existing system, if the user wants to alter
Management System (IMS). IMS was a or update or edit a large database schema, it
development of software written for the Apollo consumes a lot of time by the database designer to
program on the System/360. IMS was generally update that queries. Hence the operations like
similar in concept to CODASYL, but used a strict altering the table structure, Editing the table,
hierarchy for its model of data navigation instead of Dropping columns, searching for a column name,
CODASYL's network model. Both concepts later searching for a data in the table is quite time taken
became known as navigational databases due to the by the end users.
way data was accessed, and Bachman's
2) Also in the existing systems to design a new
1973 Award presentation was The Programmer as
database with set of tables ,the database user need
Navigator. IMS is classified as a hierarchical
to have knowledge on all the sql query syntax ,if he
database. IDMS and Cincom
don’t have enough knowledge the database user
Systems' TOTAL database are classified as
cannot able to operate the database queries
network databases. IMS remains in use as of 2014
properly.
[12].

IJCRT2107738 International Journal of Creative Research Thoughts (IJCRT) www.ijcrt.org g804


www.ijcrt.org © 2021 IJCRT | Volume 9, Issue 7 July 2021 | ISSN: 2320-2882

5. MODULES
4. PROPOSED SYSTEM
Implementation is the stage where the
In the proposed system we try to use the theoretical design is converted into
Automatic Database Schema Generation System, in programmatically manner. In this stage we will
which the queries can be generated automatically divide the application into a number of modules
without the knowledge of writing sql queries and then coded for deployment. We have
separately for each and every individual sql implemented the proposed concept on Java
queries. The proposed system has the following programming language with JSE as the chosen
features. language in order to show the performance this
proposed Mixed Stegnography. The front end of
ADVANTAGES OF THE PROPOSED
the application takes JSP,HTML and CSS and as a
SYSTEM
Back-End Data base we took MY-SQL to show the
The following are the advantages of the performance of our proposed project. The
proposed system. They are as follows: application is divided mainly into following

1. The Automatic Database Schema 5modules. They are as follows:

Generation System provides a Common 1. SQL Query Panel Module


User Interface to interact with all the
databases. 2. Import Option Module

2. Here the user interface is Graphical User 3. Export Option Module

Interface. 4. Operation Module

3. This application is a Web based 5. Search Database Module


Application.
Now let us discuss about each and every module in
4. Being a web based application it doesn’t detail as follows:
require any client side installation.
SQL Query Panel Module
5. Any number of users can interact with the
Here we can type SQL queries and get the
system simultaneously.
data from Database and we can write any SQL
6. Centralized database connectivity. queries and directly connect this panel with the
7. Using Session management the interaction database which is already installed on the PC.
more flexible and secure
Import Option Module
We can import .sql files only into the
Database.Here if we want to collect any pre-
defined database tables and store immediately in

IJCRT2107738 International Journal of Creative Research Thoughts (IJCRT) www.ijcrt.org g805


www.ijcrt.org © 2021 IJCRT | Volume 9, Issue 7 July 2021 | ISSN: 2320-2882
this current PC.We can able to import by using this 6. RESULTS
import option.
File is Imported Successfully
Export Option Module

We can export sql Structure, sql Data or both based


on some conditions into 3 types of files

a. .sql files
b. .html files
c. .cavy files(Excel Files) only

Operation Module

Here we can create table with constraints of


Represents the File is Imported
alter the existing table like
A. Alter column
B. Rename column EXPORT A TABLE

C. Drop column
D. Empty column

Search Database Module


Search based on keywords
1. Search looks for column names only
2. Search looks for data
Represents the Export a Table
EXPORT IS SUCCESSFUL

Represents the User is Exported the


Database

IJCRT2107738 International Journal of Creative Research Thoughts (IJCRT) www.ijcrt.org g806


www.ijcrt.org © 2021 IJCRT | Volume 9, Issue 7 July 2021 | ISSN: 2320-2882
USER TRY TO CREATE TABLE USING [5] "Administration – Definition of administration
GUI
by Merriam-Webster". merriam-webster.com.

[6] Tsitchizris & Lochovsky 1982.

[7] Beynon–Davies 2003.

[8] Graves, Steve. "COTS Databases For


Embedded Systems", Embedded Computing
Design magazine, January 2007. Retrieved on

Represents the Table Creation in GUI August 13, 2008.


manner
[9] Argumentation in Artificial Intelligence by Iyad
7.CONCLUSION Rahwan, Guillermo R. Simari

The whole task has been created and conveyed


[10] Graves, Steve. "COTS Databases For
according to the prerequisites expressed by the
client, it is seen as bug free according to the testing Embedded Systems", Embedded Computing
principles that are executed. Any detail untraced
Design magazine, January 2007. Retrieved on
mistakes will be amassed in the coming forms,
which are intended to be created in not so distant August 13, 2008.
future.
[11] Argumentation in Artificial Intelligence by
8. REFERENCES Iyad Rahwan, Guillermo R. Simari

[1] Bachman, Charles W. (1973). "The


[12] Proctor, Seth (12 July 2013). "Exploring the
Programmer as Navigator". Communications of the
Architecture of the NuoDB Database, Part
ACM. 16 (11): 653–
1". Archived from the original on 15 July 2013.
658. doi:10.1145/355611.362534. (Subscription
Retrieved 12 July 2013.
required (help)).

[13] Tsitchizris, Dionysios C.; Lochovsky, Fred H.


[2] Beynon–Davies, Paul (2003). Database
(1982). Data Models. Prentice–Hall. ISBN 978-
Systems (3rd ed.). Palgrave Macmillan. ISBN 978-
0131964280.
1403916013.

[14] Ullman, Jeffrey; Widom, Jennifer (1997). A


[3] "Update – Definition of update by Merriam-
First Course in Database Systems. Prentice–
Webster". merriam-webster.com.
Hall. ISBN 0138613370.

[4] "Retrieval – Definition of retrieval by Merriam-


Webster". merriam-webster.com.

IJCRT2107738 International Journal of Creative Research Thoughts (IJCRT) www.ijcrt.org g807

You might also like