![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
database
文章平均质量分 82
main1234567
这个作者很懒,什么都没留下…
展开
-
Oracle day2
显示部门编号、部门名字、该部门的员工数、每个部门的平均工资,部门负责人信息,包括姓名、薪水、职业;平均工资保留2位小数,千分位分隔符显示;结果按部门升序 SELECT d.department_id, d.department_name, count(e1.employee_id) employees, NVL(TO_CHAR(AVG(e1.salary...原创 2018-07-18 20:10:41 · 266 阅读 · 0 评论 -
Oracle day3
显示所有在欧洲区域工作的员工,显示他们的部门,姓名,岗位,薪资,国籍,结果按照国籍升序,薪资降序排列 select d.department_name, e.last_name, e.job_id, e.salary, c.country_name from employees e, departments d, locations l, regions r, cou...原创 2018-07-18 20:46:47 · 236 阅读 · 0 评论 -
Oracle day4
显示工资涨幅,员工编号,原来的工资和增加的工资: 部门号10、50、110的有5%的涨幅,部门号为60的涨10%的工资部门号为20和80涨幅为15%,部门为90的不涨工资 select round(aa*100,2)||'%raise' as raise,employee_id, salary, aa * salary as new_salary from (select employee...原创 2018-07-19 20:48:21 · 386 阅读 · 0 评论 -
Oracle四个正则表达式相关函数
1. regexp_like(expression, regexp) 返回值为一个布尔值。如果第一个参数匹配第二个参数所代表的正则表达式,那么将返回真,否则将返回假。 举例: select * from people where regexp_like(name, '^J.*$'); 相当于: select * from people where name lik...原创 2018-07-20 10:50:12 · 1169 阅读 · 0 评论