Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Kiryuu Sakuya
Database-school
Commits
99016745
Verified
Commit
99016745
authored
Nov 12, 2019
by
Kiryuu Sakuya
🎵
Browse files
Add No.4
parent
26389b99
Changes
1
Hide whitespace changes
Inline
Side-by-side
实验四.md
0 → 100644
View file @
99016745
# 实验四
## 名词解释
## 预想的表结构
### 示例代码
#### 1. 查找所有经理的员工编号、姓名、薪水
```
mysql
SHOW FULL COLUMNS FROM employee;
SELECT emp_no, emp_name, emp_salary FROM employee WHERE emp_title LIKE "%经理%";
```
#### 2. 查找出姓“张”并且姓名最后一个字为“鸣”的员工
#### 3. 查找住在广州或北京的女员工,并显示其姓名、所属部门 、职称、住址
#### 4. 在表 sales 中跳出销售金额大于等于 100 元订单
#### 5. 选取订单金额最高的的前 10% 的订单数据
#### 6. 查找出职称为经理或职称为会计的女员工的信息
#### 7. 删除 sales 表中作废的订单(其发票号码为 34600376)
> 注意约束!
#### 8. 计算出一共销售了几种产品
#### 9. 显示 sale_item 表中每种个别产品的订购金额总和,并且一句销售金额由大到小排列来显示出每一种产品的排行榜
#### 10. 计算每一产品每月的销售金额综合,并将结果按销售月份及产品编号排序
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment