/*绝大多数数据库系统的总体结构,都具有外模式、模式和内模式三级模式结构。
描述数据库中全体数据的全局逻辑结构和特征的是()A、外模式和内模式B、内模式C、模式D、外模式数据管理的文件系统阶段缺点是()A、数据不保存B、数据共享性差冗余大和数据独立性差C、没有专用软件对数据进行管理D、数据分散存取以下问题针对数据库wchst2,其中以以下方式建立表,请使用查询分析器做回答问题. create table student ( --学生信息表sno char (9) primary key , --学号sname char (20) not null , --姓名ssex char (2) null , --性别sage smallint null , --年龄sdept char (20) null --所以系)create table course ( -----课程表cno char (4) primary key not null , --课号cname char (40) null , ---课名cpno char (4) null , ----先行课ccredit smallint null , ---学分foreign key (cpno) references course (cno))create table sc ( ----选修课程表sno char (9) not null , ---学号cno char (4) not null , ---课号grade smallint null , ---成绩primary key (sno,cno) ,foreign key (cno) references course (cno),foreign key (sno) references student (sno))学生"胡睛音"的年龄是( )设关系R和S对应模式的属性为(A,B,C)和(B,C,D)R--------------A B C--------------a1 b1 c2a2 b3 c7a3 b4 c6a1 b6 c6a1 b2 c1a1 b2 c3--------------S--------------B C D--------------b1 c2 d1b2 c1 d1b2 c3 d2--------------则R÷S={ } ,即求R与S除运算的结果A. b1,b2B.a1C.a2D.a3数据库系统中的数据模型通常由()三部分组成A、数据结构、数据操作和完整性约束B、数据定义、数据操作和安全性约束C、数据结构、数据管理和数据保护D、数据定义、数据管理和运行控制以下问题针对数据库wchst2,其中以以下方式建立表,请使用查询分析器做回答问题. create table student ( --学生信息表sno char (9) primary key , --学号sname char (20) not null , --姓名ssex char (2) null , --性别sage smallint null , --年龄sdept char (20) null --所以系)create table course ( -----课程表cno char (4) primary key not null , --课号cname char (40) null , ---课名cpno char (4) null , ----先行课ccredit smallint null , ---学分foreign key (cpno) references course (cno))create table sc ( ----选修课程表sno char (9) not null , ---学号cno char (4) not null , ---课号grade smallint null , ---成绩primary key (sno,cno) ,foreign key (cno) references course (cno),foreign key (sno) references student (sno))选修了2号课程的学生人数是( )五种基本关系代数运算是()A. ∪,-,×,π和σB. ∪,-,∞,π和σC. ∪,∩,×,π和σD. ∪,∩,∞,π和σSQL语言中,SELECT语句的执行结果是( )(2003年1月全国卷)A.属性B.表C.元组D.数据库在数据库三级模式间引入二级映象的主要作用是( )A.提高数据与程序的独立性B.提高数据与程序的安全性C.保持数据与程序的一致性D.提高数据与程序的可移植性在下面给出的内容中,不属于DBA职责的是( )A.定义概念模式B.修改模式结构C.编写应用程序D.编写完整性规则已知R表有8个记录,S表有7个记录。
则以下查询语句select * from R, S其查询结果共有( )个记录。
在数据模型的概念模型中,( )是指客观存在可以相互区别的事物。
它可以是具体的对象,如:一个男学生,一辆汽车等;也可以是抽象的事件,如:一次借书、一声场球赛等。
DB、DBMS和DBS三者之间的关系是( )A.DB包括DBMS和DBSB.DBS包括DB和DBMSC.DBMS包括DB和DBSD.不能相互包括create table s(s# char(6) primary key not null,sname char(8) not null,sex char(2),age integer)今向S表插入如下行时,哪一行可以被插入A、('991001','李明芳','女','23y')B、('990746','张为',NULL,NULL)C、(NULL,'陈道一','男',32)D、('992345',NULL,'女',25)按年龄的降序顺序仅列出所有学生的学号sno,写出相应的SQL语句:( ) CREATE TABLE student (Sno char (9) PRIMARY KEY ,Sname char (20) not NULL ,Ssex char (2) NULL ,Sage smallint NULL ,Sdept char (20) NULL)支持SQL的RDBMS的视图(View)对应于()A. 外模式B. 概念模式C. 内模式D. 存储模式请写出删除基本表Course的SQL语句( )。
以下问题针对数据库wchst2,其中以以下方式建立表,请使用查询分析器做回答问题. create table student ( --学生信息表sno char (9) primary key , --学号sname char (20) not null , --姓名ssex char (2) null , --性别sage smallint null , --年龄sdept char (20) null --所以系)create table course ( -----课程表cno char (4) primary key not null , --课号cname char (40) null , ---课名cpno char (4) null , ----先行课ccredit smallint null , ---学分foreign key (cpno) references course (cno))create table sc ( ----选修课程表sno char (9) not null , ---学号cno char (4) not null , ---课号grade smallint null , ---成绩primary key (sno,cno) ,foreign key (cno) references course (cno),foreign key (sno) references student (sno))所有学生的数据库课程的平均分是( )。
用整数表示create table sc (sno char (9) not null ,cno char (4) not null ,grade smallint null ,primary key (sno,cno) ,foreign key (cno) references course (cno),foreign key (sno) references student (sno))查询既有给定成绩也有未给定成绩的选课的学生学号的SQL语句,请在( )外完形填空。
Select distinct x.sno from sc x,sc yWhere x.sno=y.sno and x.grade is null and (已知R表有3个属性,S表有5个属性。
则以下查询语句select * from R, S其查询结果共有( )个列。
在关系代数中,对一个关系做选择操作后,新关系的元数个数( )原来关系的元素个数。
A、小于B、等于C、大于D、小于或等于数据库管理系统中数据操纵语言DML所实现的操作一般包括()A、查询、插入、修改、删除B、排序、授权、删除C、建立、插入、修改、排序D、建立、授权、修改数据库物理存储方式的描述称为( )A.外模式B.内模式C.概念模式D.逻辑模式以下问题针对数据库wchst2,其中以以下方式建立表,请使用查询分析器做回答问题. create table student ( --学生信息表sno char (9) primary key , --学号sname char (20) not null , --姓名ssex char (2) null , --性别sage smallint null , --年龄sdept char (20) null --所以系)create table course ( -----课程表cno char (4) primary key not null , --课号cname char (40) null , ---课名cpno char (4) null , ----先行课ccredit smallint null , ---学分foreign key (cpno) references course (cno))create table sc ( ----选修课程表sno char (9) not null , ---学号cno char (4) not null , ---课号grade smallint null , ---成绩primary key (sno,cno) ,foreign key (cno) references course (cno),foreign key (sno) references student (sno))名字是"胡睛音"的共选修了多少门课( )设关系R和S的属性个数分别为r和s,则(R×S)操作结果的属性个数为( )A.max(r,s)B.r-sC.r×sD.r+s当关系R和S连接时,能够保留左边关系R的所有元组放到结果关系中的操作是()A. 左外联接B. 右外联接C. 外部并D. 外联接以下建立数据库表Course 命令中被定义为外键的列名是( )。