Challenge: Most Popular Genre
Oppgave
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
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 3. Kapittel 6
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Suggested prompts:
Can you explain this in simpler terms?
What are the main points I should remember?
Can you give me an example?
Fantastisk!
Completion rate forbedret til 5.56
Challenge: Most Popular Genre
Sveip for å vise menyen
Oppgave
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
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 3. Kapittel 6
single