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.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] sort the column in sql report based on two criteria

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] sort the column in sql report based on two criteria
 Login/Join
 
Gold member
posted
Hi;

I have a sql report and the result looks like the following group by Resource and business role

Resource Business Role Function Role
Oracle FR 1
Oracle FR 2
Oracle FR 3
Oracle AP Accountant FR 4
Oracle AP Manager FR 5

However i want to see Business Role sort first and put all the records with empty business role at the end of report. Is it feasible?

Resource Business Role Function Role
Oracle AP Accountant FR 4
Oracle AP Manager FR 5
Oracle FR 1
Oracle FR 2
Oracle FR 3

Thanks

-Maria

This message has been edited. Last edited by: Kerry,


====================
Production: WebFOCUS 7.1.1 on Window 2003
WebFOCUS 7.1.1 Client on HP-UX on WebLOGIC 8.1 sp4
Dev: WebFOCUS 7.6.4 on Window 2003
WebFOCUS 7.1.1 Client on HP-UX on WebLogic 8.1 sp4
 
Posts: 52 | Registered: June 28, 2005Report This Post
Gold member
posted Hide Post
Hi;

I have a sql report and the result looks like the following group by Resource and business role

Resource, Business Role , Function Role
Oracle , , , FR 1
Oracle , , , FR 2
Oracle , , , FR 3
Oracle , AP Accountant , FR 4
Oracle , AP Manager , FR 5

However i want to see Business Role sort first and put all the records with empty business role at the end of report. Is it feasible?

Resource Business Role Function Role
Oracle , AP Accountant , FR 4
Oracle , AP Manager , FR 5
Oracle , , FR 1
Oracle , , FR 2
Oracle , , FR 3

Thanks

-Maria


====================
Production: WebFOCUS 7.1.1 on Window 2003
WebFOCUS 7.1.1 Client on HP-UX on WebLOGIC 8.1 sp4
Dev: WebFOCUS 7.6.4 on Window 2003
WebFOCUS 7.1.1 Client on HP-UX on WebLogic 8.1 sp4
 
Posts: 52 | Registered: June 28, 2005Report This Post
Virtuoso
posted Hide Post
Not only have you posted the thread twice, you have posted the same message twice in the same thread. You only need to post an issue once - please refer to my response posting on first posting


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Expert
posted Hide Post
Maria Tan, Please, while you're at it, delete this post. To do so, edit the initial post and "delete message" (using the little folder with the eraser on it). This will help keep the forum a bit cleaner...
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Virtuoso
posted Hide Post
Maria,

Using the CAR file and the SALES field, making it blank when zero, here is a possible solution:

  
-* File MariaTan2.fex
DEFINE FILE CAR
ASALES/A6=IF SALES EQ 0 THEN ' ' ELSE FTOA(SALES,'(D6c)', 'A6');
SORTSALES/A6=IF ASALES EQ ' ' THEN 'ZZZZZZ' ELSE ASALES;
END
SET BYDISPLAY=ON
TABLE FILE CAR
PRINT 
MODEL
BY COUNTRY
BY SORTSALES NOPRINT
BY ASALES
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
GRID=OFF, $
ENDSTYLE
END


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Expert
posted Hide Post
Marie Tan,

Please combine these two posts into a single post. It seems that they're both getting replies.

1) sort the column in sql report
2) sort the column in sql report based on two criteria
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] sort the column in sql report based on two criteria

Copyright © 1996-2020 Information Builders