Set 1 4
Set 1 4
B) Display only those records from Data Frame where percentage is more than 90. 2
D) Now plot a line chart depicting the Student name and Percentage, with appropriate titles. 2
Total = 8
SQL Queries
I. Create the above table (shown in question 1) as " Student " and set the first column as
Rollno with the primary key constraint.
II. Display the details of all students whose Class is XI and Gender is Male.
III. Display detail of students in the descending order of their name.
IV. Display the details of only those students in whose name the second letter is ‘e’.
V. Display maximum Percentage gender wise.
VI. Count the number of record in every class.
VII. Display Name and percentage after round off it by zero decimal place.
SET-2
Q.NO. Python Pandas and Data Visualization Marks
Q.1- A) Write a program in python to create the following dataframe named “emp” 2
Total = 8
SQL Queries
I. Create the above table as " employee " and first column is ID as primary key
VII. Display maximum salary of each type of job for Clerk and Manager only.
SET-3
Q.NO. Python Pandas and Data Visualization Marks
Q.1- A) Write a program in python to create the following data frame named “Coach” .
2
COACHNAME AGE SPORTS PAY GENDER
C001 Suman Sharma 35 Karate 10000 F
C002 Ravina Khurana 34 Karate 12000 M
C003 Karan Singh 34 Squash 20000 M
C004 Tarun Goswami 33 Basketball 15000 M
C005 Zubina Ahmed 36 Swimming 7500 F
B) Save this data frame data to csv file name abc.csv on drive D.
2
C) Rename column Sports as Games
2
D) Now plot a line chart depicting the coach name and Pay, with appropriate title.
2
Total = 8
SQL Queries
Q.2- Consider the above table as " Coach “and write command for given question 1x7=7
I. Create the above table as " Coach " and first column is ID as primary key.
II. Display the detail of all Coach whose pay in range 12000 to 18000
III. Change age of Karan Singh from 34 to 43
IV. Display name and first occurrence of character ‘a’ in their name.
V. Delete the record whose id is C005.
VI. Display average pay gender wise.
VII. Display number of coach for each sports.
SET-4