合生元碰到的sql

duqiu155 2014-03-04 05:56:07

Consider the following schema:
Suppliers( sid: integer, sname: string , address: string )
Parts( pid : integer, pname: string ,color: string )
Catalog( sid: integer, pid: integer, cost: real )
The Catalog relation lists the prices charged for parts by Suppliers. Write the following queries in SQL.
找出仅供应红色零件的 供应商的sids (除了红色不提供别的)
2)找出供应一种红色零件或一种绿色零件的供应商的sids

...全文
44 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

590

社区成员

发帖
与我相关
我的任务
社区描述
提出问题
其他 技术论坛(原bbs)
社区管理员
  • community_281
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧