0 votes
in Oracle by
In a database containing information about books and authors, write an SQL query to identify the author with the most published books.

1 Answer

0 votes
by
SELECT author_id, author_name, COUNT(book_id) AS total_books

FROM Authors

JOIN Books ON Authors.author_id = Books.author_id

GROUP BY author_id, author_name

ORDER BY total_books DESC

FETCH FIRST 1 ROWS ONLY;

Related questions

0 votes
asked Apr 24, 2022 in SAP ABAP by sharadyadav1986
0 votes
asked May 21, 2019 in Other by sheetalkhandelwal
...