




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、作业讲评作业讲评 2.4.1p29l哪些型号的哪些型号的PC速度大于速度大于3.00?l model( speed3.00 (PC) )l maker( Product hd100 (Laptop) )lwrongl maker(type=laptop ( Product) l maker (hd100 (Laptop) Product )l model, price (l(maker=B (Product PC Laptop Printer ) l)lwrongl model, price (maker=B (Product) PC ) l l model, price(maker=B (P
2、roduct) Laptop ) l l model, price(maker=B (Product) Printer ) l model( color=true AND type=laser (Printer) )l maker( type=laptop (Product) ) l maker( typepc (Product) )lwrongl maker( type=laptop AND typepc (Product) ) lWrongl maker( ltype=laptop (Product) typepc (Product) l) lWrongl maker( type=lapt
3、op (Product) ) l maker( type=pc (Product) )l查询在一种或者两种查询在一种或者两种PC机中出现的硬盘机中出现的硬盘的容量的容量l=l查询在不超越两种查询在不超越两种PC机中出现的硬盘的机中出现的硬盘的容量容量l查询在至少两种查询在至少两种PC机中出现的硬盘的容量机中出现的硬盘的容量lR1(model, hd):= model, hd (PC)lR2(model, hd):= model, hd (PC)lAnswer(hd):= R1.hd ( R1 R2 )l R1.hd= R2.hd AND R1. model R2. model l查询在至少查询
4、在至少3种种PC机中出现的硬盘的容量机中出现的硬盘的容量lR1(model, hd):= model, hd (PC)lR2(model, hd):= model, hd (PC)lR3(model, hd):= model, hd (PC)lR4(hd):= l R1.hd (R1 R2 R3)lR1.hd= R2.hd AND R1. model R2. model l R2.hd= R3.hd AND R2. model R3. modellWrong 非传送关系非传送关系 思索思索 R1=R3 R2 l查询在至少查询在至少3种种PC机中出现的硬盘的容量机中出现的硬盘的容量lR1(mod
5、el, hd):= model, hd (PC)lR2(model, hd):= model, hd (PC)lR3(model, hd):= model, hd (PC)lR4(hd):= l R1.hd (R1 R2 R3)lR1.hd= R2.hd AND R1. modelR2. model l R2.hd= R3.hd AND R2. modelR3. modell查询在不超越两种查询在不超越两种PC机中出现的硬盘的容量机中出现的硬盘的容量lAnswer(hd):= hd (PC) R4lR1(model, speed,ram):= model, speed, ram (PC)lR2
6、(model, speed,ram):= model, speed, ram (PC)lAnswer(R1.model, R2.model):= l R1.model, R2.model ( R1 R2)l R1. speed = R2. speed AND R1. ram = R2. ram l AND R1. model 2.8 (PC) product ) l maker, model(speed2.8 (Laptop) product )lR2:=R1lAnswer(maker):= R1.maker (R1 R2)l R1. maker = R2. maker AND R1. mod
7、el R2. ModellR1(maker, speed):=l maker, speed ( PC product ) l maker, speed ( Laptop product )lR2:=R1 lR3:=R1lAnswer(maker):= l R1.maker(R1 R2 R3)lR1. maker=R2.maker AND R1.speedR2. speed l R2.maker=R3.maker AND R2.speedR3.speedl至少消费至少消费3种型号种型号PC的厂商的厂商lR1(maker, model):=l maker, model (type=PC ( Product) )lR2:=R1, R3:=R1, R4:=R1lR5 (maker):=l R1. maker(R1 R2 R3)lR1. maker = R2. maker AND R1. model R2. model l R2.maker=R3.maker AND R2.modelR3. modell至少消费至少消费4种型号种型号PC的厂商的厂商lR6 (maker):=l R1. maker(R1 R2 R3 R4)lR1.maker=R2.maker AND R1.modelR2.model l R2
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 提高公司财务团队服务水平的培训计划
- 提升前台沟通技巧的工作计划
- 医院财务管理优化的策略与效果计划
- 学习资源共享平台建设计划
- 《贵州创泰矿业有限公司修文县龙场镇高仓老二洞铝铁矿山矿产资源绿色开发利用方案(三合一)》专家组评审意见
- 第二单元课题2氧气-教学设计-2024-2025学年九年级化学人教版上册
- 2025年镇江道路运输从业资格证模拟考试年新版
- 2025年湖州资格证模拟考试
- 2025年湖北货车资格证考试题
- 2025年辽阳货运从业资格证模拟考试下载题
- 班组长安全管理培训课件
- 增强CT检查流程
- 水利行业知识培训课件
- 2025年春新外研版(三起)英语三年级下册课件 Unit5第1课时Startup
- 2024年扬州工业职业技术学院单招职业适应性测试试题库(含答案)
- 2025-2030年中国人力资源服务行业全国市场开拓战略制定与实施研究报告
- 2024年池州职业技术学院单招职业技能测试题库标准卷
- 事故隐患内部报告奖励机制实施细则
- 事业单位考试(公共基础知识)3000题每日练习
- 《CT、MR的临床应用》课件
- 2025农村鱼塘承包合同书
评论
0/150
提交评论