Answer the question
In order to leave comments, you need to log in
Why does GROUP BY work?
According to the wiki (and others) the code below shouldn't work, but it does. Why?
SELECT title, genre, MAX(checkouts) FROM library_books
GROUP BY genre;
Answer the question
In order to leave comments, you need to log in
Why shouldn't it work?
Should, just what result you expect.
The response from the database was received, but in the specified example, the values were glued into one line (grouped).
('first', 'comedy', 5),
('second', 'comedy', 7),
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question