Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.


Connect to myibi

Read-Only Read-Only Topic
Go
Search
Notify
Tools
rank function
 Login/Join
 
<Kalyan>
posted
Hi,
In teradata sql's we can use a function called RANK . Has anyone come across a similar function which can be used in WebFOCUS....

Thanks,
kalyan.
 
Report This Post
Platinum Member
posted Hide Post
I don't know anything about Terradata and you did not specify or explain what this rank function does. There is a rank command in Focus but whether it is an equivelant of what your Terradata rank is you will have to decide. The following request shows its use:

TABLE FILE CAR
PRINT CAR MODEL
RANKED BY HIGHEST 5 RETAIL_COST
END

PAGE 1


RANK RETAIL_COST CAR MODEL
---- ----------- --- -----
1 31,500 MASERATI DORA 2 DOOR
2 17,850 JENSEN INTERCEPTOR III
3 14,123 BMW 3.0 SI 4 DOOR AUTO
4 13,752 BMW 3.0 SI 4 DOOR
5 13,491 JAGUAR XJ12L AUTO
 
Posts: 115 | Location: Chicago, IL | Registered: May 28, 2004Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders