客户和某商业银行签订了保证收益理财计划,则()。
A. 该银行根据约定情况向客户承诺支付固定收益并承担风险
B. 该银行根据约定情况向客户承诺支付最高收益并承担风险
C. 该银行根据约定条件保证客户的收益率
D. 该产品中高于银行同期储蓄存款利率的保证收益不附带条件
第1题
根据SQL标准,查询表student(sno,sname,sex,dept)中所有学生的选修课程数,其中选修记录在表SC(sno,cno,grade)中,两表中sno为关联字段。下面哪条语句合适?()
A select sno,count(cno) from SC
B select sno,count(cno) from student
C select a.sno,count(cno) from student a left outer join SC
D select a.sno,count(cno) from SC left outer join student a
第2题
在student表sno字段上添加主键约束,正确的SQL语句是()
A alter table student add constraint pk_sno primary key (sno)
B alter table student add primary key (sno)
C alter table student add sno primary key
D alter table student add pk_sno primary key()
第3题
根据SQL标准,下面哪句语句能够找出年龄最小的同学?其中age为学生表student中的年龄字段,sno为学生的学号。()
A select max(age) from student
B select sno from student where age = max(age)
C select sno from student having age = max(age)
D select sno from student a where a.age<= (select min(b.age) from student b)
第4题
A select max(age) from student
B select sno from student where age = max(age)
C select sno from student having age = max(age)
D select sno from student a where a.age<= (select min(b.age) from student b)
第5题
根据SQL标准,删除一个表,应该使用下面哪个语句?()
A DELETE TABLE
B DROP TABLE
C DELETE VIEW
D DROP DATABASE
第6题
A.删除student表
B.删除student字段
C.删除student表中的记录
D.删除student数据库
第7题
A delete from student
B delete all from student
C delete * from student
D drop table student
第8题
根据SQL标准,要查询表student中所有年龄age小于所有学生的平均年龄的记录,下面哪条语句适用?()
A select * from student where age< avg(age)
B select * from student having age< avg(age)
C select * from student a where a.age< (select avg(b.age) from student b)
D select * from student a where (select avg(b.age) from student b ) >= a.age
第9题
根据实验要求和实验内容,完成下列语句 1) 将数据库stu的表course的cno字段定义为主键,约束名称为cno_pk; 2) 为表course中的字段cname添加唯一值约束; 3) 对于数据表sc的sno、cno字段定义为外码,使之与表student的主码sno及表course的主码cno对应,实现如下参照完整性: l 删除student表中记录的同时删除sc表中与该记录sno字段值相同的记录; l 修改student表某记录的sno时,若sc表中与该字段值对应的有若干条记录,则拒绝修改; l 修改course表cno字段值时,该字段在sc表中的对应值也应修改; l 删除course表一条记录时,若该字段在在sc表中存在,则删除该字段对应的记录; l 向sc表添加记录时,如果该记录的sno字段的值在student中不存在,则拒绝插入; 4)定义check约束,要求学生学号sno必须为9位数字字符,且不能以0开头,第二三位皆为0; 5)定义stu数据库中student表中学生年龄值在16~25范围内; 6)删除表course中字段cname的唯一值约束; 7) 为表course建立一个 INSERT触发器,当插入的新行中课程学分(ccredit)的值不是1~6时,就激活该出发器,撤销该插入操作,并使用PRINT语句返回一个错误信息。 8)为course表再创建一个UPDATE触发器,当更新了某门课程的课程号信息时,就激活该触发器级联更新sc表中相关的课程号信息,并使用PRINT语句返回一个提示信息。 9)为student表创建DELETE触发器,在删除中的一条记录的同时将sc表中的相应记录也删除。 10)创建INSTEAD OF触发器,当向sc表中插入记录时,先检查sno列上的值在student中是否存在,如果存在执行插入操作,如果不存在则提示“该学生不存在”。
第10题
A insert into student sdate char(7)
B add sdate char(7) to student
C append sdate varchar(7) to table student
D alter table student add sdate varchar(7)
E alter table student add sdate char(7)
F alter table student modify sdate char(7)
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!