Here is a collection or a list of 38 SQL Queries with Answers as well as output. You can write your answer at the text box below each query any time you can see the table structure by clicking on
Table Structure. And check your Answer by clicking on
Answer. You can test your Skill in SQL. You can also go for an online Quiz in SQL in one of my previous posts: Click here for Quiz. More queries will be added to this post within few days, visit again!!!
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) Who is the highest paid C programmer?
Table Structure
Answer
2) Who is the highest paid female cobol programmer?
Table Structure
Answer
3) Display the name of the HIGEST paid programmer for EACH language (prof1)
Table Structure
Answer
4) Who is the LEAST experienced programmer?
Table Structure
Answer
5) Who is the MOST experienced programmer?
Table Structure
Answer
6) Which language is known by ONLY ONE programmer?
Table Structure
Answer
7) Who is the YONGEST programmer knowing DBASE?
Table Structure
Answer
8) Which institute has MOST NUMBER of students?
Table Structure
Answer
9) Who is the above programmer?
Table Structure
Answer
10) Which female programmer earns MORE than 3000/- but DOES NOT know C, C++, Oracle or Dbase?
Table Structure
Answer
11) Which is the COSTLIEST course?
Table Structure
Answer
12) Which course has been done by MOST of the students?
Table Structure
Answer
13) Display name of the institute and course Which has below AVERAGE course fee?
Table Structure
Answer
14) Which institute conducts COSTLIEST course?
Table Structure
Answer
15) Which course has below AVERAGE number of students?
Table Structure
Answer
16) Which institute conducts the above course?
Table Structure
Answer
17) Display names of the course WHOSE fees are within 1000(+ or -) of the AVERAGE fee.
Table Structure
Answer
18) Which package has the HIGEST development cost?
Table Structure
Answer
19) Which package has the LOWEST selling cost?
Table Structure
Answer
20) Who developed the package, which has sold the LEAST number of copies?
Table Structure
Answer
21) Which language was used to develop the package WHICH has the HIGEST sales amount?
Table Structure
Answer
22) How many copies of the package that has the LEAST DIFFRENCE between development and selling cost were sold?
Table Structure
Answer
23) Which is the COSTLIEAST package developed in PASCAL?
Table Structure
Answer
24) Which language was used to develop the MOST NUMBER of package?
Table Structure
Answer
25) Which programmer has developed the HIGEST NUMBER of package?
Table Structure
Answer
26) Who is the author of the COSTLIEST package?
Table Structure
Answer
27) Display names of packages WHICH have been sold LESS THAN the AVERAGE number of copies?
Table Structure
Answer
28) Who are the female programmers earning MORE than the HIGEST paid male programmers?
Table Structure
Answer
29) Which language has been stated as prof1 by MOST of the programmers?
Table Structure
Answer
30) Who are the authors of packages, WHICH have recovered MORE THAN double the development cost?
Table Structure
Answer
31) Display programmer names and CHEAPEST package developed by them in EACH language?
Table Structure
Answer
32) Who is the YOUNGEST male programmer born in 1965?
Table Structure
Answer
33) Display language used by EACH programmer to develop the HIGEST selling and LOWEST selling package.
Table Structure
Answer
34) Who is the OLDEST female programmer WHO joined in 1992
Table Structure
Answer
35) In WHICH year where the MOST NUMBER of programmer born?
Table Structure
Answer
36) In WHICH month did MOST NUMBRER of programmer join?
Table Structure
Answer
37) In WHICH language are MOST of the programmers proficient?
Table Structure
Answer
38) Who are the male programmers earning BELOW the AVERAGE salary of female programmers?
Table Structure
Answer
SQL Query collection: Set1 Set2 Set3 Set 4