VSG Ip Practical Index-1
VSG Ip Practical Index-1
27 Given a Series, print all the elements that are above the 75th percentile
28 Create a Data Frame quarterly sales where each row contains the item category,item name, and
expenditure. Group the rows by the category and print the total expenditure per category
29 Create a data frame for examination result and display row labels, column labels data types of each
column and the dimensions and also Filter out rows based on different criteria such as duplicate rows
30 Given the school result data, analyses the performance of the students on different parameters, e.g subject wise
or class wise. For the Data frames created above, analyze, and plot appropriate charts with title and legend. Take
data of your interest from an open source (e.g. data.gov.in), aggregate and summarize it. Then plot it using
different plotting functions of the Matplotlib library
MYSQL PRACTICALS
1 Create a student table with the student id, name, marks as attributes where the student id is the
primary keys.
2 In the table ‘Student’ created in practial26, insert the details of new students.
3 Write SQL command to get the details of the students with marks more than 80.
4 Write SQL command to find the min , max , sum and average of the marks in a student marks table..
5 Delete the details of a student table created in practical 26.
6 Find the total number of customers from each country in table using group by.
7 Write a SQL query to order the table in descending order of the marks.
8 For the given table ‘Hospital’ write SQL PID PNAME ADMITDATE DEPT FEE
command to display name all patient S
admitted in month of may. AP/PT/001 Rahil Khan 21/04/2019 ENT 250
AP/PT/002 Jitendal Pal 12/05/2019 Cardio 400
AP/PT/003 Suman Lakra 19/05/2019 Cardio 400
AP/PT/004 Chandumal Jain 24/06/2019 Neuro 600
9 For the given table ‘Hospital’ Write SQL PID PNAME ADMITDATE DEPT FEES
command to Display patient number in AP/PT/001 Rahil Khan 21/04/2019 ENT 250
upper case with year of admission. AP/PT/002 Jitendal Pal 12/05/2019 Cardio 400
AP/PT/003 Suman Lakra 19/05/2019 Cardio 400
AP/PT/004 Chandumal 24/06/2019 Neuro 600
Jain
10 For the given table ‘Hospital’ Write PID PNAME ADMITDATE DEPT FEES
SQL command to Display first four AP/PT/001 Rahil Khan 21/04/2019 ENT 250
letter of the patient name along with AP/PT/002 Jitendal Pal 12/05/2019 Cardio 400
length of their name who admitted AP/PT/003 Suman Lakra 19/05/2019 Cardio 400
before may. AP/PT/004 Chandumal Jain 24/06/2019 Neuro 600
Marks
11 To display student id, Name, Student id Name DOB Email
DOB, Marks, Email of those SCS101101 Rahil Khan 21/04/2000 450 [email protected]
male student in ascending SCS101102 Jitendal Pal 12/05/2001 499 [email protected]
order of their names. SCS101103 Suman Lakra 19/05/2002 460 [email protected]
SCS101104 Chandumal Jain 24/06/2002 489 [email protected]
Marks
12 Describe the below table Student id Name DOB Email
SCS101101 Rahil Khan 21/04/2000 450 [email protected]
SCS101102 Jitendal Pal 12/05/2001 499 [email protected]
SCS101103 Suman Lakra 19/05/2002 460 [email protected]
SCS101104 Chandumal Jain 24/06/2002 489 [email protected]
Marks
13 Display student name Student id Name DOB Email
whose marks above 470. SCS101101 Rahil Khan 21/04/2000 450 [email protected]
SCS101102 Jitendal Pal 12/05/2001 499 [email protected]
SCS101103 Suman Lakra 19/05/2002 460 [email protected]
SCS101104 Chandumal Jain 24/06/2002 489 [email protected]
14 To display student id, Student id Name DOB Marks Email
Name, DOB of those SCS101101 Rahil Khan 21/04/2000 450 [email protected]
students who are born SCS101102 Jitendal Pal 12/05/2001 499 [email protected]
between ‘2000-04-21’ SCS101103 Suman Lakra 19/05/2002 460 [email protected]
and ‘2002-06-24’. SCS101104 Chandumal Jain 24/06/2002 489 [email protected]
15 To display student id, Student id Name Gender DOB Marks Email
Gender, Name, DOB , SCS101101 Rahil Khan M 21/04/2000 450 [email protected]
SCS101102 Jitendal Pal M 12/05/2001 499 [email protected]
Marks, Email in
SCS101103 Suman Lakra M 19/05/2002 460 [email protected]
descending order of their SCS101104 Chandumal M 24/06/2002 489 [email protected]
marks Jain