Professional Documents
Culture Documents
OR
6. Give author wise book details that have authored more than 2 books.
select aname, count(bid) as 'No_of_Books' from writes w, author a where a.aid
= w.aid group by a.aid having count(bid)>2;
7. Give book details library wise whose price is less than 1000
select lname, count(bid) as 'No_of_Books' from books b, ilib i where b.lid =
i.lid and b.price > 1000 group by lname;