CSC Project
CSC Project
5
Contents
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.
Role of RDBMS Application Program:
A computer database works as a electronic filing system, which has a large number of ways of cross-
referencing, and this allows the user many different ways in which to re-organize and retrieve data. A
database can handle business inventory, accounting and filing and use the information in its files to
prepare summaries, estimates and other reports. 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 DBMS are MS SQL Server, MS ACCESS, INGRES, ORACLE, and Sybase. A database
management system, therefore, is a combination of hardware and software that can be used to set up
and monitor a database, and can manage the updating and retrieval of database that has been stored in it.
Most of the database management systems have the following capabilities:
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,”.
The hardest part of building a software system is deciding precisely what to build. No other part
of the conceptual work is so difficult as establishing the detailed technical requirement. Defining
and applying good, complete requirements are hard to work, and success in this endeavor has
eluded many of us. Yet, we continue to make progress.
Problem definition describes the What of a system, not How . The quality of a software product is
only as good as the process that creates it. Problem definition is one of the most crucial steps in
this creation process. Without defining a problem, developers do not know what to build,
customers do not know what to expect, and there is no way to validate that the built system
satisfies the requirement.
Problem definition and Analysis is the activity that encompasses learning about the problem to be
solved, understanding the needs of customer and users, trying to find out who the user really is,
and understanding all the constraints on the solution. It includes all activities related to the
following:
Identification and documentation of user’s needs.
Creation of a document that describes the external behavior and the association constraints that
will satisfies those needs.
Analysis and validation of the requirements documents to ensure consistency, completeness, and
feasibility
Evolution of needs.
To provide efficient and secured Information storage, flow and retrieval system, ensuring the
integrity and validity of records.
To provide graphical and user-friendly interface to interact with a centralized database based on
client-server architecture.
To identify the critical operation procedure and possibilities of simplification using modern IT
tools and practices.
System implementation
SOFTWARE SPECIFICATION:-
Operating System : Windows 7
Platform : Python IDLE 3.7
Database : MySQL SERVER 5.1
Languages : Python
HARDWARE SPECIFICATION:-
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.
SOURCE CODES
Create a Python project of a Computer Institute Management System to register yourself into SSA
Computer Institute.
Note:
Allow the user to input their number, name, desired course
Allow the administrator to delete an enrollment, edit the name and course of a candidate.
Allows the user to see the details.
SOLUTION:
CIMS_CREATE_DATABASE.PY
conn=sql.connect(host='localhost',user='root',password='man
ager')
if conn.is_connected():
print("Successfully Connected")
c1=conn.cursor()
CIMS_CREATE_TABLES.PY
import mysql.connector as sql
conn=sql.connect(host='localhost',user='root',passwd='manag
er',database='cims')
if conn.is_connected():
print("Successfully Connected")
c1=conn.cursor()
varchar(20))')
CIMS_MENU.PY
conn=sql.connect(host='localhost',user='root',passwd='manag
er',database='cims')
#if conn.is_connected():
# print("Successfully Connected")
c1=conn.cursor()
print(" ")
print("4. Exit")
if choice==1:
v_course='JAVA'
elif v_course=='Python':
v_course='Python'
elif v_course=='C':
v_course='C'
elif v_course=='BASIC':
v_course='BASIC'
elif v_course=='HTML':
v_course='HTML'
c1.execute(V_SQL_Insert)
print(" ")
conn.commit()
print(" ")
successful!")
if choice==2:
uname=input("Enter Username:")
passwd=input("Enter Password:")
u_name='abc'
pass_wd='123'
print("Password Accepted")
print(" ")
to choose ?"))
if option==1:
" + str(change_adm_no)
c1.execute(V_SQL_Insert)
print("")
print("Successfully removed")
conn.commit()
if option==2:
change_adm_no=int(input("Enter the admission number of
c1.execute(V_SQL_Insert)
print("")
print("Successfully edited")
conn.commit()
if option==3:
if change_course=='JAVA':
change_course='JAVA'
elif change_course=='Python':
change_course='Python'
elif change_course=='C':
change_course='C'
elif change_course=='BASIC':
change_course='BASIC'
elif change_course=='HTML':
change_course='HTML'
c1.execute(V_SQL_Insert)
print("")
print("Successfully modified")
conn.commit()
else:
if choice==3:
data=c1.fetchall()
print(" ")
print(" ")
if choice==4:
print('Thank You')
OUTPUTS
In order to work on this project titled COMPUTER INSTITUTE MANAGEMENT SYSTEM, the following books
and literature are refered by me during the various phases of development of the project.
(1) http://www.mysql.org/
(2) http://www.python.org/
Website: https://www.w3resource.com
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.