当前位置:首页 » 数据仓库 » 数据库上机考试期末
扩展阅读
webinf下怎么引入js 2023-08-31 21:54:13
堡垒机怎么打开web 2023-08-31 21:54:11

数据库上机考试期末

发布时间: 2022-08-02 06:32:56

① 高起专数据库技术及应用期末考试综合题第4题。请各路大神施以援手!!!!

1 pai部门编号,职务(sigma姓名=’王小毛’ (员工))
2 pai项目名称,员工姓名(员工|><|项目|><| sigma工时>=100(施工))
3 select 姓名 from 员工 order by 职称 desc
4 select 员工编号, sum(工时) 总工时 from 施工 group by 员工编号
5 select 姓名, 部门名称
from 施工,员工,部门,项目
where 员工.部门编号=部门.部门编号 and 员工.员工编号=施工.员工编号 and 施工.项目编号=项目.项目编号 and 职称='高级工程师' and 预算>100000000
group by 姓名, 部门名称 having count(*)>=1
6 create view 工作量 as
select 员工.员工编号,姓名,项目名称,工时
from 施工,员工,项目
where 员工.员工编号=施工.员工编号 and 施工.项目编号=项目.项目编号
7 update 施工 set 工时=工时+50 where 项目编号 in (select 项目编号 from 项目 where 项目名称='高教新区项目')

② 国四数据库上机考试考试

我前年浙江考的,没有上机

③ 数据库期末考试题 编写sql语句 1.创建一张学生表,包含以下信息,学号,姓名,年龄,性别,家庭住址,联系

create table 学生表
(
学号 char(10) primary key,
姓名 char(10),
年龄 int,
性别 char(2) check (sex IN ('男','女')),
家庭住址 char(40),
联系 char(20)
)

④ 数据库期末考试

如下 (PS:简单起见全部使用的varchar2 有些按需要可改成int )
[oracle@rhel3 admin]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.4.0 Proction on Fri Apr 10 13:21:11 2015

Copyright (c) 1982, 2013, Oracle. All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Proction
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> create table student(sno varchar2(10) primary key,sname varchar2(20),ssex char(2),sbirthday varchar2(20),sdept varchar2(20));
Table created.
SQL> create table courses(cno varchar2(10) primary key,cname varchar2(20),ccredit varchar2(10));
Table created.
SQL> create table sc(sno varchar2(10),cno varchar2(10),grade varchar2(10));
Table created.
SQL> alter table sc add constraint pk_sc primary key (sno,cno);
Table altered.

1 select sno,sname from student;
2 select sno,sname,sdept from student;
3 select * from student;
4 select sno,sbirthday from student;
5 select sno,sbirthday,lower(sdept) sdept from student;
6 select sno xingm,sbirthday csrqi,sdept xim from student;
7 select distinct(sno) from student where sno in (select sno from sc where cno in (select cno from courses where cpno is not null));
8 select * from student where sdept='jisuanji';
9 .1 select sname,round(months_between(sysdate,to_date(sbirthday,'yyyy-mm-dd')),0)/12 nianji from student where sbirthday<add_months(sysdate,-12*20);
9.2 select sname,round(months_between(sysdate,to_date(sbirthday,'yyyy-mm-dd')),0)/12 nianji from student where months_between(sysdate,to_date(sbirthday,'yyyy-mm-dd'))/12<20;
10 select distinct(sno) from sc where grade<'60';
未完待续......看的真累
11 select sname,sdept,round(months_between(sysdate,to_date(sbirthday,'yyyy-mm-dd')),0)/12 nianlin from student where months_between(sysdate,to_date(sbirthday,'yyyy-mm-dd'))/12 between 20 and 30;
12 select sname,sdept,round(months_between(sysdate,to_date(sbirthday,'yyyy-mm-dd')),0)/12 nianlin from student where months_between(sysdate,to_date(sbirthday,'yyyy-mm-dd'))/12 <20 or months_between(sysdate,to_date(sbirthday,'yyyy-mm-dd'))/12>30;
13 select sname,ssex from student where sdept in ('xinxi','shuxue','jisuanji');
14 select sname,ssex from student where sdept not in ('xinxi','shuxue','jisuanji');
15 select * from student where sno like '95001%';
16 select sname,sno,ssex from student where sname like 'liu%';
17 select sname from student where sname like 'ouyang%' and length(sname)=6;
18 select sname,sno from sutdent where substr(sname,2,1)='yang';

19 select sname from student where sname not like 'liu%';

20 select cno,ccredit from courses where cname like 'C%';
21 select cno,credit from courses where cname like 'H%' and substr(cname,length(cname)-3,1)='T';
歇会....................
22 select sno,cno from sc where cno in (select cno from courses where cpno is not null) and grade is null;
23 select sno,cno from sc where grade is null;
24 select sname from student where sdept='jisuanji' and (months_between(sbirthday,sysdate)/12)<20;
25 select sname,ssex from student where sdept='jisuanji' or sdept='shuxue' or sdept='xinxi';
26 select sno,grade from sc where cno='3' order by grade desc;
27 select * from student order by sdept asc,sbirthday desc;
28 select count(1) from student;
29 select count(sno) from sc where cno in (select cno from courses where cpno is not null);
30 ...........
PS : courses 那个表好像建表的时候多打了个s

⑤ 计算机三级考试数据库上机考的是什么题型

题型为选择题,填空题,设计与应用题。

三级数据库技术上机考试,120分钟,满分100分。选择题40分,填空题30分,设计与应用题30分;三级数据库技术证书为深蓝暗紫色。

自2018年3月考试起改变三级获证条件要求,考生只需通过三级考试即可获得该三级科目的合格证书,不再要求二级证书。考生早期获得的证书,不严格区分语言程序设计和数据库程序设计,可以直接报考三级。考试时间和形式要求三级考试时间为120分钟;考试形式为无纸化。

(5)数据库上机考试期末扩展阅读:

计算机三级考试要求规定:

1、考生不受年龄、职业、学历等背景的限制,均可根据自己学习情况和实际能力选考相应的级别和科目。

2、考生在考点现场报名时,需出示身份证以及缴纳相关的考试费。考生一定要亲自到场,不能由任何单位、个人代劳。考生按要求进行信息采集,并逐一核实报名表上的个人信息。

3、考生采取网上报名方式,需先在所在省份的网上报名系统注册并填报相关基本信息、上传正面免冠电子近照,然后网上缴费或至指定地点缴费并确认身份信息,完成报名。

⑥ 数据库上机考试、跪求大神 跪求答案、、

1.select sno from spj where sno=j1;
2.select sno from spj where sno=j1 and pno = p1;
3.select sno from spj where sno = j1 and pno in ( select pno from p where color = red)
4.select jno from spj where sno not in ( select sno from s where city = tianjin)
And pno not in ( select pno from p where color = red)
5.select sname city from s
6.select PNAME,COLOR,WEIGHT from p;
7.select jno from spj where sno = s1;
8. select pname ,qty from spj as a ,p as b where a.pno = b.pno and jno = j2
9. select pno from s , spj where s.no = spj.sno and city = shanghai;
10. select jno from s , spj where s.no = spj.sno and city = shanghai
11.select jno from s , spj where s.no = spj.sno and city ! = tianjin

⑦ 数据库期末是笔试还是上机考

大部分学校的考试是笔试,数据库也不例外,有部分是学校的考试是在线考试,这个要看情况。