Happy learning!!!
Carry on....
You can also share your queries in this site. Use this Link to share your part with the visitors like you.
SQL Query collection: Set1 Set2 Set3 Set 4
Below is the Table Structure using which you have to form the queries:

1) Find out the SELLING COST AVERAGE for the packages developed in PASCAL?
Table Structure

Answer
2) Display the names and ages of all programmers.
Table Structure

Answer
3)---------------
4) What is the highest numbers of copies sold by a package?
Table Structure

Answer
5) Display the names and date of birth of all the programmer born in JANUARY.
Table Structure

Answer
6) Display lowest course fee.
Table Structure

Answer
7) How many programmer has done PGDCA course.
Table Structure

Answer
8) How much revenue has been earned through sales of packages in C.
Table Structure

Answer
9) Display the details of software developed by Ramesh?
Table Structure

Answer
10) How many programmers studied at SABHARI.
Table Structure

Answer
11) Display the details of PACKAGES whose sales crossed the 20000 mark.
Table Structure

Answer
12) Find out the number of copies which should be sold in order to recover the development cost of each package.
Table Structure

Answer
13) What is the price of the costliest software developed in BASIC?
Table Structure

Answer
14) Display the details of packages for which development cost has been recovered.
Table Structure

Answer
15) How many packages were developed in dbase?
Table Structure

Answer
16) How many programmers studies at paragathi?
Table Structure

Answer
17) How many programmers paid 5000 to 10000 for their course?
Table Structure

Answer
18) What is the average course fee?
Table Structure

Answer
19) Display the details of programmers knowing c?
Table Structure

Answer
20) How many programmers know either Cobol or Pascal?
Table Structure

Answer
21) How many programmers dont know Pascal & C?
Table Structure

Answer
22) How old is the oldest male programmers?
Table Structure

Answer
23) What is the average age of female programmers?
Table Structure

Answer
24) Calculate the experience in years for each programmers and display along with the names in descending order?
Table Structure

Answer
25) Who are the programmers who celebrate their birthday during the current month?
Table Structure

Answer
26) How many female programmers are there?
Table Structure

Answer
27) What are the languages known by the male programmers?
Table Structure

Answer
28) What is the Average salary?
Table Structure

Answer
29) How many people draw 2000 to 4000?
Table Structure

Answer
30) Display the details of those who dont know Clipper, Cobol or Pascal?
Table Structure

Answer
31) How many Female programmers knowing C are above 24 years of age?
Table Structure

Answer
32) Who are the programmers who will be celebrating their Birthday within a week?
Table Structure

Answer
33 Display the details of those with less than a years experience?
Table Structure

Answer
34 Display the details of those who will be completing 2 years of service this year?
Table Structure

Answer
35 Calculate the amount to be recovered for those packages whose development cost has not been recovered?
Table Structure

Answer
36)ist the packages which have not been sold so far?
Table Structure

Answer
37) Find out the cost of the software developed by Mary?
Table Structure

Answer
38) Display the institutes names from the studies table without duplicates?
Table Structure

Answer
39) How many different courses are mentioned in the studies table?
Table Structure

Answer
40) Display the names of the programmers whose names contain 2 occurrences of the letter A?
Table Structure

Answer
41) Display the names of programmers whose names contain unto 5 characters?
Table Structure

Answer
42) How many female programmers knowing COBOL have more than 2 years experience?
Table Structure

Answer
43) What is the length of the shortest name in the programmer table?
Table Structure

Answer
44) What is the average development cost of a package developed in COBOL?
Table Structure

Answer
45) Display the name,sex,dob(DD/MM/YY format), doj for all the programmers without using conversion function?
Table Structure

Answer
46) Who are the programmers who were born on the last day of the month?
Table Structure

Answer
47) What is the amount paid in salaries of the male programmers who do not know Cobol?
Table Structure

Answer
48) Display the title, scost, dcost and difference between scost and dcost in descending order of difference?
Table Structure

Answer
49) Display the name, dob, doj of those month of birth and month of joining are same?
Table Structure

Answer
50) Display the names of the packages whose names contain more than 1 word?
Table Structure

Answer
SQL Query collection: Set1 Set2 Set3 Set 4
0 comments:
Post a Comment