You are on page 1of 18

2023-24

GAYATRI KEHRI
KENDRIYA VIDYALAYA VFE

COMPUTER SCIENCE PROJECT


CERTIFICATE

This is to certify that GAYATRI KEHRI Roll no. 17 has


successfully completed the project work entitled
EDUCATIONAL MANAGEMENT SYSTEM in the subject
Computer Science (083) laid down in the regulations
of CBSE for the purpose of Practical Examination in
Class XIl to be held in Kendriya Vidyalaya.

1
2
3
ACKNOWLEDGEMENT

I would like to express a deep sense of thanks and


gratitude to my project guide Mr. Yogesh Gupta Sir
for guiding us immensely through the course of the
project. He always evinced keen interest in our work.
His constructive advice and constant motivation have
been responsible for the successful completion of this
project. My sincere thanks goes to our Principal Sir,
Mr. Gurmeet Singh for his coordination in extending
every possible support for completion of this project. I
am also thankful to my parents for their motivation
and support. I must thanks to my classmates for their
timely help and support for compilation of this
project. Last but not least, I would like to thank those
who had helped directly or indirectly towards the
completion of this project

4
5
CREATING A DATABASE AND TABLE IN MYSQL

Open MYSQL, write the code

‘CREATE DATABASE class_project; ‘


Use class_project;

Make sure that no database with similar name exists. After the
database is successfully created, make a table in database. Using
the code: -
CREATE TABLE class_record ( name varchar (10) , electrostatics
varchar (10) , capacitor int (10) , magnetism int (10) , emi int
(10) , alternating_current int (10) , ray_optics int (10) ,
em_waves int (10) , wave_optics int (10) , modern_physics int
(10) ) ;

After the table is created, we’ll insert name is students and their
marks in monthly / weekly tests.
Fig.1.0

6
fig 1.2 – table class_record

7
8
9
INTERCONNECTING MYSQL AND PYTHON IDLE TO
PERFORM VARIOUS FUNCTIONS.

import mysql.connector
mydb =
mysql.connector.connect(host='localhost',user='root',passwd='
MYSQL')
mycursor = mydb.cursor()
mycursor.execute('use class_project')
mycursor.execute('show tables')
for x in mycursor:
print(x)

10
mycursor.execute('desc class_record')
for i in mycursor:
print(i)

11
12
mycursor.execute ( 'select*from class_record')
for i in mycursor:
print(i)

13
14
mycursor.execute('select name from class_record where
electrostatics <30')
for i in mycursor:
print(i)

15
mycursor.execute("SELECT*from CLASS_RECORD WHERE
ELECTROSTATICS <= (SELECT AVG(ELECTROSTATICS) FROM
CLASS_RECORD)")

for i in mycursor:
print(i)

16
THANK YOU
By: GAYATRI KEHRI
XII B
Roll no. 17

17

You might also like