Write a sql query that returns the names of the students


Write a SQL query that returns the names of the students (lname, fname), and the major of the major with most students. If

more than one major is tied for most students, then list all the names of the students from both majors (as well as the

majors). Order the results by major (in the case of a tie) and then alphabetically by last name and first name.

Table Data:

id, fname, lname, major

1;"Jeff";"Salvage";"Computer Science"

2;"Thurman";"Munson";"Computer Science"

3;"Chase";"Utley";"Physical Fitness"

4;"Jimmy";"Rollins";"Computer Science"

5;"Derek";"Jeter";"World Series Championships"

6;"Jeff";"Popyack";"Mathematics"

7;"Kurt";"Schmidt";"Mathematics"

8;"Jason";"Lenhart";"Mathematics"
;"";"";""

Solution Preview :

Prepared by a verified Expert
PL-SQL Programming: Write a sql query that returns the names of the students
Reference No:- TGS01241345

Now Priced at $20 (50% Discount)

Recommended (93%)

Rated (4.5/5)