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]Less than or equal to

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]Less than or equal to
 Login/Join
 
Gold member
posted
Hello to all,

I have the following query below and I was wondering does Webfocus have a less than or equal to Keyword (because LTE does not work)
  
WHERE APPROVAL_DATE FROM '&BEG_DATE_ISSUED.EVAL' TO '&END_DATE_ISSUED.EVAL';

If I use 10/30/2014 to 10/31/2014 , it doesn't show the records that took place on 10/31/2014 because I believe it pulls back everything prior to 10/31/2014. I need it to pull back records prior to 10/31/2014 and records that took place on 10/31/2014. Please advise on how to complete this task. Thank you.

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


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 96 | Registered: October 13, 2014Report This Post
Gold member
posted Hide Post
HOW COME THIS DOESNT WORK IN THE TABLE OUT

TABLE FILE
  

SUM

WHERE APPROVAL_DATE GE '&BEG_DATE_ISSUED' LE '&END_DATE_ISSUED';

END


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 96 | Registered: October 13, 2014Report This Post
Gold member
posted Hide Post
I FIGURED IT OUT. THANKS


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 96 | Registered: October 13, 2014Report This Post
Virtuoso
posted Hide Post
Well, in my opinion:

WHERE APPROVAL_DATE FROM '&BEG_DATE_ISSUED' TO '&END_DATE_ISSUED'


is equivalent to:
WHERE APPROVAL_DATE GE '&BEG_DATE_ISSUED' AND APPROVAL_DATE LE '&END_DATE_ISSUED'


They both translate to a similar SQL clause as they are both inclusive of the ranges.

You don't mention which RDBMS you use (you may want to adjust your signature to include that) but keep in mind that some databases like Oracle store date and time information in a DATE field.

If you have data that looks like this: 2014/10/31 14:21:05, neither of the statements above will pick that record since they would get evaluated as 2014/10/31 00:00:00, that is, records created up to Oct 31 at midnight.

If that is your case, you will need to adjust your query to:

WHERE APPROVER_DATE GE '2014/10/30' AND APPROVER_DATE LT '2014/11/01'


That will guarantee to pull all rows just *before* the midnight of Nov 1st which will indeed include everything from Oct 31st regardless of the time.

Just a thought.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report 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]Less than or equal to

Copyright © 1996-2020 Information Builders