Informatics Practices Practical File
Informatics Practices Practical File
PRACTICES
PRACTICAL
FILE
NAME:- MEHUL SEHRAWAT
CLASS:- 12 D
ROLL NO:-
MOUNT CARMEL SCHOOL
Name:- Mehul Sehrawat
Class:- 12 D
Admission No:-
Subject:- Information
Practices (065)
School:- Mount Carmel
School Dwarka, New
Delhi, 110075
INDEX
1. Certificate
2. Acknowledgement
3. Series
4. DataFrames
5. Matplotlib
Line Chart
Bar Chart
Histogram
6. MySQL
CERTIFICATE
TEACHER’S SIGNATURE
ACKNOWLEDGEMENT
I would like to express my sincerest
gratitude to my Informatics
Practices teacher, Mrs.Puja Gupta,
for her vital support, guidance and
encouragement that has enabled
me to complete this practical File. I
would also like to thank our
respected Principal, Dr.Rajeev Tyagi
and our respected Vice Principal
Academics,
Mrs.Anjali Washington for providing
me with this opportunity of choosing
Informatics Practices under my will
and interest.
PANDAS SERIES
CODE 1
OUTPUT
CODE 2
OUTPUT
CODE 3
OUTPUT
CODE 4
OUTPUT
CODE 5
OUTPUT
DATAFRAMES
CODE 1
OUTPUT
CODE 2
OUTPUT
CODE 3
OUTPUT
CODE 4
OUTPUT
CODE 5
OUTPUT
CODE 6
OUTPUT
CODE 7
OUTPUT
CODE 8
OUTPUT
CODE 9
OUTPUT
CODE 10
OUTPUT
MATPLOTLIB
CODE 1
OUTPUT
CODE 2
OUTPUT
CODE 3
OUTPUT
CODE 4
OUTPUT
BAR GRAPH
CODE 1
OUTPUT
CODE 2
OUTPUT
CODE 3
OUTPUT
HISTOGRAM
CODE 1
OUTPUT
CODE 2
OUTPUT
CODE 3
OUTPUT
MYSQL
DATABASE 1
(f) Write a Query to insert all the rows of above table into Info
table.;
INSERT INTO INFO VALUES (1,'Praveen','M', 25,'Sales','1989-06-08',
'20000','Chennai');
INSERT INTO INFO VALUES(2,'Arun','M',29,'Marketing','1989-09-26',
22000,'Chennai');
INSERT INTO INFO VALUES(3,'Usha','F',27,'Finance','1994-08-09',
25000,'Bangalore');
INSERT INTO INFO VALUES(4,'Bala','M',31,'Sales','1990-03-23',
27000,NULL);
INSERT INTO INFO VALUES(5,'Rani','F',28,'Marketing','1990-04-23',
27000,'Mumbai');
INSERT INTO INFO VALUES (6,'Nisha','F', 26, NULL,'1991-02-24',
18000,'Bangalore');
INSERT INTO INFO VALUES (7,'Manoj','M', 32,'Finance','1982-05-06',
30000,'Goa');
(g) Write a Query to display all the details of the Employees from
the above table
'INFO'. SELECT * FROM INFO;
DATABASE 2
(a) Write a Query to Display Employees’ name and City from the
above table.
SELECT NAME, CITY FROM INFO;
(b) Write a Query to display Student name and day name of the
students’ DOA of the table
STU. SELECT NAME, DAYNAME(DOA) FROM STU;
(c) Write a query to display the joining year of IP students.
SELECT YEAR(DOA) FROM STU WHERE DEPT='IP'
(d) Write a Query to Display the month for the date_of_birth of all
students.
SELECT NAME, MONTHNAME(DOA)FROM STU;
DATABASE 5