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     count distinct with D

Read-Only Read-Only Topic
Go
Search
Notify
Tools
count distinct with D
 Login/Join
 
Master
posted
I have this simple query.

TABLE FILE CAR
  SUM CNT.DST.CAR
END


Returns 10

TABLE FILE CAR
  SUM CNT.DST.CAR/D6
END


Returns 1 Eeker

SQL produced: ( when running on a real database, not CAR )


SELECT
 COUNT(DISTINCT  COUNT(DISTINCT T2."WTF_ID"))(INTEGER),
 SUM(T2."WTF_ID")(INTEGER)
 FROM
 INGRESS.P06;


With these warnings ( no errors, it just continues )
FOC2589 - AGGREGATION DONE BUT MAY PRODUCE INCONSISTENT RESULTS
FOC2612 - OVERFLOW MAY OCCUR WHEN SUMMING AN I2 FIELD WITH USAGE I, D OR P

A count distinct over a count distinct? Seems like something got lost in translation.


Is this adapter specific?

Greets,
Dave


_____________________
WF: 8.0.0.9 > going 8.2.0.5
 
Posts: 668 | Location: Veghel, The Netherlands | Registered: February 16, 2010Report This Post
Virtuoso
posted Hide Post
A distinct count of distinct counts? Peculiar!

That looks a lot like the a bug I reported in 8.1.03 where the generated query contains a syntax error because it contains 2 distinct clauses.

Unfortunately, tech support seems to be offline at the moment, or I would have had more details.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Virtuoso
posted Hide Post
I tried.
In both cases I get 10.
However with the format the TITLE is CAR,COUNT; without the format it is COUNT,DISTINCT,CAR.
Go figure!


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
Master
posted Hide Post
I've never seen that with Oracle.


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
 
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006Report This Post
Virtuoso
posted Hide Post
I just tested SUM CNT.DST.CAR/D6 in WF 8105 using both Oracle and SQL Server and got the following correct translation:

AGGREGATION DONE ...
SELECT
COUNT(DISTINCT T1."CARS")
FROM
HR.CAR_ORA T1;

AGGREGATION DONE ...
SELECT
COUNT(DISTINCT T1."CARS")
FROM
CAR_MSS T1;

Unfortunately, I don't have access Ingress to test.


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report 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     count distinct with D

Copyright © 1996-2020 Information Builders