2020年新版SQL语句上机题.docxVIP

  • 17
  • 0
  • 约6.01千字
  • 约 10页
  • 2020-10-11 发布于天津
  • 举报
PAGE PAGE # / 10 习题6.1.3:使用习题521中提供的数据库模式用SQL语句写出后面的查 询,并使用习题 5.2.1 提供的资料写出查询结果。 Product(marker, model, type) PC(model, speed, ram, hd, rd, price) Laptop(model, speed, ram ,hd, screen, price) Printer(model, color, type, price) a)找出所有价格在$1200以下的PC机的型号、速度和硬盘大小。 Select model,speed,hd From pc Where piece1200 b)要求同(a),但是重命名列speed为megahertz以及列hd为gigabytes。 select model,speed as megahertz,hd as gigabytes from pc where price1200 找出所有打印机制造厂商。 select distinct maker from product where type= printer 找出价格在$2000以上的手提电脑的型号、内存大小和屏幕尺寸。 select model,ram,screen from laptop where price2000 * e) 找出关系 Printe

文档评论(0)

1亿VIP精品文档

相关文档