想要一个函数,功能如下:
1.计算某字段内不同内容的个数,功能等同于 count(distinct column_name);
2.支持开窗
想了很久,没想到方法。
哪位能提供点思路。。不胜感谢!!
原先数据如下:
with temp (ord,name)
as (
select 1,\'中国\' from dual ...
↧