云南大学软件学院数据库实验4..docVIP

  • 41
  • 0
  • 约4.94千字
  • 约 11页
  • 2016-12-24 发布于重庆
  • 举报
云南大学软件学院 实验报告 : 姓名: 成绩: 实验4 数据查询 一、实验目的 理解T-SQL语言的使用;熟练掌握数据查询语句;掌握合计函数的使用。 二、实验内容 1、CAP数据库的查询(记录每个查询的SQL语句和查询结果) (1)建立CAP数据库,输入C、A、P、O四张表; 图表 1 创建cap数据库 图表 2创建四个表 图表 3向表中插入数据 图表 4表的内容 (2)完成课后习题[3.2]b、[3.5]、[3.8]a,b、[3.11]b,f,j,l [3.2] (b)Retrieve aid values of agents who receive the maximum percent commission. 图表 5最高佣金百分率 [3.5] Consider the problem to find all (cid, aid) pairs where the customer does not place an order through the agent. This can be accomplished with the Select statement select cid, aid from customers c. agents a where not exists

文档评论(0)

1亿VIP精品文档

相关文档