Computer - Science - Project KOINEER
Computer - Science - Project KOINEER
PROJECT REPORT ON
SCHOOL MANAGEMENT
SYSTEM
[1]
This is to certify that the Project / Dissertation
candidate.
[2]
ACKNOWLEDGEMENT
KOHINOOR
SONI
Class
XII-A
[3]
CONTENTS
1. Introduction
2.SDLC
3. Theoretical Background
------------------------------
4. System Implementation
------------------------------
1. Database Design:
6. User Manual
1. How to install:
7. Bibliography
[4]
System Development Life Cycle
SDLC is a process followed for a software project,
within a software organization. It consists of a
detailed plan describing how to develop,
maintain, replace and alter or enhance specific
software. The life cycle defines a methodology
for improving the quality of software and the
overall development process.
[5]
T H e O Re T I c A l B A c K G R O u N D
What is Database?
A table is a collection of data about a specific topic, such as products or suppliers. Using a separate
table for each topic means you can store that data only once, which makes your database more
efficient and reduces data-entry errors. Table organises data into columns (called fields) and rows
(called records).
A Primary key is one or more fields whose value or values uniquely identify each record in a table. In
a relationship, a primary key is used to refer to specific record in one table from another table. A
primary key is called foreign key when it is referred to from another table.
To find and retrieve just the data that meets conditions you specify, including data from multiple
tables, create a query. A query can also update or delete multiple records at the same time, and
perform built-in or custom calculations on your data.
The DBMS interprets and processes users' requests to retrieve information from a database. In most
cases, a query request will have to penetrate several layers of software in the DBMS and operating
system before the physical database can be accessed. The DBMS responds to a query by invoking the
appropriate subprograms, each of which performs its special function to interpret the query, or to
locate the desired data in the database and present it in the desired order.
What is My SQL ?
The management of data in a database system is done by means of a general-purpose software
package called a Database Management System (DBMS). Some commercially available RDBMS are
MS SQL Server, MS ACCESS, INGRES, ORACLE, and Sybase.
MySQL, the most popular Open Source SQL database management system, is developed,
distributed, and supported by Oracle Corporation. MySQL is named after co-founder Monty
Widenius's daughter, My. The name of the MySQL Dolphin (our logo) is “Sakila,”.
[7]
MySQL is based on SQL.
A relational database stores data in separate tables rather than putting all the data in
one big storeroom. This adds speed and flexibility. The SQL part of “MySQL” stands
for “Structured Query Language.” SQL is the most common standardized language
used to access databases and is defined by the ANSI/ISO SQL Standard. The SQL
standard has been evolving since 1986 and several versions exist. In this manual,
“SQL-92” refers to the standard released in 1992, “SQL:1999” refers to the standard
released in 1999, and “SQL:2003” refers to the current version of the standard.
MySQL software is Open Source.
Open Source means that it is possible for anyone to use and modify the software.
Anybody can download the MySQL software from the Internet and use it without
paying anything. If you wish, you may study the source code and change it to suit
your needs. The MySQL software uses the GPL (GNU General Public License),
The MySQL Database Server is very fast, reliable, and easy to use.
If that is what you are looking for, you should give it a try. MySQL Server also has a
practical set of features developed in close cooperation with our users. You can find a
performance comparison of MySQL Server with other database managers on our
benchmark page. MySQL Server was originally developed to handle large databases
much faster than existing solutions and has been successfully used in highly
demanding production environments for several years. Although under constant
development, MySQL Server today offers a rich and useful set of functions. Its
connectivity, speed, and security make MySQL Server highly suited for accessing
databases on the Internet.
MySQL Server works in client/server or embedded systems.
The MySQL Database Software is a client/server system that consists of a multi-
threaded SQL server that supports different backends, several different client
programs and libraries, administrative tools, and a wide range of application
programming interfaces (APIs).
[8]
Support for large databases. We use MySQL Server with databases that contain 50 million
records. We also know of users who use MySQL Server with 200,000 tables and about
5,000,000,000 rows.
MySQL client programs can be written in many languages. A client library written in
C is available for clients written in C or C++, or for any language that provides C
bindings.
APIs for C, C++, Eiffel, Java, Perl, PHP, Python, Ruby, and Tcl are available,
enabling MySQL clients to be written in many languages.
The Connector/ODBC (MyODBC) interface provides MySQL support for client
programs that use ODBC (Open Database Connectivity) connections.
The Connector/J interface provides MySQL support for Java client programs that use
JDBC connections. Clients can be run on Windows or Unix. Connector/J source is
available.
[9]
SySTeM IMPleMeNTATION
[10
]
SySTeM DeSIGN & D e Ve l O P M e N T
Database Design:
An important aspect of system design is the design of data storage structure. To begin with a logical
model of data structure is developed first. A database is a container object which contains tables,
queries, reports and data validation policies enforcement rules or contraints etc. A logical data often
represented as a records are kept in different tables after reducing anomalies and redundancies. The
goodness of data base design lies in the table structure and its relationship.
This software project maintains a database named Pyschool which contains the following tables.
Tables:-
In my awesome and amizing software of banks I have created to tables to make the software user
friendly and to make it different from others.Tables are shown below.
Pystaff:-
Pystudent:-
[11
]
Project View
[12
]
[13
]
PyTHON CODING:-
P R I N T ( " * * * * S c H O O l MANAGeMeNT****")
I M P O RT M y S Q l . c O N N e c T O R
MyDB=MySQl.cONNecTOR.cONNecT(HOST="lOcAlHOST
",uSeR="ROOT",PASSWD="1234")
MycuRSOR=MyDB.cuRSOR()
M y c u R S O R . e X e c u Te ( " c R e A Te DATA BAS e IF N O T eXISTS
PyScHOOl")
M y c u R S O R . e X e c u Te ( " u S e P y S c H O O l " )
M y c u R S O R . e X e c u Te ( " c R e A Te TA B l e IF N O T eXISTS
P y S T u D e N T ( N A M e VA R c H A R ( 5 0 ) N O T N u l l , c l A S S
VA R c H A R ( 2 5 ) N O T N u l l , R O l l _ N O
VA R c H A R ( 2 5 ) , G e N D e R cHAR(1))")
M y c u R SO R .e X e c u Te (" c R e A Te TA Bl e IF N O T
e X ISTS PySTAFF(NAMe VA R c H A R ( 5 0 ) N O T
N u l l , G e N D e R c H A R ( 1 ) , S u B J e c T VA R c H A R ( 2 5 )
N O T N u l l , S A l A R y VA R c H A R ( 2 5 ) ) " )
MyDB.cOMMIT()
W H I l e ( T Ru e ) :
el IF( c H= = 2 ) :
S NA M e = ST R ( I N P u T ( " E N Te R STAFF M e M B e R NAMe:"))
G e N D e R = S T R ( I N P u T ( " E N Te R GeNDeR(M/F):"))
D e P = STR ( I N P u T( " E N Te R D e PA RT M e N T
O R SuBJecT:"))
SA l = I N T( I N Pu T( " EN Te R S A l A Ry " ) )
M y c u R S O R . e X e c u Te ( " I N S e R T I N TO PySTAFF
VAlueS('"+SNAMe+"','"+GeNDeR+"','"+DeP+"','"+STR(
SAl)+"')")
MyDB.cOMMIT()
PRINT("STAFF R e c O R D HAS BeeN S AVe D
SucceSSFully!!!")
el I F ( c H= = 3 ) :
ROll_NO=ST [15
]
R(INPuT("E
N Te R
STuDeNT
F O R I IN M y c u R S O R :
NAMe,clASSS,ROll_NO,GeNDeR=I
PRINT(F'NAMe:- { NA M e } ' )
PRINT(F'ClASS:- { c l A S S S } ' )
PRINT(F'ROll NuMBeR:- { R O l l _ N O } ' )
PR I N T( F ' Ge N De R : - { G e N D e R } ' )
el I F ( c H= = 4 ) :
NA M e = ST R ( I N P u T ( " E N Te R NAMe"))
M y c u R S O R . e X e c u Te ( " S e l e c T * F R O M PySTAFF
W H e R e NAMe='"+NAMe+"'")
F O R I IN M y c u R S O R :
N A M e , G e N D e R , D e P, S A l = I
PRINT(F"NAMe:- { NA M e } " )
PR I N T( F " G e N De R : - { G e N D e R } " )
PR IN T( F"DePARTMAN T:-
{DeP}") PRINT(F"SAl:- { S A l } " )
el I F ( c H= = 5 ) :
R _ N O = S T R ( I N P u T ( " E N Te R R O l l
N u M B e R" ) )
M y c u R S O R . e X e c u Te ( " D e l e Te F R O M P y S T u D e N T
WHeRe ROll_NO='"+R_NO+"'")
MyDB.cOMMIT()
P R I N T ( " S Tu D e N T R e c O R D IS S u c c e S S F u l l y
D e l e Te D " )
elIF(cH==6):
NA M e = ST R ( I N P u T ( " E N Te R NAMe"))
M y c u R S O R . e X e c u Te ( " D e l e Te F R O M PySTAFF W H e R e
NAMe='"+NAMe+"'") [16
]
MyDB.cOMMIT()
PRINT("STAFF R e c O R D IS S u c c e S S F u l l y D e l e Te D " )
elSe:
BReAK
USeR M A N u A l
How to installSoftware:
Hardware Requirement-
Intel Pentium/Celeron or similar processor based PC at Client/Server end.
128 MB RAM and 4GB HDD space (for Database) is desirable.
Standard I/O devices like Keyboard and Mouse etc.
Printer is needed for hard-copy reports.
Local Area Network(LAN) is required for Client-Server Installation
Software Requirement-
Windows XP/2007 OS is desirable.
Python must be installed and mysql connector must be installed.
MySQL Ver 6.1 with Library Database must be present at machine.
[17
]
Re Fe Re N c e S
In order to work on this project titled –School Managewment System, the following books and
literature are refered by me during the various phases of development of the project.
-Reeta Sahoo
-Gagan Sahoo
(2) http://www.mysql.org/
Other than the above-mentioned books, the suggestions and supervision of my teacher and my class
experience also helped me to develop this software project.
[18
]