Challenge: Most Popular Genre
Opgave
Swipe to start coding
Write a query to find the genre with the highest number of borrowings in the library. Use subqueries to aggregate borrowings by genre and then select the genre(s) with the maximum borrow count.
- Aggregate the number of borrowings for each genre.
- Identify the maximum borrow count among all genres.
- Return the genre(s) and their borrow count where the borrow count matches the maximum value.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 3. Kapitel 6
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat
Fantastisk!
Completion rate forbedret til 5.56
Challenge: Most Popular Genre
Stryg for at vise menuen
Opgave
Swipe to start coding
Write a query to find the genre with the highest number of borrowings in the library. Use subqueries to aggregate borrowings by genre and then select the genre(s) with the maximum borrow count.
- Aggregate the number of borrowings for each genre.
- Identify the maximum borrow count among all genres.
- Return the genre(s) and their borrow count where the borrow count matches the maximum value.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 3. Kapitel 6
single