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.
I am trying to write a sql query using below code:
SQL SQLORA SET SERVER servername SQL SQLORA select empname, hire_date, salary from table_name where hire_date between '01-JAN-06' AND '31-DEC-07';
I suppose get number of rows records but somehow I got 0 record return. I know it is something to do with the hire_date format. By default, this column in my oracle table showing as DATE data type. And when I create a master file, this field is showing as:HYYMDS format.
Does anyone know who to solve this issue?
Regards,
JZThis message has been edited. Last edited by: Kerry,
If the master is showing that format, then hire_date is a DATETIME field, not a date field.
Could you try just printing hire_date without a screening condition but with a recordlimit to see what it looks like and then adjust the WHERE clause to match.
If the field in your Oracle database is a date-time field, then your best bet would be to use a date-time value in your selection criteria that matches your actual field format such as
20060101 00:00:00 and 20071231 23:59:59
I don't know the exact format of an Oracle timestamp, but 01-JAN-06 is not going to work. Use your Oracle tool to get the exact format or maybe another Oracle user out there would be kind enough to give you the answer.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
I was able to paramaterize the date this way without having to use TO_DATE. I called the parameter &ORACLEDATE. This shows a prompt box and I type in the date as 25-JUL-2012. The field DATE_UPDATED is the col name in the Oracle Table and has a data type of date. To use this example in the WHERE clause of the SQLORA section: