Skip to content

Commit

Permalink
更新了数据库部分的文档和代码
Browse files Browse the repository at this point in the history
  • Loading branch information
jackfrued committed Jun 4, 2019
1 parent c6666f4 commit 0953c5e
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 5,081 deletions.
28 changes: 4 additions & 24 deletions Day36-40/code/HRS_create_and_init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ insert into tb_emp values
(3588, '朱九真', '会计', 5566, 2500, null, 10);


-- 查询薪资最高的员工姓名和工资
-- 查询月薪最高的员工姓名和工资

-- 查询员工的姓名和年薪((月薪+补贴)*12)
-- 查询员工的姓名和年薪((月薪+补贴)*13)

-- 查询有员工的部门的编号和人数

-- 查询所有部门的名称和人数

-- 查询薪资最高的员工(Boss除外)的姓名和工资
-- 查询月薪最高的员工(Boss除外)的姓名和工资

-- 查询薪水超过平均薪水的员工的姓名和工资

Expand All @@ -69,24 +69,4 @@ insert into tb_emp values

-- 查询主管的姓名和职位

-- 查询薪资排名4~6名的员工姓名和工资

-- use hrs;

-- drop procedure if exists sp_avg_sal_by_dept;


-- create procedure sp_avg_sal_by_dept(dno integer, out avg_sal float)
-- begin
-- select avg(sal) into avg_sal from tb_emp where dno=dno;
-- end;




-- call sp_avg_sal_by_dept(10, @avgSal);

-- select @avgSal;



-- 查询月薪排名4~6名的员工姓名和工资
15 changes: 0 additions & 15 deletions Day36-40/code/bank_create_and_init.sql

This file was deleted.

46 changes: 0 additions & 46 deletions Day36-40/code/booksys_create_and_init.sql

This file was deleted.

File renamed without changes.
253 changes: 0 additions & 253 deletions Day36-40/code/fangtx_create.sql

This file was deleted.

Loading

0 comments on commit 0953c5e

Please sign in to comment.