收藏 分享(赏)

PMAC专用学习.ppt

上传人:hwpkd79526 文档编号:9516181 上传时间:2019-08-12 格式:PPT 页数:2 大小:99KB
下载 相关 举报
PMAC专用学习.ppt_第1页
第1页 / 共2页
PMAC专用学习.ppt_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

1、dbParts GroupID PartID PartDescription,dbGroups GroupID GroupDescription,Database Diagram The purchasing department use the following tables to manage pricing information for parts.,dbVendors VendorID VendorName,dbPartsVendors VendorID PartID LastPrice LastUpdate,Question should be answer with Trans

2、act-SQL statement example: “Select * From dbGroups”Write a relation diagram for the tables Show all parts with pricing for VendorID=2543 Show all groups for VendorID=2543 Show all parts with PartDescription contains keyword “red” Show all parts for VendorName contains keyword “a/c” Delete all parts

3、for GroupID=67 and VendorID=2543 Show price comparison for GroupID=66 and VendorID=2543 Show price comparison for GroupID=66 and all vendor sorter by VendorID ascendant and LastPrice descendent Update LastPrice by 10% for VendorID=1342 and LastUpdate were before December 15, 2009 Update LastPrice by

4、 15% for GroupID=67 and VendorName contains keyword “a/c” and PartDescription contains keyword “red”* Please answer in the next page and send it back within 60min, the shortest time the better to consider.,1.dbGroupsGroupIDdbPartsPartID-dbPartsVendorsdbVendors 2.select * from dbParts Where partID=(s

5、elect PartID from dbPartsVendors where VendorID=2543) select * from dbGroups where GroupID=(select GroupID from dbparts where PartID=(select PartID from dbPartsVendors where VendorID=2543) 4.select * from dbParts where PartDescription like %red% 5.select * from dbVendors where VendorName like %a/c% 6.delete from dbVendors where VendorID=2543 and GroupID=(select GroupIDfrom dbPartswhere GroupID=67) 9.update dbPartsVendors set LastPrice=LastPrice*(1+10%) where LastUpdate top December 15, 2009 10.update dbPartsVendors set LastPrice=LastPrice*(1+15%),

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 企业管理 > 管理学资料

本站链接:文库   一言   我酷   合作


客服QQ:2549714901微博号:道客多多官方知乎号:道客多多

经营许可证编号: 粤ICP备2021046453号世界地图

道客多多©版权所有2020-2025营业执照举报