[英]finding names who've borrowed books from publisher
I'm working on a homework assignment, and I'm just plain stuck on this one. 我正在完成一项家庭作业,我只是坚持这个。
The structure I'm given is this: 我给出的结构是这样的:
member(memb_no, name, age)
book(isbn, title, authors, publisher)
borrowed(memb_no, isbn, date)
The question is basically to return the table of names that have borrowed ALL books of a given publisher (McGraw-Hill). 问题基本上是返回已借用给定出版商(McGraw-Hill)的所有书籍的名称表。
I just did the previous question, which was the same except ANY book from that publisher, but I just can't think of how I would check to see if I member has borrowed ALL the books from a given publisher, using just MySQL. 我只是做了上一个问题,除了那个出版商的任何一本书之外都是一样的,但是我想不出我会怎么检查我的成员是否只使用MySQL借用了给定出版商的所有书籍。
Could anyone suggest how to go about solving this? 任何人都可以建议如何解决这个问题? Thank you! 谢谢!
I won't give you an answer, but I will suggest some topics to check out. 我不会给你答案,但我会建议一些主题来检查。
Look into these SQL clauses: 查看这些SQL子句:
Also explore the concept of subqueries within the select clause. 还要探索select子句中子查询的概念。
Happy hunting! 快乐狩猎!
( A quick general SQL resource which describes a few of those terms) ( The relevant MySQL documentation page ) ( 快速通用SQL资源 ,描述了其中的一些术语)( 相关的MySQL文档页面 )
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.