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] How to find a disimilar values based on a given column and show it on output

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] How to find a disimilar values based on a given column and show it on output
 Login/Join
 
Member
posted
Hi,
Lets take an example of CAR file :
TABLE FILE CAR
PRINT
SEATS
BY COUNTRY
BY CAR
BY MODEL
WHERE COUNTRY EQ 'W GERMANY'
WHERE CAR EQ 'BMW'
END
-RUN
-EXIT

The output of the above will be :
COUNTRY CAR MODEL SEATS
W GERMANY BMW 2002 2 DOOR 5
2002 2 DOOR AUTO 4
3.0 SI 4 DOOR 5
3.0 SI 4 DOOR AUTO 5

Iam trying to get only the details where the Seats values are different(In this case i need to pull the Model : 2002 2 DOOR AUTO where the number of Seats are 4 which is uncommon among the rest of the values i.e.,5).
Can anyone tell me how to get this done as this is very urgent?Any help is greatly appreciated.Thanks a lot in advance!

This message has been edited. Last edited by: <Kathryn Henning>,


webfocus 769,windows 7,html
 
Posts: 24 | Registered: July 16, 2010Report This Post
Platinum Member
posted Hide Post
What makes a value uncommon? When it occurs only once, twice?

For the example you give the following would work, but this is because I specify that I only want rows with distinct values in the column SEATS.

TABLE FILE CAR
SUM
CNT.SEATS NOPRINT
BY SEATS NOPRINT
PRINT
SEATS
BY SEATS NOPRINT
BY MODEL
BY COUNTRY
BY CAR
WHERE COUNTRY EQ 'W GERMANY'
WHERE CAR EQ 'BMW'
WHERE TOTAL CNT.SEATS EQ 1
END

Without a better understanding of how you define uncommon I can't be more help.


WF 7.6.11
Output: HTML, PDF, Excel
 
Posts: 123 | Location: UK | Registered: October 09, 2003Report This Post
Expert
posted Hide Post
quote:
as this is very urgent
Isn't everything?

A better, more complete explanation, of your requirement would be very helpful.

From what I gather, from what you did say, I'd prompt for the dissimilar value (the value which I want do use in my dissimilar filtering) and use a NE in my table file request.
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Silver Member
posted Hide Post
Try something like this:

TABLE FILE CAR
PRINT
SEATS
BY COUNTRY
BY CAR
RANKED BY SEATS
WHERE COUNTRY EQ 'W GERMANY'
WHERE CAR EQ 'BMW'
END
--

If you are using oracle, you can try RANK fucntion using Partition by clause to rank the elements based on the occurance.


Webfocus 7.1.6, Webfocus 7.7, Webfocus 8
 
Posts: 33 | Registered: August 16, 2012Report This Post
Silver Member
posted Hide Post
TABLE FILE CAR
PRINT
SEATS
BY COUNTRY
BY CAR
RANKED BY LOWEST 1 SEATS
WHERE COUNTRY EQ 'W GERMANY'
WHERE CAR EQ 'BMW'
END


Webfocus 7.1.6, Webfocus 7.7, Webfocus 8
 
Posts: 33 | Registered: August 16, 2012Report This Post
Expert
posted Hide Post
TABLE FILE ibisamp/CAR
SUM MAX.SEATS
BY COUNTRY BY CAR
PRINT SEATS
BY COUNTRY BY CAR BY MODEL
WHERE COUNTRY EQ 'W GERMANY'
WHERE CAR EQ 'BMW'
ON TABLE HOLD
END
TABLE FILE HOLD
PRINT * WHERE E03 EQ E05 (or NE , whatever you want)
END




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report 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] How to find a disimilar values based on a given column and show it on output

Copyright © 1996-2020 Information Builders