Focal Point
[CLOSED] Sorting the data

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/8177082676

May 21, 2015, 09:29 AM
CuriousDev
[CLOSED] Sorting the data
I have a table which has customer_id and address field in it.some customers have same address. I have to search for those customer_id which has same address. How can i do it in webfocus.

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


WebFOCUS 8
Windows, All Outputs
May 21, 2015, 11:16 AM
MartinY
Something like this may do it. It depend if you would like to only identify the duplicated rows or not.

TABLE FILE CAR
PRINT COMPUTE SAME_CAR /A1 = IF LAST CAR EQ CAR THEN 'Y' ELSE 'N';
BY COUNTRY
BY CAR
BY MODEL
END



WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
May 21, 2015, 05:52 PM
j.gross
This will do it, but may not be very efficient.

table file customers

count entries
by address_element_1
by address_element_2
...

print [fields of interest]
by address_element_1
by address_element_2
...
by cust_id
where total count gt 1;
end

It will also miss duplicates, where there is spelling variation in the address elements.


- Jack Gross
WF through 8.1.05