摘要: 题目描述: 获取员工其当前的薪水比其manager当前薪水还高的相关信息,当前表示to_date='9999-01-01',结果第一列给出员工的emp_no,第二列给出其manager的manager_no,第三列给出该员工当前的薪水emp_salary,第四列给该员工对应的manager当前的薪水 阅读全文
posted @ 2020-09-30 11:41 Python小白白 阅读(144) 评论(0) 推荐(0)
摘要: 题目描述: 获取所有非manager员工当前的薪水情况,给出dept_no、emp_no以及salary ,当前表示to_date='9999-01-01' 1 CREATE TABLE `dept_emp` ( 2 `emp_no` int(11) NOT NULL, 3 `dept_no` ch 阅读全文
posted @ 2020-09-30 11:39 Python小白白 阅读(187) 评论(0) 推荐(0)
摘要: 题目描述: 对所有员工的当前(to_date='9999-01-01')薪水按照salary进行按照1-N的排名,相同salary并列且按照emp_no升序排列 1 CREATE TABLE `salaries` ( 2 `emp_no` int(11) NOT NULL, 3 `salary` i 阅读全文
posted @ 2020-09-30 11:37 Python小白白 阅读(194) 评论(0) 推荐(0)
摘要: 题目描述: 统计各个部门的工资记录数,给出部门编码dept_no、部门名称dept_name以及部门在salaries表里面有多少条记录sum 1 CREATE TABLE `departments` ( 2 `dept_no` char(4) NOT NULL, 3 `dept_name` var 阅读全文
posted @ 2020-09-30 11:35 Python小白白 阅读(371) 评论(0) 推荐(0)
摘要: 题目描述: 查找所有员工自入职以来的薪水涨幅情况,给出员工编号emp_no以及其对应的薪水涨幅growth,并按照growth进行升序 (注:可能有employees表和salaries表里存在记录的员工,有对应的员工编号和涨薪记录,但是已经离职了,离职的员工salaries表的最新的to_date 阅读全文
posted @ 2020-09-30 11:33 Python小白白 阅读(286) 评论(0) 推荐(0)
摘要: 题目描述: 查找员工编号emp_no为10001其自入职以来的薪水salary涨幅(总共涨了多少)growth(可能有多次涨薪,没有降薪) 1 CREATE TABLE `salaries` ( 2 `emp_no` int(11) NOT NULL, 3 `salary` int(11) NOT 阅读全文
posted @ 2020-09-30 11:31 Python小白白 阅读(189) 评论(0) 推荐(0)
摘要: 题目描述: 查找所有员工的last_name和first_name以及对应的dept_name,也包括暂时没有分配部门的员工 1 CREATE TABLE `departments` ( 2 `dept_no` char(4) NOT NULL, 3 `dept_name` varchar(40) 阅读全文
posted @ 2020-09-30 11:29 Python小白白 阅读(282) 评论(0) 推荐(0)
摘要: 题目描述: 查找当前薪水(to_date='9999-01-01')排名第二多的员工编号emp_no、薪水salary、last_name以及first_name,你可以不使用order by完成吗 1 CREATE TABLE `employees` ( 2 `emp_no` int(11) NO 阅读全文
posted @ 2020-09-30 11:27 Python小白白 阅读(363) 评论(0) 推荐(0)
摘要: 题目描述: 获取当前(to_date='9999-01-01')薪水第二多的员工的emp_no以及其对应的薪水salary 1 CREATE TABLE `salaries` ( 2 `emp_no` int(11) NOT NULL, 3 `salary` int(11) NOT NULL, 4 阅读全文
posted @ 2020-09-30 11:23 Python小白白 阅读(127) 评论(0) 推荐(0)
摘要: 题目描述: 统计出当前(titles.to_date='9999-01-01')各个title类型对应的员工当前(salaries.to_date='9999-01-01')薪水对应的平均工资。结果给出title以及平均工资avg。 1 CREATE TABLE `salaries` ( 2 `em 阅读全文
posted @ 2020-09-30 11:21 Python小白白 阅读(363) 评论(0) 推荐(0)