In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
1. The parsing function has four over row_number dense_rank rank and four cannot be used alone.
2.select empno, sal, deptno,sum (sal) over (order by empno), sum (sal) over () from emp; views are as follows: add up by salary
3 select empno, sal, deptno
Sum (sal) over (partition by deptno)-- the sum of each department
Sum (sal) over (order by deptno)-- summation of departments
Sum (sal) over (partition by deptno order by empno)-- first divided into departments and then accumulated under their respective departments
Sum (sal) over ()
The from emp; view is as follows
4 select empno,deptno,ename
Row_number () over (order by deptno)-- increase the serial number in sequence according to the department number
Dense_rank () over (order by deptno),-- the root department number is sorted strictly according to size and can be juxtaposed.
Rank () over (order by deptno)-- the root department number is sorted strictly according to size, but it can be juxtaposed, but there will be a jump mark that should not be occupied by the other two 1s, which is directly 4.
From emp;-- order by can be followed by desc in descending order
! [] (https://s1.51cto.com/images/blog/201712/30/fec3790e195983a037edbfe9df575d8e.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.