Karthickumar DBA - SQL Questions and Answers Part - 1
Karthickumar DBA - SQL Questions and Answers Part - 1
1) Find out the SELLING COST AVERAGE for the packages developed in PASCAL?
5) Display the names and date of birth of all the programmer born in
JANUARY.
11) 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 development costof each package.
14) Display the details of packages for which development cost has been
recovered.
17) How many programmers paid 5000 to 10000 for their course?
24) Calculate the experience in years for each programmers and display
along with the names in descending order?
25) Who are the programmers who celebrate their birthday during the current
month?
SELECT NAME FROM PROGRAMMER WHERE SALARY BETWEEN 2000 AND 4000;
30) Display the details of those who don't know Clipper, Cobol or Pascal?
31) How many Female programmers knowing C are above 24 years of age?
32) Who are the programmers who will be celebrating their Birthday within a
week?
36) List the packages which have not been sold so far?
38) Display the institutes names from the studies table without duplicates?
39) How many different courses are mentioned in the studies table?
41) Display the names of programmers whose names contain upto 5 characters?
42) How many female programmers knowing COBOL have more than 2 years
experience?
43) What is the length of the shortest name in the programmer table?
45) Display the name,sex,dob(DD/MM/YY format), doj for all the programmers
without using
conversion function?
46) Who are the programmers who were born on the last day of the month?
47) What is the amount paid in salaries of the male programmers who do not
know Cobol?
SELECT TITLE, SCOST, DCOST, DCOST -SCOST DIFF FROM SOFTWARE ORDER BY
4 DESC;
49) Display the name, dob, doj of those month of birth and month of joining
are same?
50) Display the names of the packages whose names contain more than 1 word?
5 View comment s