Professional Documents
Culture Documents
Page 1 of 4
Write SQL queries for the following:
(i) To display the name of all the male teachers who belong to either
Physics or Chemistry
department.
(ii) To display the total number of teachers, maximum and minimum
salary earned by the teachers.
(iii) To display the teacher’s name and department of the teachers whose
name contains the letter ‘a’ and do not belong to Physics
department.
(iv) To display a report containing tid, teacher name, department,
gender,
gross salary(BASIC+ALLOWANCE+DA) and PF(BASIC * 0.12).
Page 2 of 4
PGM NO: 9 BINARY FILE – 2
1. Write a Python program to get the details of 'n' items (Itemno, Name,
Price, Category) from the user and write it to a binary file. Search for a
particular item using Itemno and update the price of the product.
Page 4 of 4