WORD格式--专业学习资料分享
第一章
一、选择题 A C D A
二、填空题
1.层次、网状、关系、关系
2.数据结构、数据操作、完整性约束
3.模式、外模式、外模式/模式映象、模式/内模式映象 4.选择、投影、连接 5.水平、垂直 6.实体、域、参照 7.一张二维表、行、列 8.插入、修改、删除 9.客户、浏览器
---------------------------------------------------------------------------------------------------------------------- 第二章
一、选择题 B D C
二、填空题
1.跟班作业、开调查会、业务询问、问卷调查、查阅资料 2.自顶向下、自底向上
3.需求分析、概念、逻辑、物理 4.自顶向下、自底向上、混合策略 5.一对一、一对多、多对多
三、判断题 T T T F
---------------------------------------------------------------------------------------------------------------------- 第三章
一、填空题
1.本地系统 域用户
2.Windows身份验证模式 混合模式 3.默认选项 下一步
4.查询分析器 服务管理器 企业管理器 5.开始/继续 停止
6.服务器组 服务器 登录和用户 7.创建,修改 查询 增加 修改 删除 8.技术文档 使用说明
---------------------------------------------------------------------------------------------------------------------- 第四章
一、填空题
1.Bigint、int、smallint、tinyint、-21亿 21亿
-
WORD格式--专业学习资料分享
2.money、-21、21、万
3.datetime、1900.1.1、2079.12.31、分钟 4.8
5.@、@@ 6.单、单 7.$、N、0x
8.17、-215、13.4400、-18.4560 9.66 C 7
10.BEAUTIFUL beautiful 11.9876 狼是你
12.我心中的太阳 我心中的月亮 13.by 百岁不是梦 百岁
14.1931 7 14 2009-01-12 19:24:55.543 15.7 7 1 985 2015 16.35
17.减(-) 乘(*) 除(/) 取余(%)
18.等于(=) 不等于(<>) 小于(<) 小于等于(<=) 大小 相同与否 19.字符串联接、比较、逻辑
20.近似数值、日期时间、字符与二进制、特殊
三、设计题
(1) select dateadd(day,100,getdate()) as '今天后100天是' select getdate()+100 as '今天后一百天是'
(2)select datediff(year,'19880101',getdate())
select datepart(year,getdate())-datepart(year,'19850101') select datediff(month,'2008-6-1',getdate())
select (year(getdate())-year('2008-6-1'))*12+(month(getdate())-month('2008-6-1'))
(3) A: declare @代码 int declare @学位名称 nchar(2) set @代码=1 set @学位名称= case
when @代码=1 then '博士' when @代码=2 then '硕士' when @代码=3 then '学士' end
print @学位名称
B: declare @代码 int
declare @学位名称 nchar(2) set @代码=1 set @学位名称= case @代码
-
WORD格式--专业学习资料分享
when 1 then '博士' when 2 then '硕士' when 3 then '学士' end
print @学位名称
(4) declare @i int,@s bigint set @i=1 set @s=1 while @i<20 begin
set @s=@s*@i set @i=@i+1 end
print '20!='+str(@s,20)
(5) declare @xh int,@cj bigint,@zh int set @xh=1 set @cj=1 set @zh=0 while @xh<21 begin
if @xh%2=0
set @cj=@cj*@xh else
set @zh=@zh+@xh set @xh=@xh+1 end
print '1到20的之和是'+str(@zh) print '1到20的乘积是'+str(@cj)
---------------------------------------------------------------------------------------------------------------------- 第五章
一、选择题 C C A
二、填空题
1.master tempdeb model pubs
2.主文件 mdf 次要文件 ndf 事务日志文件 ldf 3.表、视图、存储过程 4.alter drop datebase 5.insert update delete
四、设计题
1.创建表(以创建学院信息表为例,其它略)
-
WORD格式--专业学习资料分享
use 教学成绩管理数据库 go
create table 学院信息表 (编号 char(2) primary key, 名称 nchar(20) no null, 简称 nchar(10) no null, 院长 nchar(4), 书记 nchar(4) )
9.Drop table 学院信息表
10.Drop datebase 教学成绩管理数据库
---------------------------------------------------------------------------------------------------------------------- 第六章
一、选择题 A B B D C
二、填空题 1.Select
2.INTO FROM WHERE GROUP BY COMPUTE ORDER BY 3.max() min() avg() sum() 4.条件 5.模糊
6.视图 虚拟表(查询表)
四、设计题
1. use 教学成绩管理数据库 go
select *
from 学生信息表
where datediff(year,出生日期,getdate())=25 or datediff(year,出生日期,getdate())=27 order by 出生日期
2. use 教学成绩管理数据库 go
select *
from 学生信息表
where (datediff(year,出生日期,getdate())=25 or datediff(year,出生日期,getdate())=27)and 性别='男'
order by 出生日期
3. use 教学成绩管理数据库 go
select *
from 学生信息表
where datediff(year,出生日期,getdate())>25 and datediff(year,出生日期,getdate())<28 order by 出生日期
-
相关推荐: