Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Sms Case Study: (Alias Use "Totalstud" For Total Number of Students)

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

SMS CASE STUDY

1) Display all undergraduate student whose name starts with ‘S’ and is of length between 5 and 20.

2) Display the student who are senior citizen (>=60).

3) Display student who were born after 1st of June 1980.

4) The student are suppose to only provide mobile numbers .All mobile numbers should start with
zero followed by 10 digits. Display student name having invalid phone numbers.

5) All emails should have “@” anywhere after the first character and should end with “.com”.
Display count of students having invalid email id.

6) Display the name and email of student who have a Gmail account.

7) Display the above record but do not consider invalid email id.

8) Display the qualification and the total number of students registered based on their
qualifications.
(Alias use “totalStud” for total number of students)

9) Display the full name of the month and the total number of students who are having their
birthday in that month. (Alias use “Month” and “Total”)

10) Display the student name that was born in a leap year ordering by student name and year of
birth.

11) Display student whose city is Kolkata as “HomeStudent ” and others as “DistanceStudent”
under a column “Remarks”. Also display the name and city of the student.

12) Display batchid, coursename, batch start date, batch end date for all batches. (batch end
date=batch start date +course duration).

13) Display all batchid having a difference of 10 hours and less between its starting and ending date.

14) Display all batches having similar start date and strength.

15) Display student who enrolled for the batch after its start date.

16) Display the studentid, studentname , totalfees for all student.

@Alok Page 1
SMS CASE STUDY

17) Display courses which are not being taught currently along with courses which are being taught.
Also display the batchid for the courses currently running and null for non executing courses.

18) Display count of students having no contact information. (Either email or phone).

19) Display coursename having above average fees.

20) Display coursename where fees are less than the average fees of its category.

21) Display the coursename having the highest enrollment.

22) Display student name having duplicate email ids.

23) Display student name having similar name but different email ids.
24) Display the student name, date of birth and their zodiac sign. Use Zodiac as alias
a. Aries  Mar 21-Apr 19
b. TaurusApr 20 –May 20
c. GeminiMay 21-Jun 20
d. Cancer  Jun21- Jul22
e. Leo  Jul 23- Aug 22
f. Virgo  Aug 23-Sept 22
g. Libra  Sept 23-Oct 22
h. Scorpio  Oct 23- Nov 21
i. Sagittarius  Nov 22-Dec 21
j. Capricorn  Dec 22- Jan 19
k. Aquarius Jan 20 – Feb 18
l. Pisces Feb 19- Mar 20.
25) Display the course name fetching the 2nd highest revenue.
26) Generate report which displays the batch number and the number of seats vacant. [Use Alias
“Vacant”].
27) Which among the following have the highest enrollment? (Graduate,Undergraduate or
postgraduate). Write query to display “Qualification” , “HighestEnrollmet” (Use Alias”).
28) Display student name, age[Alias] , coursename, batchid, batch_start_ date, batch_ end _date ,
and enrollment date in the format 1st of Jan , 2012 .
29) Display report in the following format. Consider Sat & Sun as holiday.

Week Enrollment
Weekday 10
Hoilday 05

@Alok Page 2

You might also like