2个回答
展开全部
select *from db
where age>20 and <50
select *from db
set avg(age) as ‘平均年龄’
select *from db ‘职工姓名’ ,‘职称’, ‘基本工资’
select *from db
select where max(age)
where age>20 and <50
select *from db
set avg(age) as ‘平均年龄’
select *from db ‘职工姓名’ ,‘职称’, ‘基本工资’
select *from db
select where max(age)
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2017-12-28 · 百度知道合伙人官方认证企业
尚学堂科技有限公司
北京尚学堂科技有限公司是一家从事JAVA、大数据、web前端、网络在线教育、互联网架构师、Android、ios技术开发、咨询为一体的软件公司。公司由海外留学人员和国内IT人士创建。
向TA提问
关注
展开全部
select * from employee e where e.age between 20 and 50
select e.sex,avg(e.age) from employee e group by e.sex having e.sex='男'
select e.name as name,e.title as title,e.salary as salary from employee e
select t.salary as max_salary, t.employee_id
from (select e.employee_id as employee_id, e.salary
from employees e
order by e.salary desc) t
where rownum = 1
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询