This action might not be possible to undo. Are you sure you want to continue?
1. 2. 3. 4. 5. 6. Find out the selling cost AVG for packages developed in Pascal. Display Names, Ages of all Programmers. Display the Names of those who have done the DAP Course. Display the Names and Date of Births of all Programmers Born in January. What is the Highest Number of copies sold by a Package. Display lowest course Fee. How many programmers done the PGDCA Course? How much revenue has been earned thru sales of Packages Developed in C. 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 developed 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.
Which Institute conducts costliest course. 54. 2 . Display AVG Difference between SCOST. 56. 40. Which course has below AVG number of Students. DCOST and amount to Be Recovered for each Programmer for Those Whose Cost has not yet been Recovered. 41. Display each institute name with number of Courses. Display Names of Male and Female Programmers. Which Institute has most number of Students. costliest and cheapest Packages Developed by him or her. 65. 55. 61. Display the Name of Programmers and Their Packages. 49. 46. Which is the costliest package developed in PASCAL. Display each programmer’s name. Which package has the Highest Development cost. Who is the Youngest Programmer knowing DBASE. Display the total SCOST. 35. 62. 51. 48. Which language has used to develop the package. 64. 42. 38. 60. 52. AVG Selling Cost and AVG Price Per Copy. Gender also. Display each institute Name with Number of Students. How many copies of package that has the least difference between development and selling cost where sold. 43. Display Highest. Display the Number of Packages in Each Language for which Development Cost is less than 1000. 58. 37. Display the Number of Packages in Each Language Except C and C++. Who is the Highest Paid C Programmers. Who is the least experienced Programmer. 63. Which Package has the lowest selling cost. 39. Who is the most experienced male programmer knowing PASCAL. Who is the Highest Paid Female COBOL Programmer. which has below AVG course fee. Which course has been done by the most of the Students. ORACLE or DBASE. Which Female Programmer earning more than 3000 does not know C. DCOST for Each Package. Which Language is known by only one Programmer. 59. Display the names of the courses whose fees are within 1000 (+ or -) of the Average Fee. 57. 53. Lowest and Average Salaries for those earning more than 2000. 36. Display the name of the Institute and Course. Display each language name with AVG Development Cost. 66. which has the highest sales amount. 47. 44. What is the Costliest course. C++. Who is the Above Programmer Referred in 50. Who Developed the Package that has sold the least number of copies. 45. Display the names of the highest paid programmers for each Language. 50. Average Cost Per Course.34.
which have sold less than the AVG number of copies. Display the details of the Programmers who joined before 1990. In which year was the most number of Programmers born. In which month did most number of programmers join. Display the names of the packages. In which language are most of the programmers proficient. Display the total sales value of the software. 94. Display the names of the programmers who have not developed any packages. Who is the Author of the Costliest Package. 95. Who is the oldest Female Programmer who joined in 1992. 81. institute wise. 75. Who is the youngest male Programmer born in 1965. Display the language used by each programmer to develop the Highest Selling and Lowest-selling package. Display the details of the Software Developed in C By female programmers of BDPS. 85. Who are the Female Programmers earning more than the Highest Paid. 69. Which language has been stated as the prof by most of the Programmers. 80. 91. 71. Who are the male programmers earning below the AVG salary of Female Programmers. 90.67. 79. Display the number of packages. 72. Display the details of the packages developed in Pascal by the Female Programmers. 92. which have recovered more than double the Development cost. 68. 76. Display the details of the software developed in DBASE by Male Programmers. 88. of Copies Sold and sales value of each programmer institute wise. Display the details of the software developed by the male students of sabhari. 84. Which language was used to develop the most number of Packages. 87. 73. What is the total cost of the Software developed by the programmers of Apple. who belong to the institute in which most number of Programmers studied. Who are the authors of the Packages. 93. 89. 77. Display the details of those who are drawing the same salary. Display the details of the software Developed by the male programmers Born before 1965 and female programmers born after 1975. 78. Which programmer has developed the highest number of Packages. Display the programmer Name and the cheapest packages developed by them in each language. No. Display the details of the software that has developed in the language which is neither the first nor the second proficiency of the programmers. 96. 83. 86. Who are the programmers who have the same Prof2. 82. 70. Who are the programmers who joined on the same day. 74. Display the details of the Software Developed by the Male Programmers Earning More than 3000/-. 3 .
98. where did HE/SHE studied. 101. 108.000/-. 102. How much does the person who developed the highest selling package earn and what course did HE/SHE undergo. What is the AVG salary for those Whose software sales is more than 50.97. who studied in institute that charge the lowest course fee. How many packages were developed by the person who developed the cheapest package. 107. 109. How many packages were developed by students. How many packages were developed by the female programmers earning more then the highest paid male programmer. 4 . In which institute does the person who developed the costliest package studied. List the programmers (form the software table) and the institutes they studied. How many packages are developed by the most experienced programmer form BDPS. List the programmer names (from the programmer table) and No.prof2 has not been used to develop any package. 106. 103. 100. Which is the costliest package by a person with under 3 year’s experience. Of Packages each has developed. 99. 105. Which language listed in prof1. List each PROF with the number of Programmers having that PROF and the number of the packages in that PROF. 104. How many months will it take for each programmer to recover the cost of the Course underwent.
00 300. DEAD LEE PC UTILITIES TSR HELP PKG. FINANCIAL ACCT.00 4500.00 3000.00 13000. TSR EDITOR DEVELOPIN CPP BASIC PASCAL COBOL DBASE ORACLE C CPP ASSEMBLY C DBASE PASCAL C ASSEMBLY PASCAL C SCOST 300. CODE GENERATOR README BOMBS AWAY VACCINES HOTEL MGMT.95 725.00 900.00 1900.00 9000. HOSPITAL MGMT.00 599.95 7500.00 750.00 2500.00 399.TABLE NAME: STUDIES PNAME ANAND ALTAF JULIANA KAMALA MARY NELSON PATRICK QADIR RAMESH REBECCA REMITHA REVATHI VIJAYA INSTITUTE SABHARI COIT BDPS PRAGATHI SABHARI PRAGATHI PRAGATHI APPLE SABHARI BRILLIANT BDPS SABHARI BDPS COURSE PGDCA DCA MCA DCA PGDCA DAP DCAP HDCA PGDCA DCAP DCS DAP DCA COURSE FEE 4500 7200 22000 5000 4500 6200 5200 14000 4500 11000 6000 5000 4800 TABLE NAME: PROGRAMMER PNAME ANAND ALTAF JULIANA KAMALA MARY NELSON PATTRICK QADIR RAMESH REBECCA REMITHA REVATHI VIJAYA DOB 12-APR-66 02-JUL-64 31-JAN-60 30-OCT-68 24-JUN-70 11-SEP-65 10-NOV-65 31-AUG-65 03-MAY-67 01-JAN-67 19-APR-70 02-DEC-69 14-DEC-65 DOJ 21-APR-92 13-NOV-90 21-APR-90 02-JAN-92 01-FEB-91 11-OCT-89 21-APR-90 21-APR-91 28-FEB-91 01-DEC-90 20-APR-93 02-JAN-92 02-MAY-92 GENDER M M F F F M M M M F F F F PROF1 PASCAL CLIPPER COBOL C CPP COBOL PASCAL ASSEMBLY PASCAL BASIC C PASCAL FOXPRO PROF2 BASIC COBOL DBASE DBASE ORACLE DBASE CLIPPER C DBASE COBOL ASSEMBLY BASIC C SALARY 3200 2800 3000 2900 4500 2500 2800 3000 3200 2500 3600 3700 3500 TABLE NAME: SOFTWARE PNAME MARY ANAND ANAND JULIANA KAMALA MARY MARY PATTRICK QADIR QADIR RAMESH RAMESH REMITHA REMITHA REVATHI VIJAYA TITLE README PARACHUTES VIDEO TITLING INVENTORY PAYROLL PKG.00 1100.00 18000.00 DCOST 1200 6000 16000 3500 20000 85000 20000 1200 3000 3100 35000 4500 5000 6000 75000 700 SOLD 84 43 9 0 7 4 23 84 11 21 4 73 51 7 2 6 5 .
SELECT * FROM SOFTWARE WHERE PNAME='RAMESH' 10. SELECT DISTINCT DEVELOPIN.DCOST.DEVELOPIN. SELECT TITLE.SOLD HAVING SUM(SCOST*SOLD)=0 14SELECT COUNT(TITLE) FROM SOFTWARE WHERE DEVELOPIN='DBASE' 15. SELECT MIN(COURSEFEE) FROM STUDIES 7.DOB. SELECT COUNT(PNAME) FROM STUDIES WHERE INSTITUTE='PRAGATHI' 16.SCOST.AVG(SCOST) AS AVGSCOST FROM SOFTWARE GROUP BY DEVELOPIN 35.SELECT PNAME. SELECT COUNT(PNAME) FROM STUDIES WHERE INSTITUTE='SABHARI' An aggregate may not appear in the WHERE clause unless it is in a subquery contained in a HAVING clause or a select list.DCOST. SELECT PNAME FROM STUDIES WHERE COURSE='DAP' 5. SELECT COUNT(PNAME) FROM STUDIES WHERE COURSE='PGDCA' 9.TITLE' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.DCOST.SCOST.DCOST.DEVELOPIN. SELECT AVG(COURSEFEE) FROM STUDIES 18.TITLE.SOLD FROM SOFTWARE GROUP BY DEVELOPIN. SELECT TITLE.SALARY FROM PROGRAMMER WHERE PROF1='C' OR PROF2='C' 34.SCOST. SELECT DISTINCT PNAME. 11.1.DOJ. and the column being aggregated is an outer reference. SELECT COUNT(PNAME) FROM STUDIES WHERE COURSEFEE BETWEEN 5000 AND 10000 17.SOLD FROM SOFTWARE GROUP BY DEVELOPIN.MAX(SCOST) AS MAXIMUM.SELECT AVG(SCOST) FROM SOFTWARE WHERE DEVELOPIN='PASCAL' 3. Column 'SOFTWARE. SELECT MAX(SOLD) FROM SOFTWARE 6.SOLD HAVING SUM(SCOST*SOLD)>20000 12.AVG(DCOST) AS AVGDCOST.TITLE.MIN(SCOST) AS MINIMUM FROM SOFTWARE GROUP BY PNAME ORDER BY PNAME 6 .SCOST.
'dbase') PROF2 in('c'. (CONVERT(DATE.'cpp'. select pname.AVG(COURSEFEE) INSTITUTE 37. select COURSE order by val desc from studies where coursefee = (select MAX(coursefee) from STUDIES) 57.PNAME having COUNT(prof1) = 1 53.COUNT(PNAME) FROM STUDIES GROUP BY INSTITUTE 48.'cpp'.row_number() over(order by DATEDIFF(YYYY.DOJ.count(PNAME) as val from STUDIES group by INSTITUTE 55. select PROF1.36.SYSDATETIME()))) desc) as 'id' from PROGRAMMER) and GENDER='m' and PROF1='pascal' 50.count(prof1) as coun from PROGRAMMER group by PROF1.PROF1. select top (1)PNAME from programmer where exists (select PNAME. select institute from studies where coursefee = (select MAX(coursefee) from STUDIES) 60.'oracle'.COUNT(DISTINCT FROM STUDIES COURSE)AS GROUP BY TOTALCOURSESOFFERED. select TITLE from SOFTWARE where DCOST=(select Max(DCOST) from SOFTWARE) 7 . select top (1) INSTITUTE. select pname from programmer where year(doj)=(select max(YEAR(doj)) from PROGRAMMER) 49. SELECT DISTINCT INSTITUTE.'oracle'.'dbase') and GENDER='f' and SALARY>3000 54. SELECT DISTINCT INSTITUTE.count(prof1) as coun from PROGRAMMER group by PROF1 having COUNT(prof1) = 1 51. select pname from PROGRAMMER and where PROF1 not not in('c'.
DCOST sw1 ) ) from SOFTWARE 66. select * from SOFTWARE where pname in (select pname from PROGRAMMER where YEAR(dob)<1965 and GENDER='m' union select pname from PROGRAMMER where YEAR(dob)>1965 and GENDER='f') 91.sold from SOFTWARE where ( scost . select * from SOFTWARE where pname in (select pname from PROGRAMMER where PNAME in (select pname from STUDIES where INSTITUTE='sabhari') and GENDER='M') 8 . select pname from SOFTWARE where SOLD=(select MIN(sold) from SOFTWARE) 64. select * from PROGRAMMER where YEAR(doj)<1990 86.dcost) in (select MIN(sw1.sw1.62. select * from PROGRAMMER where SALARY in (select salary from PROGRAMMER group by salary having COUNT(salary)>1) 83. select title from SOFTWARE where SOLD<(select AVG(sold) from SOFTWARE) 71.title.SALARY from PROGRAMMER where GENDER='m' and SALARY<(select AVG(salary) from PROGRAMMER where GENDER='f') 82. select title. select * from SOFTWARE where PNAME in (select PNAME from PROGRAMMER where SALARY>3000 and GENDER='m') 84. select * from SOFTWARE sw1 where (sw1. select * from SOFTWARE where DEVELOPIN='pascal' and PNAME in (select pname from PROGRAMMER where GENDER='f') 85. select PNAME from software where scost=(select max(scost) from SOFTWARE) 70. select title from software where scost=(select MAX(scost) where DEVELOPIN='pascal') from SOFTWARE 69. select TITLE from SOFTWARE where SCOST=(select MIN(SCOST) from SOFTWARE) 63. select pname from PROGRAMMER where gender='f' and YEAR(dob)=( select min(YEAR(dob)) from PROGRAMMER where PNAME in (select pname from PROGRAMMER where YEAR(doj)=1992 and GENDER='f') ) 79.DEVELOPIN FROM SOFTWARE WHERE SOLD IN ( SELECT SELECT MAX(SOLD) FROM SOFTWARE GROUP BY PNAME MIN(SOLD) FROM SOFTWARE GROUP BY PNAME ) OR SOLD IN ( ) ORDER BY PNAME 74. SELECT DISTINCT PNAME.developin.SCOST .SOLD ) > (sw1. select * from SOFTWARE where DEVELOPIN='c' and pname in (select pname from PROGRAMMER where PNAME in (select pname from STUDIES where INSTITUTE='bdps')) 89.developin from SOFTWARE where SCOST in (select MAX(SCOST) from SOFTWARE ) 65.SCOST *sw1. select pname.DCOST *2) 73. select pname.DOB from PROGRAMMER where dob in (select MIN(dob) from PROGRAMMER where GENDER='m' and YEAR(dob)=1965 ) 75. select pname.
PNAME where ST1.SCOST * SW1.st1. select p1.COURSE from PROGRAMMER inner join STUDIES st1 on p1.COURSEFEE/ p1.TITLE) AS pkgs FROM STUDIES ST1 INNER JOIN SOFTWARE SW2 ON SW2.COUNT(SW2.SALARY) FROM PROGRAMMER P1 WHERE P1. SELECT avg(P1. select pname.92. select institute from STUDIES where PNAME in (select pname from software where SCOST in (select MAX(SCOST) from SOFTWARE)) 98. select st1.PNAME 105. select distinct prof1 from PROGRAMMER union select distinct prof2 from PROGRAMMER except (select distinct developin from SOFTWARE ) 99.pname from software sw2 where SW2.INSTITUTE.SOLD) AS Sales FROM SOFTWARE SW1 where SW1.SCOST SELECT MIN(SCOST) FROM SOFTWARE )) IN( GROUP BY ST1.SALARY.PNAME .CEILING(st1. select pname.SCOST * SW2.SOLD > 50000)) 103.SCOST * SW1.COUNT(title) pname from from SOFTWARE where where PNAME and in(select PROGRAMMER GENDER='f' 9 .PNAME.PNAME IN (select sw2.PNAME where p1.pname from SOFTWARE sw1 WHERE SW1.p1.INSTITUTE .DOJ from PROGRAMMER where DOJ in (select doj from PROGRAMMER group by doj having COUNT(doj)>1 ) 97.PNAME .ST1.PNAME in ( select pname from SOFTWARE where SCOST in (select MAX(scost) from SOFTWARE )) p1 100. select pname from PROGRAMMER where PNAME not in (select distinct pname from SOFTWARE ) Or select pname from PROGRAMMER except (select distinct pname from SOFTWARE ) 93.ST1. SELECT ST1. select pname.PNAME = st1.PNAME = st1.PNAME 102.COUNT(title) from studies from where SOFTWARE where in PNAME in (select pname COURSEFEE (select min(COURSEFEE) from STUDIES))group by PNAME 104. select sum(scost*sold) as cost from SOFTWARE where PNAME in (select pname from STUDIES where INSTITUTE='apple') 94.PNAME = ST1.salary) as Months from PROGRAMMER p1 inner join STUDIES st1 on p1.PNAME IN ( select sw1.SOLD in (SELECT (SW1.
PNAME = P1.GETDATE())) FROM PROGRAMMER P1 INNER JOIN STUDIES S1 ON S1.PNAME =s1.PNAME = P2.PNAME.PNAME where P1.TITLE)=0 then '' else count(s1.DOJ .title) from PROGRAMMER P1 INNER JOIN SOFTWARE S1 ON S1.TITLE) end as Cnt from software s1 right outer join PROGRAMMER p1 on p1.INSTITUTE ='BDPS' and DATEDIFF(MONTH.PNAME WHERE S2.P1.PNAME 109.PNAME 10 .PNAME = P2.pname.DOJ.SALARY > (select MAX(salary) from PROGRAMMER where GENDER='m') group by P1.select p1.PNAME 106.P2.TITLE) from PROGRAMMER p2 INNER JOIN STUDIES S2 ON S2.PNAME group by p1.INSTITUTE ='BDPS') GROUP BY p2.GENDER='f' and P1.pname. case when count(s1.PNAME INNER JOIN SOFTWARE Sw2 ON Sw2.SALARY>(select group by PNAME MAX(salary) ( OR) from PROGRAMMER where GENDER='m')) select P1.PNAME WHERE S1.GETDATE()) = (SELECT MAX(DATEDIFF(MONTH.PNAME = P1.COUNT(Sw2.COUNT(S1. select p2.
This action might not be possible to undo. Are you sure you want to continue?
We've moved you to where you read on your other device.
Get the full title to continue reading from where you left off, or restart the preview.