Practical Ip
Practical Ip
soooo
øooo
Total = 8
SQL Queries with Solution
Q.2- Consider the above table as "empu and first column (index) as 'empno' and it is aprimary
key. Answer the following SQL queries.
a) Add a row with empno 1008 as Robin, Analyst, 60000, 2011-04-01, Admin. 1
b) Display the detail of all employees whose salary lies in the range 50000 and 100000. 1
c) Display average salary and no. of employees of each department. 1
d) Display maximum salary of each type of job for Clerk and Manager only. 1
e) increase the salary of sales department employees by 5 percent. 1
f) Delete the column dojoin. 1
g) Display detail of em 10 ees in descendin order of their sala 1
Total = 7
3. Practical File 5
4. Project File 5
5. Viva Voice 5
TOTAL MARKS IN PRACTICAL = 30
AISSCE IP (065) PRACTICAL EXAMINATION
SUBJECT; INFORMATICS PRACTICES (065)
TIME: 3 HRS. M.M.:30
(SET-2)
Q.NO. Python Pandas and Data Visualization Marks
QI- Writea programin python to create the following dataframe named storing the 2
following details:
Country Population BirthRate UpdateDate
O China 1379750000 12.00 2016-08-11
1 India 1330780000 21.76 2016-08-11
2 United States 324882000 13.21 2016-08-11
3 Indonesia 260581000 18.84 2016-01-07
4 Brazil 206918000 18.43 2016-08-11
5 Pakistan 194754000 27.62 2016-08-11
Considering the above dataframe answer the following queries by writing appropriate
command in python pandas.
1
a) Display complete data for China and India.
1
b) Display Country, Population and BirthRate of Brazil and Pakistan.
1
c) Create a CSV File from the above data frame.
1
d) Retrieve data from above created csv file into a new dataframe dfl with columns
Country and Population only .
2
e) Now plot a bar chart
depicting the Country on CountryWisepopulation
Analysis
x-axis and their
corresponding Population
on y-axis, with appropriate
Graph title, x-axis title, y-
axis title, gridlines and
color etc.
Total = 8
SQL Queries with Solution
Q.2- Consider the table "Pop" with above data of the given data frame and define first column 2
•country'as primary key, feed all records in to the table. Now answer the following sql
queries.
a) Display those records whose population lies in the range 1300000000 and 140000000. 1
b) Display maximum and minimum BirthRate for each UpdateDate. 1
c) Display number of countries updated on each update date. 1
d) increase the birthrate of India by 2.0 1
e) Display detail of the given table in ascending order of their population. 1
Total = 7
3. Practical File 5
4. Project File 5
5. Viva Voice 5
TOTAL MARKS IN PRACTICAL= 30
AISSCE IP (065) PRACTICAL EXAMINATION
SUBJECT: INFORMATICS PRACTICES (065)
TIME: 3 HRS. M.M.:30
(SET-3)
Q.NO. Python Pandas and Data Visualization Marks
QI- Write a program in python to create the following dataframe named "temp" storing the 2
following details:
Cid City MaxTemp MinTemp Rainfall
o COI Delhi 40 32 24.1
1 C02 Bengaluru 31 25 36.2
2 co Chennai 35 27 40.8
3 C04 Mumbai 29 21 35.2
4 cos Kolkata 39 23 41.8
5 C06 Allahabad 41 30 32.4
Considering the above dataframe answer the following queries by writing appropriate
command in python pandas.
1
a) Add a new column named Humidity as [54, 65,70,75,71,59].
1
b) Display MaxTemp, MinTemp of Delhi and Mumbai.
1
c) Create a CSV File from the above data frame named weather.csv.
1
d) Change the column name MaxTemp to MxT and MinTemp to MnT.
e) Now plot a multi-bar chart depicting the City Name on x-axis and their corresponding
2
MaxTemp and MinTemp on y-axis, with appropriate Graph title, x-axis title, y-axis title,
gridlines, legends and color etc.
Tempera Analysis
Total = 8
SQL Queries with Solution
Create the table "weather" as per given above dataframe, take data type and size 2
yourself and insert all records. Don't define primary key while creating table. After 1
creating the table define primary key on the column Cidand answer the following sql
queries.
a) Add a column Zone and update this with values - North, South, South, West, East, 1
North.
b) Display Average of MaxTemp, MinTemp and Rainfall of each Zone. 1
c) Display detail for Delhi and Mumbai. 1
d Displa Ci and Rainfall whose rainfall is in the range 30 and 40. 1
Total = 7
3. Practical File 5
4. Pro ect File 5
Viva Voice 5
5.
TOTAL MARKS IN PRACTICAL = 30