View the step-by-step solution to:

Show all the songs in your database ordered by your ranking (best song ranked number 1 followed by number 2 etc.) alongside your two additional...

I am tasked with writing queries for my computer science class, however, I am having trouble understanding how to do this assignment. Any help or explanations would be greatly appreciatedScreen Shot 2018-04-04 at 5.21.04 PM.png

Screen Shot 2018-04-04 at 5.21.04 PM.png

1. Show all the songs in your database ordered by your ranking (best
song ranked number 1 followed by number 2 etc.) alongside your two
additional fields: (order of fields: Ranking, SongTitIe, SOMETHING, SOME THINGELSE) 2. Show all the songs in your database of currently active bands ordered
by year (oldest first)
(order of fields: Ranking, SongTitIe, Year, Name, NumberOfMembers,
C urren tIyActive) 3. Show all the unique languages alphabetically of currently not active
artists (so without repeating the same language twice in the output):
(order of fields: Language) Put your working queries in the q2 .txt file (each on a separate line) the file should
contain 3 lines (one for each query).

Top Answer

1 SELECT * (Ranking, SongTitle, Genre, Year) FROM song_items GROUP BY SongID ORDER BY SUM(Ranking) DESC;... View the full answer

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Ask a homework question - tutors are online