We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 9
Table Name: Programmers
if ; Null ___| Data Type _| Deserption
NAME | NOT NULL VARCHAR2(8) | Name
| DOB NOT NULL : i
‘po, / NOT NULL —_— Date of Joining
| SEX ie NOTNULL_ | VARCHAR2(1) Male or Female 1
PROF! ~. VARCHAR2(8) | Language 1
PROV2 | VARCHAR2(8)__| Language 2__
SALARY _ TNOT NULL. | NUMBER()_ Salary —
Data in Table : Programmers
NAME pow DUs PROF! SALARY.
Anand 3200
Altaf 2800
_Tagadesh * [4100 |
Juliana | 21-Apre 3000
Kamala |.02. 2900.
Mary | F_ (4500
Nelson | 2500
Par 19-Nov-65 [Clipper | 2800
Qadir ug65 | [fc [3000
Ramesh 03-May-67 Dbase_ 3200
Rebevea 7 [Cobol___| 2500
Remitha 20-. ‘Assembly _| 3600
Revathi [Basic | 3700
Vijaya fe 3500
\Table Name : Studies
Name | Null _
NAME ~ NOT NULL ___| VARCHAR2(8)
SPLACE NOT NULL_ VARCHAR2(9)
COURSE NOT NUL
ccosT NOT NULL_ NUMBERG)
Data in Table ; stuaies
ype____| Description |
_|Name. |
Studies Place |
| VARCHAR2(5) [Course Studies
| Course Cost_
NAME, ] | COURS! CcOsT.
Anand 1 Pedea 14500
Altaf 4 _ (R00
3500
__ 22009
- [so00
| 4500 |
d (6200 |
Partick 5200 j
Qadir - 14000 |
Ramesh 4500 |
Rebecca _ | 11000 |
Remitha 6000
Revathi __ spl CD [5000
Vijaya MICROSOFT ____ Dea | 48000
Table Name : Software
| Null Type |Description |
___| NOT NULL _ ___ VAI RCHAR2( 3) Name |
| NOT NULL | “VARCHAR2(20) Developed Project |
Name
( | Language Developed
NUMBERG,2) Software Cost
NUMBERG)
Data in Table: Sofware
~ "No. Of Software Sold _|
~ | Development Cost
| Name ‘Tide | | Dev_in [i cost | Sold _|
ANAND PARASHUTI __[BASIC 399. 95 6000/43
ANAND ____ VIDEO THINKING PACK TPASCAL __ 7500.00 16000 [9 |
“JAGADESH | SERIAL LINi UTILITY _ _ JAVA "800.00 7500 10 |
JAGADESH _ SHARES MANAGEMENT | ORACLE | 3000.00 _ 12000 | 14
JULIANA INVENTORY CONTROL _ “COBOL 3000.00 | 3500 | 0
KAMALA_ | PARCEL PACKAGE _ “| DBASE __| 9000.0
| MARY FINANCIAL ACC S/W. ORACLE _
MARY CODE GENERATOR
MARY READ ME _ -
PARTICK GRAPHIC EDITOR, | PASCAL |’
QADIR BOMBS AWAY _ _ ASSEMBLY |
QADIR , VACCIN!
RAMESH HOTEL MANAGEMENT _
RAMESH DEAD LEE =
REMIPTA | PC UTILITIESREMUITA.. | TSR HELP PACKAGI
REVATHI
REVATHI
VIJAYA,
Queries 1
“4. When the HIGHLS
~
HOSPITAL MANAGEMENT _
QUIZ MASTER |
ISK EDITOR
» Find out the SIM’LE COST AVERAGE FOR package developed in PASCAL,
Display the NAMES and AGES of all the programmers,
Display the NAMES of those who have done the DAP course.
‘V number of copies sold by a package.
5. Display the NAMES and DATE OF BIRTH of all programmers born in JANUARY
6. Display the LOWEST course fee.
: How inany prog
nmers have done the PGDCA course.
8. How much reveriue has been earned through sale of packages developed in C.
9. Display the details of the SOFTWARE developed by RAMESH.
10. How many programmers studies at SDBT.
ML. Display the details of PACKAGES whose sales CROSSED the 20000 mark.
12. Find out the NUMBER OF COPIES, which should be sold in order to recover
the DEVELOPM: ‘NT COST of each package.
Display te detail of packages for WHICH development cost has been
recorded.
13.
14. ‘What is the price of the costliest software developed in BASIC? How many
packages were developed in DBASE.
15. How many programmers studies in SAKTHIDBTECH.
16. How many programméers paid 5000 to 10000 for their COURSE. What is the
AVERAGE course fee?
17. Display the DETAILS of programmers knowing C.
18. How many programmers know either COBOL or PASCAL.
19, How many programmers DON’T know PASCAL & C.
20. How old is the OLDEST male programmer.
21.
: AVERAGE age of female programmers.
22. E the experience in years for each programmers and display
along with the nanes, in DESCENDING order.
23. How many female programmers are there.
24, What are the Janguages known by the male programmers.
25. Whit is the Average salary?
26. How many people draw 2000 to 4000. .
27. Display the details of those WHO DON’T know CLIPPER, COBOL or
. PASCAL.
28.
How many FEMALE programmers knowing C are above 24 years of age.
Who are tic programmers who will be celebrating their Birthdays within a
WEEK?
29,30. Display the details of those with LESS than a year EXPERIENCE,
31. Display the details of those who will be COMPLETING 2 years of service
this YEAR.
32.
CALCULATE the amount TO BE recovered for those package WHOSE
development cost has not yet been recovered.
List the puekages. which have not been sold so far.
34. Find out the COST of the software developed by MARY.
+35. Display the institute names FROM the Studies table WITH OUT
DUPLICATES. .
36. How man, Jifferent courses are mentioned in the studies table.
37.
Display the names of the programmers whose names contain 2
OCCURENC
2S of the letter *A’.
38. Display the names of the programmers WHOSE names contain UPTO 5
characters.
39. How many female programmers knowing COBOL have more than 2 years
Experience.
40. What is the LENGTH of the shortest name in the programmer table?
41. What is the AVERAGE development cost of a package developed in
“COBOL?
42. Display the name, sex, DOB (DD/MM/YY format), DOJ (DD/MM/YY
_ format) for all the programmers WITHOUT using conversion function.
43. What is the amount paid in salaries of the males programmers WHO DON’T
know COBOL?
44, Who are te programmers WHO WERE BORN on the LAST DAY of the
MONTH.
45. - Display the title, SCOST, DCOST and DIFFERENCE between SCOST and
DCOST in DESCENDING or of DIFFERENCE.
46. Display the names of the packages WHOSE names contain MORE THAN 1
word.
47. Display the name, job of 1
JOINING are the SAME.
JOSE MONTH of BIRTH and MONTH ofneries -
!. Display THE NUMBER OF packages developed IN EACH language.
2. Display THE NUMBER OF packages developed by EACH person,
3. Display THE NUsIBER OF male and fema
oi
le programmers.
» Display THE COSTLIE
package and HIGHEST SEELING,
5. Display THE NUMBER Of people BORN in EACH YEAR.
6. Display THE NUMBER OF people JOINED in EACH YEAR,
7. Display THE NUMBER OF people BORN in EACH YEAR,
8. Display THE NUMBER OF people JOINED in EACH MONTH.
9. Displays the language wise COUNT of profl.
10 Displays the language wise COUNT of prof2.
ae Display TIE NUMBER OF people in EACH salary group.
12, Display THE NUMBER OF people WHO studies in EACH institute.
13. Display ‘THE NUMBER OF people WHO studies in EACH course.
14. Display the TOTAL development COST of the packages developed in EACH
language. ;
1s. Display the selling cost of the packages developed in EACH language.
16. Display the cost of the package developed EACH programmer.
17. Display the sales values of the packages developed by EACH programmer.
18. Display THE NUMBER of packages sold by EACH programmer.
19. Display the sales COST of the packages developed by EACH programmer
language wise.
20. Display EACH programmer’s name, costliest package & CHEAPEST
packayes developed by him/her.
21, Display EACH language name with AVERAGE development cost,
“AVERAGE selling cost and AVERAGE price per copy.
22. Display EACH institute name with number of courses, AVERAGE cost per
course.
23. Display EACH institute name with NUMBER of students,
24. Display the names of male and female programmers.
25. Display the programmer's name and their packages,
26. Display the NUMBER of packages in EACH language EXCEPT C & C++,
27. Display the NUMBER of PACKAGES in EACH language for WHICH
development COST is LESS than 1000.
28. Display the AVERAGE DIFFERENCE BETWEEN SCOST and DCOST for
EACH language.
29.
Display the TOTAL SCOST and DCOST and amount to be recovered for
EACH programnier for those WHOSE DCOST has NOT YET BEEN recovered.
“30. Display 1/IGHEST, LOWEST and AVERAGE salaries for THOSE earning
MORE than 2000, “ :+ Who is the HIGHEST paid € programmer?
» Who is the HIGIIST paid female COBOL programmer?
+ Display the names of the HIGHEST paid programmer for EACH language (profl).
» Who is the LEAST experienced progeammer?
» Who is the MOS experienced male programmer knowing PASCAL?
» Which language is known by ONLY ONE programmer?
~ Who is that above programmer? .
- Who is the YOUNGEST programmer-knowing DBASE?
Which female prosrammer earning MORE than 3000/- DOESN’T know C, CH,
Oracle or DBASL:?
1
2,
3.
4.
5.
“6.
7
8.
10. Which inscivute has the MOST NUMBER of students?
oF Which'course has been done by the MOST of the students?
12. Display the name of the institute and course, WHICH has below AVERAGE
course fee, ‘ :
13, Which us the COSTLIEST course?
14. Which institute conducts the COSTLIEST course?
15. Which couse has below AVERAGE number of students?
16. ‘Which institute conducts the above course?
“17.
Display the names of the course WHOSE fees are within 1000/- (+ or -) of the
AVERAGE fee.
18. Which p:
19. Which p
20. Which lan
sales amount?
au. Whicl
sales amount?
age has the HIGHEST development cost?
age has LOWEST selling cost?
gllage was used to develop the package, which has the HIGHEST
wtiage was used to develop the package, which has the HIGHEST
22, How many copies of the package that has the LEAST DIFFERENCE
between developinent and selling cost, were sold?
23. Which is ihe costliest package developed in PASCAL?
24, lage was used to develop the MOST NUMBER of packages?
25. Which provrammer has developed the HIGHEST number of packages?
26. Who is the author of the COSTLIEST package?
21.
Display the names of the package, WHICH have sold LESS THAN the
AVERAGE number of copies.
“28, Who are tie authors of the package, WHICH have recovered MORE THAN
Gouble the developinent cost?
Display the programmer names and the CHEAPEST package developed by
29.
30. Display the ¢ used by EACH programmer to develop the HIGHEST
selling and the LOWEST selling packa,
3h.
32.
YOUNGEST male programmer bom in 1965?
LDEST female programmer WHO joined in 1992?In WHICH year were the MOST NUMBER of programmers born.
In WHICH month did MOST NUMBER of the Programmers join,
In WHIC)| language are MOST of the programmers proficient.
Who are tie male
Programmers earning BELOW the AVERAGE salary of
“female programmers?
37. Who are the female Programmers earning MORE than the HIGHEST paid
male programmer’?
38. Which |
anguage has been started as profl by the MOST of the Programmers?mperies - 1V
» Which: language has been started
» Display the details Of the softwa
MORE than 3000
~ Display the det
. Display
vv
4S profl by the MOST of the programmers.
re development by the male programmer earning
BY
ails of the package developed i
a ped in PASCAI
the details of those prc Seon 0
Display the detail, of , ogrammers WHO joined BEFORE 1990,
+ SSPlay the details of the software developed in DI
SAK HIDBTECI ped in DBASE by female programmers of
.6. Dispt:
uw
2 ay the NUMBER of, packages, NUMBER of copies sold and sales value of
EACL programme, institute-wise.
_ 7. Display the details of the software developed in DBASE by male programmers WHO
(0 the institute in WHICH MOST NUMBER of programmer studied.
Display the details uf the software developed by the male programmers bom
BEFORE 1995 aud female Programmers AFTER 1975.
. belo
2
Display the details of the software that was developed in the language that is NOT
the programmer’s first proficiency.
Display the details of the software that was developed in the language
WHICH is NEITHER the first NOT the second proficiency of the programmer.
10,
Te Display the details of the software developed by the students of SDBT.
12. Display the names of the programmers WHO HAVE NOT developed any
packase,
13. What is the total cost of the software developed by the programmers by
“APPLE?
14. Who are the programmers WHO JOINED on the same day?
“18. Who are the programmers WHO HAVE the same proi2?]
16. Display the total sales value of software, institute wise.
7. In which institute did the person WHO developed the COSTILIEST package
study."
18. Which language lasted in profi and prof2 HAS NOT BEEN used to develop
any puckage?
19. How many does the person WHO developed the HIGHEST selling package
eam and WHAT vourse did he/she undergo?
How many months will take for each programmer to recover the cost of the
course underweni
21. Which is the COSTILIEST package developed by a person with under 3
* years experience?
22, What is the AVERAGE salary for those WHOSE software's sales value is
nore than 50,000?
How many packages were developed by students WHO studies in the institute
that charge the LOWEST course fee,
24 How many packages were developed by the person WHO developed the
CHEAPEST pack, WHERE did he/she study?
25. How many packages were developed by female programmers eaming MORE
20.
eesthan the HIGHES’
paid male Programmer,
How miuny packa,
from MICROSOK'y,
26.
eS Were developed by MOST experienced programmer
List the Programmers (from the software table) and
including those W4 10 DIDN”
‘T develop any package,
List each profl with the nun
nber of programmers having that profl and the
+ number of packages developed in that profi.
29, List the programmer's names (from the programmer table) and the no of
packages EACH has developed,
30.
.27.
the Institutes they studied,
28.
List all the details of programmers who has done a course at SSIL.