摘要:
1055 - Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'mysql-test-data.o1.seller_id' which is not functional 阅读全文
摘要:
题目 数据 1.薪资累加、月份排名(降序) select *, sum(salary) over(partition by id order by month ) sum_salary, # order by记得排序,不然都是总和。 rank() over(partition by id order 阅读全文
摘要:
题目要求 1. 按照’月份‘排序 select *,row_number() over (partition by continent order by name) rn from students; 2.行列转换,找出符合条件的一个人 select min( case when continent 阅读全文
摘要:
select Id, Company, Salary from ( select *, row_number() over (partition by Company order by Salary) rnk, count(*) over (partition by Company) count_n 阅读全文
摘要:
select d.name as Department, f.name as Employee, Salary from department d inner join (select * from ( select *, dense_rank() over (partition by depart 阅读全文