Practice 2 Sheet SQL
Practice 2 Sheet SQL
1. Find out the selling cost avg for packages developed in pascal
1. Display name , ages of all programmers
1. Display the names of those who have done the Dap course
1. Display the name and DOB of all programmers born in January
1. What is the highest no. of copies sold by a package
1. Display lowest course fee
1. How many programmers done a PGDCA course
1. How much revenue has been earned through sales of packages developed in C
1. Display the details of the software developed by ramesh
1. How many programmers studied at sabhari
1. Display details of packages whose sales crossed the 2000 mark
1. Display the details of packages for which the development cost have been
recovered
1. What is the costliest software development in the basic
1. How many packages developed in dbase
1. How many programmers studied in pragathi
1. How many programmers payed 5000 to 10000 for their course
1. What is AVG course fee
1. Display the details of the programmers knowing C
1. How many programmers know either cobol or pascal
1. How Many programmers don’t know pascal and C
1. How old is the oldest male programmer
1. What is the avg age of female programmer
1. Calculate the experience in years for each programmers and display with their
names in descending order
1. Who are the programmers who celebrate their birthday during the current month
1. How many females programmers are their
1. What are the languages studied by the male programmers
1. What is the AVG salary
1. How many people draw salary 2000-4000
1. Display the details of those who don’t know clipper , cobol or pascal
1. Display the cost of package developed by each programmer
1. Display the sales values of the packages developed by the each programmer
1. Display the no. of packages sold by each programmer
1. Display the sales cost of the packages developed by each programmer language
wise
1. Display each language name with AVG development cost, AVG selling cost and AVG
price per copy
1. Display each institute name with no. of course , avg. cost per course
1. Display each institute name with no. of courses , avg cost for per course
1. Display each institute name for with no. of students
1. Display names of male and female programmers, gender also
1. Display the name of programmers and their packages
1. Display the no. of packages in each language expect C and C++
1. Display the no. of packages in each language for which development cost is less
than 1000
1. Display the total SCOST , DCOST AND Amount to be recovered for each programmer
for those whose cost has not yet been recovered
1. Display AVG difference between SCOST,DCOST for each packages
1. Display highest, lowest and average salaries for those earning more than 2000
1. Who is the highest paid C programmer
1. Who is the highest paid female programmer
1. Display the name of the highest paid programmers for each language
1. Who is the least experience programmer
1. Who is the most experience male programmer knowing pascal
1. Which language is known by only one programmer
1. Who is the above programmer refered in 50
1. Who is the youngest programmer knowing DBASE
1. Which female programmer earning more than 3000 does not know C C++ Oracle or
DBASE
1. Which institute has most no. of students
1. What is the costliest Course
1. Which course has been done by the most of the students
1. Which institute conduct costliest course
1. Display the name of the institute and course which has below avg course fee
1. Display the name of the courses whose fees are within 1000 of the avg fee
1. Which package has the highest development cost
1. Which course has below avg number of students
1. Which package has the lowest selling cost
1. Who developed the package that has sold the least no of copies
1. Which language has used to develop the package, which has the highest sales
amount
1. How many copies of package that has the least difference between development
and selling cost where sold
1. Which is the costliest package developed in PASCAL
1. Which language used to develop the most no of packages
1. Which programmer has developed the highest no of packages
1. Who is the author of costliest package
1. Display the names of the packages which have sold less than the avg. no. of copies
1. Who are the authors of packages which have recovered more than double the
development cost
1. Display the programmer name and the cheapest package developed by them in each
language
1. Display the language used by each programmer to develop the highest selling and
lowest selling package
1. Who is the youngest male programmer born in 1965
1. Who is the oldest female programmer who joined in 1992
1. In which year was the most no of programmer born
1. In which month did most no of programmer join
1. In which language are most of the programmer proficient
1. Who are the main programmer earning below the avg. salary of female
programmers
1. Who are the female programmer earning more than the highest paid
1. Which language has been stated as the prof by most prof programmers
1. Display the details of those who are drawing the same salary
1. Display the details of the software developed by the male programmer earning more
than 3000
1. Display the details of the packages developed in PASCAL by the female programmer
1. Display the details of the programmer who joined before 1990