LogiQuest

535. Authors with Several Books

EasyHAVING

Return each author with more than one book and the count as books, ordered by author.

books

idtitleauthorgenreyearcopies
1Wings of FireA. P. J. Abdul KalamBiography19993
2The GuideR. K. NarayanFiction19582
3Malgudi DaysR. K. NarayanFiction19431
4Discovery of IndiaJawaharlal NehruHistory19462
5GitanjaliRabindranath TagorePoetry19101
6Train to PakistanKhushwant SinghFiction19562

members

idnamejoined
1Kavya2023-01-10
2Rahul2023-03-22
3Sneha2024-02-01
4Vikram2024-06-15

loans

idbook_idmember_idloan_datereturn_date
1112024-07-012024-07-10
2212024-07-05NULL
3222024-07-062024-07-20
4432024-08-01NULL
5322024-08-032024-08-04
6132024-08-102024-08-25
7612024-09-01NULL
8122024-09-02NULL

Your query runs on a fresh copy of these tables (SQLite). Column names in your result do not need to match.

Loading the MyLoginn IDE…