暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

Analytics

2011-01-01
441

JL Computer Consultancy

Building a non-trivial example of Analytic Functions

June 2006


This attached document is in RTF format, size 134K

This article came about because someone sent me an interesting question about a problem they had. The problem was sufficiently challenging that I decided to see if I could solve it (it helped that the email included a couple of short scripts to generate some test data). I solved the problem by working through several iterations of using analytic functions to approach the final solution – and realised that the steps taken could be a useful introduction to using analytic functions. So I wrote the attached article around the code.

The article was first published in the UKOUG magazine in June 2006, and is scheduled for the Q3 issue of the IOUG magazine.

There is an associated zip file containing three scripts with version-specific SQL for the demonstration.

Note:  After the article was published, the person who sent me the original question sent me a follow-up note which included the comment:: “One possible deterrent for newbies who'd come from the 8i perspective might have been things like Metalink bug 2864055 - Wrong results using DISTINCT in inline view using analytic functions.”

It’s easy enough to get the wrong results anyway when you start using analytics, it’s much worse when the wrong results aren’t your fault; but stick with analytics, they are very powerful. One word of warning, though – use ‘simple’ SQL to crunch your data down to a human-sized report, then use the analytic functions to ‘add value’. Be very cautious about applying the analytic functions directly to large volumes of data – the performance may not be good.

Download article 134KB rtf

Download ZIP file with full source


最后修改时间:2020-04-16 14:51:44
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论