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] Need help on SELECT statement

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Need help on SELECT statement
 Login/Join
 
Member
posted
Hi,

I have requirement like: Need to arrange all rows in table in acsending order and fetch the first row only.

As I am new to Data migrator, Could anyone please help me how to use SELECT object here.


Thanks,
Rajesh

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8
Windows, All Outputs
 
Posts: 15 | Registered: March 14, 2017Report This Post
Virtuoso
posted Hide Post
If this is for DataMigrator, you should post this question in the iWay Software Product Forum. If this is a WebFOCUS question, you need to use BY HIGHEST 1 FIELDNAME in your code.


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Guru
posted Hide Post
By "arrange all rows in table in ascending order" do you mean by the key or some other column? And why do you need to do that if you only want the first one? You can get the first (i.e.: lowest valued) row for a column from a WHERE condition with a sub-select.

For example using the DataMigrator sample table dminv to get the row with the least expensive item(s). Add the table to a flow, select the columns you want, then right click on the SQL object and click on the Conditions tab. Then click on the Functions tab and expand "SQL Operators" and click on the last one (SELECT lookup_result...

For LOOKUP_MFD select the same table, for lookup_result type SQ.PRICE then add the condition as shown below.

(SELECT MIN( SQ.PRICE ) FROM ibisamp.dminv SQ ) = T1.PRICE


N/A
 
Posts: 397 | Location: New York City | Registered: May 03, 2007Report 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] Need help on SELECT statement

Copyright © 1996-2020 Information Builders