2014年电大数据库应用考题汇总小抄.doc_第1页
2014年电大数据库应用考题汇总小抄.doc_第2页
2014年电大数据库应用考题汇总小抄.doc_第3页
2014年电大数据库应用考题汇总小抄.doc_第4页
2014年电大数据库应用考题汇总小抄.doc_第5页
已阅读5页,还剩16页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

专业好文档1、数据库处理技术经历了人工管理、文件管理、数据库管理以及分布式数据库管理等四个发展阶段2、在人工管理和文件管理阶段,程序设计不能独立数据表示3、在文件管理阶段,文件之间是相互独立的,在数据库管理阶段,文件之间是相互联系的4、使用数据库设计程序时只需要告诉数据库管理系统做什么,不需要告诉它如何做5、在文件系统中,数据没有独立的操作界面,在数据库系统中,数据具有独立的操作界面6、dbms具有安全性控制、一致性控制、并发性控制和数据库恢复等管理控制功能7、分布式数据库系统除了具有一般数据库系统的优点之外,还具有系统的可靠性高、地域范围广、数据量大、客户数多等优点8、在实体中能作为码的属性称为主属性,否则称为非主属性9、实体之间的联系类型有三种,分别为1对1,1对多和多对多10若实体a和b是1对多的联系,实体b和c是1对多的联系,则实体a和c是1对多的联系11、若实体a和b是1对多的联系,实体b和c是1对1的联系,则实体a和c是1对多的联系12、在非关系模型中,每个结点代表着一个记录型,每个父子联系代表着1对多联系13、在非关系模型中操作记录的方式是过程式的,在关系模型中,操作记录的方式是集合式的14、关系中的每一行称为一个元组,每一列称为一个属性15、假定一个关系中有n个元组,则某个列的当前全部取值的个数最少为1个,最多为n个16、关系数据库系统具有数据结构单一、采用集合运算、数据完全独立、数学理论支持等优点17、在对象数据模型中,对象具有封装性,继承性和多态性18、数据库管理系统的下层扶持软件是操作系统,上层软件是数据库应用开发工具19、数据库体系结构中包含的三级模式为全局模式、内模式、外模式三种20、在数据库体系结构中,两级数据映象分别是指外模式与模式之间的数据映象与模式与内模式之间的数据映象21、dbms提供数据ddl语句和数据dml语句供用户使用22、在存取数据库的数据的过程中,使用了两个数据缓冲区,分别为系统缓冲区和用户缓冲区23、关系数据模型包括关系数据结构、关系完整性规则、关系运算三个方面24、在一个关系中,不同的列可以对应同一个域,但必须具有不同的列名25、顾客购物的订单和订单明细之间是1对多的联系26、主码是一种候选码,主码中的属性个数没有限制27、若一个关系为r(学生号,姓名,性别,年龄),则学生号可以作为该关系的主码,姓名、性别、年龄为该关系的非主属性28、关系完整性包括实体完整性、参照完整性、用户定义的完整性三个方面29、在参照和被参照的关系中,每个外码值或者为空值,或者等于某个主码值30、传统的集合运算包括并、交、笛卡儿积、差四种31、设一个关系a具有a1个属性和a2个元组,关系b具有b1个属性和b2个元组,则关系ab具有a1+b1个属性和a2b2个元组32、设一个关系模式为r(a,b,c),对应的关系内容为r=1,10,50,2,10, 60,3,20,72,4,30,60,则b15(r)属于选择运算,运算结果中包含有2个元组33、设一个关系模式为r(a,b,c),对应的关系内容为r=1,10,50,2,10,60, 3,20,72,4,30,60,则r=10 and 数量all(select avg(单价) from商品表1) 4从商品库中查询出比所有商品单价的平均值要高的全部商品 select 商品库1. x,产地 from商品表1,商品2 where 商品表1,商品代号=商品表2,商品代号and产地 in (select 产地from 商品表1.x,商品表2.ywhere x, 商品代号=y,商品代号group by 产地 having count (*)=1)5从商品库中查询出同一产地的商品只有一种的所有商品select 商品表1,*,产地from 商品表1,商品表2where商品表1.商品代号=商品表2.商品代号and产地in(select产地from商品表1x,商品表2y where x.商品代号=y.商品代号group by产地having count(*)=1)6从教学库中查询出至少选修了姓名为m1学生所选课程中一门课的全部学生select *from 学生xwhere x,姓名=m1 and exists(select y,课程名 from 选课where y,学生号=x,学生号 and y. 课程=and (select w,课程 from 学生z,选课 w where z,学生号=w. 学生号 and z,姓名=m1)6从商品库中查询出每种商品的商品代号、单价、数量和产地 select商品表1.商品代号,单价,数量,产地from 商品表1,商品表2 where商品表1.商品代号=商品表2.商品代号7从商品库中查询出数量在10和20之间的商品种数 select * from 商品表1 where数量 between 10 and 20 (或where 数量=10 and 数量=2000 or 数量=1510从商品库中查询出比所有商品单价的平均值要高的全部商品 select * from商品表1 where单价all(select avg(单价) from商品表1)11从商品库中查询出同一类商品多于一种的所有分类名 select distinct分类名from商品表1group by 分类名 having count(*)112从商品库中查询出每种商品的总价值,并按降序排列出来select *,单价*数量 as 总价值from商品表1order by 总价值 desc按照下列所级的每条sql查询语句写出相应的功能1select x.商品代号,分类名,数量,品牌 from 商品表1x,商品表2y where x. 商品代号=y,商品代号从商品库中查询出每一个商品代号,分类名,数量,品牌等信息2select 课程.课程号,课程.课程名,count(*)as选课人数 from 课程,选课 where 课程.课程号=选课.课程号 group by 课程.课程号,课程.课程名从教学库中查询出每门课程被选修的学生数3 select distinct 品牌 from 商品表2从商品库中查询出所有商品的不同品牌4select x. 学生号,y. 学生号,y. 课程号 from 选课x.,选课y where x. 学生号=s1 and y. 学生号=s2 and x. 课程号=y. 课程号从教学库中查询出学生号=s1的学生和学生号=s2的学生所选修的共同课程号5select *from 课程where exists(select * from 选课 where 课程. 课程号=选课. 课程号从教学库中查询所有已被学生选修的课程6select * from 学生 where 学生号 in(select 学生号 from 选课 group by 学生号 having count (*)=2 )or not exists (select *from 选课 where 学生. 学生号=选课. 学生号)从教学库中查询出最多选修了2门课程(包括未选课)的所有学生7select * from 学生 where not exist (select y. 课程号 from 学生x inner join 选课y on x. 学生号=y. 学生号 where x. 姓名=a and not exists (select * from 选课 where 学生.学生号=选课.学生号and y.课程号=选课.课程号)从教学库中查询出选修了姓名为a的学生的全部选课的所有学生8select x. *,课程名,课程学分,成绩 from 学生 x,课程y,选课z where x. 学生号=z. 学生号and y. 课程号=z. 课程号 order by x. 学生号,z. 成绩从教学库中查询出所有学生所选课程的课程名、课程学分及成绩按学生号升序排列结果9.select x.商品代号,分类名,产地,品牌 from 商品表1x,商品表2y where x. 商品代号=y,商品代号and(品牌=熊猫or 品牌=春兰)从商品库中查询出品牌为熊猫或春兰的所有商品的商品代号、分类名、产地和品牌10.select x.商品代号,分类名,数量,品牌 from 商品表1x,商品表2y where x.商品代号=y.商品代号从商品库中查询出每一个商品代号,分类名,数量,品牌等信息11. select distinct 品牌 from 商品表2从商品库中查询出所有商品的不同品牌12.select 课程.课程号,课程.课程名,count(*)as选课人数 from 课程,选课 where 课程.课程号=选课.课程号 group by 课程.课程号,课程.课程名从教学库中查询出每门课程被选修的学生数13.select *from 学生where 学生号 in(select 学生号 from 选课 group by 学生号 having count (*)=1)从教学库中查询出只选修了一门课程的全部学生14.select x.* from 课程x,选课y where x. 课程号=y.课程号 and y. 学生号=s1 and y. 课程号 not in (select 课程号from 选课 where 选课.学生号=s2从教学库中查询出学生号为s1的学生所选修、而学生号为s2的学生没有选修的全部课程15.select * from 课程 where exists (select *from 选课 where 课程.课程号=选课.课程号)从教学库中查询出所有已被学生选修的课程16.select * from 学生 where exist (select *from 选课 where 学生.学生号=选课.学生号group by 选课.学生号 having count (*)=3)从教学库中查询出同时选修了3门课程的全部学生17.select 专业,count(*)as专业人数 from 学生 group by 专业 order by 专业人数 desc从教学库中查询出每个专业的学生人数,并按人数多少降序排列18.select x.*,课程名,课程学分,成绩 from 学生x,课程y,选课z where x.学生号=z.学生号and y.课程号=z.课程号 order by x.学生号,z.成绩从教学库中查询出每个学生选课的全部情况,并依次按学生号和成绩排序if we dont do that it will go on and go on. we have to stop it; we need the courage to do it.his comments came hours after fifa vice-president jeffrey webb - also in london for the fas celebrations - said he wanted to meet ivory coast international toure to discuss his complaint.cska general director roman babaev says the matter has been exaggerated by the ivorian and the british media.blatter, 77, said: it has been decided by the fifa congress that it is a nonsense for racism to be dealt with with fines. you can always find money from somebody to pay them.it is a nonsense to have matches played without spectators because it is against the spirit of football and against the visiting team. it is all nonsense.we can do something better to fight racism and discrimination.this is one of the villains we have today in our game. but it is only with harsh sanctions that racism and discrimination can be washed out of football.the (lack of) air up there watch mcayman islands-based webb, the head of fifas anti-racism taskforce, is in london for the football associations 150th anniversary celebrations and will attend citys premier league match at chelsea on sunday.i am going to be at the match tomorrow and i have asked to meet yaya toure, he told bbc sport.for me its about how he felt and i would like to speak to him first to find out what his experience was.uefa hasopened disciplinary proceedings against cskafor the racist behaviour of their fans duringcitys 2-1 win.michel platini, president of european footballs governing body, has also ordered an immediate investigation into the referees actions.cska said they were surprised and disappointed by toures complaint. in a statement the russian side added: we found no racist insults from fans of cska.baumgartner the disappointing news: mission aborted.the supersonic descent could happen as early as sunda.the weather plays an important role in this mission. starting at the ground, conditions have to be very calm - winds less than 2 mph, with no precipitation or humidity and limited cloud cover. the balloon, with capsule attached, will move through the lower level of the atmosphere (the troposphere) where our day-to-day weather lives. it will climb higher than the tip of mount everest (5.5 miles/8.85 kilometers), drifting even higher than the cruising altitude of commercial airliners (5.6 miles/9.17 kilometers) and into the stratosphere. as he crosses the boundary layer (called the tropopause),e can expect a lot of turbulence.the balloon will slowly drift to the edge of space at 120,000 feet ( then, i would assume, he will slowly step out onto something resembling an olympic diving platform.below, the earth becomes the concrete bottom of a swimming pool that he wants to land on, but not too hard. still, hell be traveling fast, so despite the distance, it will not be like diving into the deep end of a pool. it will be like he is diving into the shallow end.skydiver preps for the big jumpwhen he jumps, he is expected to reach the speed of sound - 690 mph (1,110 kph) - in less than 40 seconds. like hitting the top

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论