How do I convert a datetime value to a date only value:
"10/16/23 9:24 PM" to "10/16/23"
Should be simple, right? 😏
to_date(to_char(sysdate, 'YYYY/MM/DD') ,'YYYY/MM/DD')
hope this helps
Hi Mike,
Unfortunately the SQL syntax is different. Functions to_date and to_char are NOT valid. You need to use the correct version of SQL. You are using "logical" sql in an analysis in OTBI or in a data model in a report in OTBI using data source OBIEE. Here is a link to review the functions in the sql language reference user guide.
Oracle® Fusion Middleware
Logical SQL Reference Guide for Oracle Business Intelligence Enterprise Edition
Release 12c (12.2.1.3.0)
E80604-01
August 2017
https://docs.oracle.com/middleware/12213/biee/BIESQ/toc.htm
My preference to convert a date time to a date is to use function cast
select all 0 s_0 , "Ledger"."Ledger Creation Date" as created_datetime , cast("Ledger"."Ledger Creation Date" as date) as created_dateonly from "General Ledger - Period Status Real Time" fetch first 7 rows only
Hi @Nathan CCC if its data model then isn`t it more simple to change in properties itself
We have built an OTBI report intended for Line Managers to view their subordinates’ emergency contact details. The report uses the Workforce Management - Person Real Time subject area. When a Line Manager runs the report, the emergency contact fields (e.g. EC Phone Type, EC Phone Number, EC Email Type and EC Email Address)…
Hi All, Good Day. We have created one custom OTBI report and it has "Business Unit" as of one of the parameter. The related list of values is showing all the business units and we want to restrict it to the user who has the related Business Unit data access set access. Please let us know how to achieve this in OTBI report.
I have a Leave Details Report with the condition below to restrict the report based on the logged-in user's AOR. However, the report is not returning any data for any legislation, when users run it under the 'About Me' context.
Moderator summary of the original post. Can I remove access to build Reports while retaining the ability to build Analyses?
Our Requisition OTBI analysis is having many values Requisition Number Requisition Title Requisition Status Hiring Manager Full Name Recruiter Full Name am able to see values for all. When am passing Prompt(Hiring Manager Full Name or Recruiter Full Name) am not able to see the data. Am sure we have values/data for passed…