Practice Ques ip pract
Practice Ques ip pract
002 India 63 30 1 1 95
004 England 52 39 1 1 93
a) Create a dataframe named CWC. [2]
b) Display the team having more than 50 wins. [1]
c) Add a new row values as(005, New Zealand, 59, 38, 1, 1, 99) [1]
d) Add new column ‘Title Won’ with data (6,2,2,1,0) [1]
e) Display Total no. of rows in dataframe. [1]
f) Draw a bar chart to visual performances of wins of teams. (Add labels, legend, title) [2]
Q:2 Consider the following Table ‘Patient’ with the records given in it.
Pno Pname Docno Date_adm Charges
Q – 2 Consider the table “Charity” and write SQL queries for the tasks that follow:
MySQL
Observe the above medicine table and write queries for following:
a) Display the unique manufacturer from medicine
b) Display manufacturer and total price for each manufacturer
c) Display manufacturer and price in the ascending order of price
d) Display first 4 characters of medicinename which medicine id contains 5 as last digit
e) Display all medicine names in Capital letter
Write output of the following queries:
a) Select length(right(medicinename,4)) from medicine;
b) Select instr(price,5) from medicine;
c) Select round(medicineID/2,-1) from medicine;
d) Select mid(medicinename,2,4) from medicine