- 博客(9)
- 收藏
- 关注
原创 【SQL解惑】谜题21:飞机与飞行员
一、创建表与插入数据create table PilotSkills(pilot char(15) not null,plane char(15) not null,primary key (pilot, plane))insert into PilotSkillsvalues ('Celko', 'Piper Cub'),
2017-12-12 22:48:37 446
原创 【SQL解惑】谜题20:测验结果
一、创建表并插入数据create table TestResults(test_name char(20) not null,test_step integer not null,comp_date date,primary key (test_name,test_step))insert into TestResults(test_name
2017-12-12 22:47:56 307
原创 【SQL解惑】谜题19:销售冠军
一、创建和查询语句createtable SalesData(district_nbrinteger not null,sales_personchar(10)notnull,sales_idinteger not null,sales_amtdecimal(5,2)not null)ins
2017-12-12 22:47:22 397
原创 【SQL解惑】谜题18:广告信件
一、创建并插入数据create table Consumers(con_name varchar(20) not null,address varchar(10)not null,con_id int not null,fam int)insert into Consumers(con_name,address,con_id,
2017-12-12 22:46:50 223
原创 【SQL解惑】谜题15:找出最近两次工资
解惑一:1、创建表和插入数据create table Salaries(emp_name char(10) not null,sal_date date not null,sal_amt decimal (8,2) not null,primary key (emp_name,sal_date))insert into
2017-12-12 22:46:03 720
原创 【SQL解惑】谜题14:电话
解惑一:1、创建表和插入数据createtable Personnel(emp_idinteger primary key,first_namechar(20)not null,last_namechar(20)not null)createtable Phones(emp_id
2017-12-02 22:33:14 373
原创 【SQL解惑】谜题13:教师
解惑一:1、创建数据createtable Register(course_nbrinteger not null,student_namechar(10)not null,teacher_namechar(10)not null)insertinto Register(course_n
2017-12-02 22:32:44 338
原创 【SQL解惑】谜题12:索赔状态
解惑一:1、创建表和插入数据源createtable Claims(claim_idint not null primary key,patient_namevarchar(10))createtable Defendants(claim_idint not null references Claims
2017-12-02 22:32:06 262
原创 【SQL解惑】谜题11:工作顺序
解惑一:1、创建表并插入数据createtable Projects(workorder_idchar(5)not null,step_nbrinteger not null check (step_nbrbetween 0 and 1000),step_statuschar(1)n
2017-12-02 22:31:23 361
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人