Assignment - SQL Queries: Problem Statement
Assignment - SQL Queries: Problem Statement
Problem Statement:
Consider yourself to be Sam and you have been given the below tasks to complete using
the Table – STUDIES, SOFTWARE & PROGRAMMER.
Tasks to be performed:
1. Find out the selling cost AVG for packages developed in Pascal.
2. Display Names, Ages of all Programmers.
3. Display the Names of those who have done the DAP Course.
4. Display the Names and Date of Births of all Programmers Born in January.
5. What is the Highest Number of copies sold by a Package?
6. Display lowest course Fee.
7. How many programmers done the PGDCA Course?
8. How much revenue has been earned thru sales of Packages Developed in C.
9. Display the Details of the Software Developed by Ramesh.
10. How many Programmers Studied at Sabhari?
11. Display details of Packages whose sales crossed the 2000 Mark.
12. Display the Details of Packages for which Development Cost have been recovered.
13. What is the cost of the costliest software development in Basic?
14. How many Packages Developed in DBASE?
15. How many programmers studied in Pragathi?
16. How many Programmers Paid 5000 to 10000 for their course?
17. What is AVG Course Fee
18. Display the details of the Programmers Knowing C.
19. How many Programmers know either COBOL or PASCAL.
20. How many Programmers Don’t know PASCAL and C
21. How old is the Oldest Male Programmer.
22. What is the AVG age of Female Programmers?
23. Calculate the Experience in Years for each Programmer and Display with their
names in Descending order.
24. Who are the Programmers who celebrate their Birthday’s During the Current
Month?
25. How many Female Programmers are there?
26. What are the Languages studied by Male Programmers.
27. What is the AVG Salary?
28. How many people draw salary 2000 to 4000?
29. Display the details of those who don’t know Clipper, COBOL or PASCAL.
30. Display the Cost of Package Developed By each Programmer.
31. Display the sales values of the Packages Developed by the each Programmer.
32. Display the Number of Packages sold by Each Programmer.
33. Display the sales cost of the packages Developed by each Programmer Language wise.
[email protected] - +91-7022374614 - US: 1-800-216-8930 (Toll Free)
MS SQL Certification Training
34. Display each language name with AVG Development Cost, AVG Selling Cost and
AVG Price per Copy.
35. Display each programmer’s name, costliest and cheapest Packages Developed by him or
her.
36. Display each institute name with number of Courses, Average Cost per Course.
37. Display each institute Name with Number of Students.
38. Display Names of Male and Female Programmers. Gender also.
39. Display the Name of Programmers and Their Packages.
40. Display the Number of Packages in Each Language Except C and C++.
41. Display the Number of Packages in Each Language for which Development Cost is
less than 1000.
42. Display AVG Difference between SCOST, DCOST for Each Package.
43. Display the total SCOST, DCOST and amount to Be Recovered for each
Programmer for Those Whose Cost has not yet been Recovered.
44. Display Highest, Lowest and Average Salaries for those earning more than 2000.
45. Who is the Highest Paid C Programmers?
46. Who is the Highest Paid Female COBOL Programmer?
47. Display the names of the highest paid programmers for each Language.
48. Who is the least experienced Programmer.
49. Who is the most experienced male programmer knowing PASCAL.
50. Which Language is known by only one Programmer?
51. Who is the Above Programmer Referred in 50?
52. Who is the Youngest Programmer knowing DBASE?
53. Which Female Programmer earning more than 3000 does not know C, C++,
ORACLE or DBASE?
54. Which Institute has most number of Students?
55. What is the Costliest course?
56. Which course has been done by the most of the Students?
57. Which Institute conducts costliest course.
58. Display the name of the Institute and Course, which has below AVG course fee.
59. Display the names of the courses whose fees are within 1000 (+ or -) of the
Average Fee,
60. Which package has the Highest Development cost?
61. Which course has below AVG number of Students?
62. Which Package has the lowest selling cost?
63. Who Developed the Package that has sold the least number of copies?
64. Which language has used to develop the package, which has the highest
sales amount?
65. How many copies of package that has the least difference between
development and selling cost where sold.
66. Which is the costliest package developed in PASCAL.
67. Which language was used to develop the most number of Packages.
68. Which programmer has developed the highest number of Packages?
100. What is the AVG salary for those whose software sales is more than 50,000/-.
101. How many packages were developed by students, who studied in institute that
charge the lowest course fee?
102. How many packages were developed by the person who developed the
cheapest package, where did HE/SHE study?
103. How many packages were developed by the female programmers earning more
than the highest paid male programmer?
104. How many packages are developed by the most experienced programmer form
BDPS.
105. List the programmers (form the software table) and the institutes they studied.
106. List each PROF with the number of Programmers having that PROF and the
number of the packages in that PROF.
107. List the programmer names (from the programmer table) and No. Of Packages
each has developed.