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     [SOLVED] can you do the following in WebFocus

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] can you do the following in WebFocus
 Login/Join
 
Member
posted
I am doing a count of science classes a student took over the last 3 years. They need to have taken more than 5 semesters of science in the last 3 years to be used in the report. In SQL, I code:

Select count (distinct permnum) as total_sci_classes
where course_group in (long list of courses_
group by permnum having count(*)>5

I have looked through my manual, through online help, and searched this forum. I don't see anything about group by having - is there a way to do this?

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


7.6.5, Windows 2003, PDF, email, extract files
 
Posts: 10 | Location: Las Vegas NV | Registered: June 16, 2008Report This Post
Virtuoso
posted Hide Post
Yes it can be done.

But if this is all in SQL why not create the sql script.
You can use that as a source for your next step, the creation of the report.

If you want it to be done in WF please post some fields and if the data is in one or more databases. (masters might help)




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Virtuoso
posted Hide Post
"Group by ..." corresponds to BY.
"Having" corresponds to WHERE TOTAL.
TABLE FILE xxx
  WRITE CNT.DST.course_group
  BY permnum
  WHERE course_group IN (...);
  WHERE TOTAL CNT.DST.course_group GT 5;
END

This message has been edited. Last edited by: j.gross,


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Member
posted Hide Post
where total - that is the magic words I do believe - thanks now back to that procedure


7.6.5, Windows 2003, PDF, email, extract files
 
Posts: 10 | Location: Las Vegas NV | Registered: June 16, 2008Report 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     [SOLVED] can you do the following in WebFocus

Copyright © 1996-2020 Information Builders