Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: SQL*Plus and PL/SQL >> help me out ..

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: help me out ..
 busi  Posted: May 10, 2007 05:18:32 AM

 Total Post: 13
 Joined: Jan, 2007






 hi

Any body can u give me some idea about partition clause ,exists ,over (),
over (partition by v)how to use these words in querys and when to use ...?
please give me some idea and examples if it's possible....


best regards
Busi

 mujeeb
Posted: May 11, 2007 08:30:51 AM  

 Total Post: 5
 Joined: May, 2007






 
These type of queries are called Analytical queries,generally used for report generation purpose.
"Partition" is alternate to "group by" and more flexible.

example:

SELECT deptno "Deptno", ename "Ename", sal "Sal",
SUM(SAL)
OVER (PARTITION BY deptno
ORDER BY ename
ROWS 2 PRECEDING) "Sliding Total"
FROM emp
ORDER BY deptno, ename

The following link will be informative to you with good examples.

http://www.akadia.com/services/ora_analytic_functions.html#Top-N%20Queries

 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar857
  Mohammed Taj746
  positive fanatic483
  Jayanta Sur479
  Vigyan Kaushik386
  Gopu Gopi327
  Gitesh Trivedi322
  Vinoth Kumar264
  neeraj sharma258
  Ramesh Jois246






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software