在数据库Exam中查询只被借过1次的图书的图书名称、作者和出版社。 |
select distinct book.bno,book.bname,book.author,book.publish from Exam..book,Exam..borrow where book.bno in ( select bno from Exam..borrow group by borrow.bno having count(bno) = 1 )
原文地址:https://www.cnblogs.com/masterchd/p/9337341.html
时间: 2024-10-11 21:54:05