Date field in query
Hi Experts,
M facing a warning msg for date field while accessing from web as data is not there
now i need to suppress this message
please how to suppress messages in html viewing
I got a hint that it can be done by rsrt .....it any one has any idea please let me know.
Hi,
in rsrt you'll find a small yelow button with an exclamation mark in the first row where you can set it off.
Similar Messages
-
Adding data field in query print layout designer (PLD)
Dear Experts/Gurus,
I would like to add data field in query PLD in repetitive area1 but it can't. The query I made excluding sequence no., so I think I must use datafield for that. I use textfield in the repetitive area header1. is it correct what I have thought, I mean is it really datafield can't be add in the print layout designer if it is from query ? I appreciate your answer. TIA
Rgds,No you can't, you will have to recreate the query with the missing field and recreate a new print layout for this. Is still a flaw in SAP B1.
If you go to the service market place under education you can get the flashbook for the print layout design and the query manager and wizard, study them, they are of great help to understand the technology behind the PLD and the queries in SAP B1.
Regards,
WB -
Missing data fields in Query designer
Hi Guys,
A query exists on an ODS. There are few characteristics and navigational attributes in the ODS. In Query designer, on the left hand side under Dimensions,
i can see 'Data part' (for Data fields of ODS) and 'Key section' (for Key fields of ODS).
All but 2 fields (One data field and one navigational attribute of the ODS) are seen under 'Dart part' of the query designer.
Data field - Accounting Document number
Navigational attribute - Actual Acquisition Fiscal Year
What may the reason for those 2 fields not appearing.
Any help is greatly appreciated.Hi,
I executed a query on the ODS using LISTCUBE. To my surprise, i can find both 0AC_DOC_NO and ZACQ_YR here. If i can find both these in LISTCUBE, why don't i find the same in the query designer. Even though i built a new query on the ODS in the query designer, i still can't find them in the query designer.
Thanks -
Bug or DUE attempting navigation to Date field in query
I am encountering trouble executing a query that involves
navigating a one-way one-to-one relationship
(persistent reference to PC object) to use a Date field.
The query is the following: "period.endingDate <=
p.endingDate" with a query class of Vote. The right side of the
query has been varied and varying it yields different errors,
but the query will not execute. The parameter is defined as:
"VotingPeriod p". The import string is present and appears
okay.
For the current form, the error is:
javax.jdo.JDOUserException: The given filter/ordering String
"period.endingDate <= p.endingDate" is not valid.
Make sure all parentheses are properly matched and that the filter uses
proper Java syntax.
at com.solarmetric.kodo.query.FilterParser.evaluate(FilterParser.java:536)
at com.solarmetric.kodo.query.QueryImpl.getExpression(QueryImpl.java:371)
at com.solarmetric.kodo.impl.jdbc.runtime.JDBCQuery.getExpression(JDBCQuery.java:49)
at com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:312)
at com.solarmetric.kodo.query.QueryImpl.executeWithArray(QueryImpl.java:393)
at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:285)
The Vote class is defined as:
public class Vote
// The pair (topic, period) is unique for all votes
private Topic topic;
private VotingPeriod period;
private int count;
The VotingPeriod class is defined as:
public class VotingPeriod
// the pair (startingDate, endingDate) are unique for all voting periods
private Date startingDate;
private Date endingDate;
If the query is modified to be: "period.endingDate <= d" and
the parameter is declared as "java.util.Date d", then the error
is:
javax.jdo.JDOException: com.ysoft.jdo.book.voting.VotingPeriod
NestedThrowables:
java.io.NotSerializableException: com.ysoft.jdo.book.voting.VotingPeriod
at
com.solarmetric.kodo.impl.jdbc.schema.dict.GenericDictionary.toSQL(GenericDictionary.java:122)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCExpressionFactory$Constant.<init>(JDBCExpressionFactory.java:419)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCExpressionFactory.getConstant(JDBCExpressionFactory.java:213)
at com.solarmetric.kodo.query.FilterParser.eval(FilterParser.java:562)
at com.solarmetric.kodo.query.FilterParser.getValue(FilterParser.java:668)
at com.solarmetric.kodo.query.FilterParser.eval(FilterParser.java:601)
at com.solarmetric.kodo.query.FilterParser.getExpression(FilterParser.java:677)
at com.solarmetric.kodo.query.FilterParser.evaluate(FilterParser.java:527)
at com.solarmetric.kodo.query.QueryImpl.getExpression(QueryImpl.java:371)
at com.solarmetric.kodo.impl.jdbc.runtime.JDBCQuery.getExpression(JDBCQuery.java:49)
at com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:312)
at com.solarmetric.kodo.query.QueryImpl.executeWithArray(QueryImpl.java:393)
at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:285)
David Ezzio
Yankee SoftwareHi Patrick,
Okay, there is a bug. Your parser doesn't know how to handle the ProxyDate class. So if a "Date"
is passed into the query that came from a persistent object, then a ProxyDate object is passed. If
the date is a simple "Date" object then all is well. For the simple date, the parser constructs a
query in nice JDBC escape syntax, but for ProxyDate objects, it generates garbage.
David
David Ezzio wrote:
>
I am encountering trouble executing a query that involves
navigating a one-way one-to-one relationship
(persistent reference to PC object) to use a Date field.
The query is the following: "period.endingDate <=
p.endingDate" with a query class of Vote. The right side of the
query has been varied and varying it yields different errors,
but the query will not execute. The parameter is defined as:
"VotingPeriod p". The import string is present and appears
okay.
For the current form, the error is:
javax.jdo.JDOUserException: The given filter/ordering String
"period.endingDate <= p.endingDate" is not valid.
Make sure all parentheses are properly matched and that the filter uses
proper Java syntax.
at com.solarmetric.kodo.query.FilterParser.evaluate(FilterParser.java:536)
at com.solarmetric.kodo.query.QueryImpl.getExpression(QueryImpl.java:371)
at com.solarmetric.kodo.impl.jdbc.runtime.JDBCQuery.getExpression(JDBCQuery.java:49)
at com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:312)
at com.solarmetric.kodo.query.QueryImpl.executeWithArray(QueryImpl.java:393)
at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:285)
The Vote class is defined as:
public class Vote
// The pair (topic, period) is unique for all votes
private Topic topic;
private VotingPeriod period;
private int count;
The VotingPeriod class is defined as:
public class VotingPeriod
// the pair (startingDate, endingDate) are unique for all voting periods
private Date startingDate;
private Date endingDate;
If the query is modified to be: "period.endingDate <= d" and
the parameter is declared as "java.util.Date d", then the error
is:
javax.jdo.JDOException: com.ysoft.jdo.book.voting.VotingPeriod
NestedThrowables:
java.io.NotSerializableException: com.ysoft.jdo.book.voting.VotingPeriod
at
com.solarmetric.kodo.impl.jdbc.schema.dict.GenericDictionary.toSQL(GenericDictionary.java:122)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCExpressionFactory$Constant.<init>(JDBCExpressionFactory.java:419)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCExpressionFactory.getConstant(JDBCExpressionFactory.java:213)
at com.solarmetric.kodo.query.FilterParser.eval(FilterParser.java:562)
at com.solarmetric.kodo.query.FilterParser.getValue(FilterParser.java:668)
at com.solarmetric.kodo.query.FilterParser.eval(FilterParser.java:601)
at com.solarmetric.kodo.query.FilterParser.getExpression(FilterParser.java:677)
at com.solarmetric.kodo.query.FilterParser.evaluate(FilterParser.java:527)
at com.solarmetric.kodo.query.QueryImpl.getExpression(QueryImpl.java:371)
at com.solarmetric.kodo.impl.jdbc.runtime.JDBCQuery.getExpression(JDBCQuery.java:49)
at com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:312)
at com.solarmetric.kodo.query.QueryImpl.executeWithArray(QueryImpl.java:393)
at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:285)
David Ezzio
Yankee Software -
How to change date format in query
Hi all!
there is Date field in query (ref to 0Date) and it is in "01.2010" format. Anybody knows how to switch to "Jan 2010" format?HI,
You can dispay using the excel properties. Once after the workbook run, select the column you want to change the format and cange to the format required. Save the workbook.
From next run the date field will be displayed as the format set in workbook.
Hope this helps,
regards,
anil -
SQL Query for Date field updation
I want a query from u.. Hope u help me with a
solution soon..
My Q: I want to update a date field in Oracle
database. But the condition is that i shouldnt change
the hours, minutes & seconds of the date field.
generally , if we update the date field then it takes
the default values for hours, min's & sec's to
00:00:00.
EX : if we have a value 21-SEP-2002 04:54:44 in a date
field. I want to update it to 22-SEP-2002 04:54:44.
But it updates to 22-sep-2002 00:00:00 if we use
UPDATE command.Use a PreparedStatement:
PreparedStatement ps = conn.prepareStatement("SELECT * FROM TEMP WHERE TDATE > ? AND TDATE < ?");
// note: month numbers start at 0, so 1 is february
GregorianCalendar c1 = new GregorianCalendar(2002, 1, 11, 11, 0);
GregorianCalendar c2 = new GregorianCalendar(2002, 1, 18, 22, 0);
Date d1 = c1.getTime();
Date d2 = c2.getTime();
java.sql.Timestamp sqlDate1 = new java.sql.Timestamp(d1.getTime());
java.sql.Timestamp sqlDate2 = new java.sql.Timestamp(d2.getTime());
ps.setTimestamp(1, sqlDate1);
ps.setTimestamp(2, sqlDate2);
ResultSet rs = ps.executeQuery();
// get results from the result setJesper -
Sorting of Date field in the SQL Query useing ORDER BY
Hi
I am facing a problem when I am getting the results of a query from the ORacle 8i database using jdbc connection.
The query is having a date field and I have to sort the query results using ORDER By for the Date field. The query is giving exact results in the SQL PLus interface.
When I am getting this results in the GUI where servlets are being used an Exception is coming as not supported RefreshRow method.
If anyone has faced this problem and have got the solutions please let me know.
thanks
sulfyThat doesn't sound at all like an SQL problem.
More like you trying to do updates on the resultset which is not allowed ...
send a some code (not to much pls :) and we'll be
able to help more
cu
Spieler -
Using a date field in a JDOQL query crashes
Hello:
I am trying to use a date field in a JDOQL filter. It appears from the
log file that the date is not being substituted into the SQL.
It is not clear from the JDOQL spec how to do date queries.... doing date
queries in SQL involves several special operators, yet the
JDOQL defines the ">" and "<" operators as working on dates....and there is
no mention of date specific operators so I am hoping that I
can do a filter where I compare a date to an input parameter date using the
">" and "<" operators...
I have enclosed a copy of my driver code, followed by an except of my class
that contains the date, followed by the kodo exception log
I can't see where I am doing anything that violates the JDOQL spec and I
don't see any other way of doing date comparisions.
Brian
Here is the driver code that I am attempting:
public void getDateRange ()
PersistenceManager pm = JDOFactory.getPersistenceManager ();
String filter = "leafDates.contains (cdate) & cdate.statusName ==
myStatus & cdate.datePhaseStarted > myDate";
Date date = new Date ();
Calendar calendar = new GregorianCalendar (TimeZone.getDefault ());
calendar.set (2002, Calendar.DECEMBER, 26);
date=calendar.getTime();
Extent extent = pm.getExtent (LeafBase.class, false);
Query query = pm.newQuery (LeafBase.class, filter);
query.declareImports ("import aqueduct.*; import java.util.Date");
query.declareVariables ("aqueduct.LeafDate cdate; Date myDate");
query.declareParameters ("String myStatus");
System.out.println ("dated used = " + date);
Collection results = (Collection) query.execute ("closed", date);
Iterator iter = results.iterator ();
while (iter.hasNext () ) {
LeafBase myLeaf = (LeafBase) iter.next ();
System.out.println ("My leaf = " + myLeaf);
pm.close ();
Here is the class:
public class LeafDate implements Serializable
// *******The Attributes***************
private Date datePhaseStarted = null;
private boolean isEstimatedDate = false;
//mark this as non-persistent in the JDO metadata
private StatusType status = null;
//put here to enable one-to-many mapping using a single table in JDO
private LeafBase parent = null;
Here is the error I am getting:
C:\bcs\jdo\kodo-jdo-2.4.0\aqueduct>java aqueduct.DealMaint dated used = Thu
Dec 26 08:47:33 CST 2002
Exception in thread "main" javax.jdo.JDODataStoreException:
com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
[SQL=SELECT DISTINCT t0.ID, t0.JDOCLASS, t0.IS_CONFLICT, t0.CURRENCYX,
t0.DEALPARENTX, t0.PARENTX, t0.PRODUCTKIND, t0.T_SIZE, t0.STATUSNAME FROM
JDO_DATE t1, JDO_LEAF t0 WHERE ((t1.STATUSNAME = 'closed' AND t1.DATESTARTED
*variable*) AND t0.ID = t1.PARENTX) PRE=SELECT DISTINCT t0.ID,
t0.JDOCLASS, t0.IS_CONFLICT, t0.CURRENCYX, t0.DEALPARENTX, t0.PARENTX,
t0.PRODUCTKIND, t0.T_SIZE, t0.STATUSNAME FROM JDO_DATE t1, JDO_LEAF t0 WHERE
((t1.STATUSNAME = ? AND t1.DATESTARTED > *variable*) AND t0.ID =
t1.PARENTX)
ORA-00936: missing expression
[code=936;state=42000]
NestedThrowables:com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
[SQL=SELECT DISTINCT t0.ID, t0.JDOCLASS, t0.IS_CONFLICT, t0.CURRENCYX,
t0.DEALPA RENTX, t0.PARENTX, t0.PRODUCTKIND, t0.T_SIZE, t0.STATUSNAME FROM
JDO_DATE t1, JD O_LEAF t0 WHERE ((t1.STATUSNAME = 'closed' AND
t1.DATESTARTED > *variable*) AND t0.ID = t1.PARENTX)] [PRE=SELECT DISTINCT
t0.ID, t0.JDOCLASS, t0.IS_CONFLICT, t0.CURRENCYX, t0.DEALPA RENTX,
t0.PARENTX, t0.PRODUCTKIND, t0.T_SIZE, t0.STATUSNAME FROM JDO_DATE t1, JD
O_LEAF t0 WHERE ((t1.STATUSNAME = ? AND t1.DATESTARTED > *variable*) AND
t0.ID = t1.PARENTX)]
ORA-00936: missing expression
at
com.solarmetric.kodo.impl.jdbc.runtime.SQLExceptions.throwDataStore(SQLExcep
tions.java:23)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.executeQuery(JDBCSto
reManager.java:742)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCQuery.executeQuery(JDBCQuery.java
:92)
at com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:792)
at com.solarmetric.kodo.query.QueryImpl.executeWithArray(QueryImpl.java:668)
at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:623)
at aqueduct.DealMaint.getDateRange(DealMaint.java:523)
at
aqueduct.DealMaint.main(DealMaint.java:35)NestedThrowablesStackTrace:java.sq
l.SQLException:
ORA-00936: missing expression
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:169)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1405)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Protocol.java:643)
at
oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:1819)
at
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java
:2015)
at
oracle.jdbc.driver.OraclePreparedStatement.doScrollPstmtExecuteUpdate(Oracle
PreparedStatement.java:3021)
at
oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedState
ment.java:416)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePrepareOh, thanks for pointing this out.... I got caught up in trying to figure out
the date issues, I missed the obvious.
Brian
"Patrick Linskey" <[email protected]> wrote in message
news:[email protected]...
Brian,
The problem is that you're declaring myDate as a variable instead of a
parameter. Yes, we should be doing better error checking. But that's the
problem.
So, change your declareVariables() and declareParameters() statements
accordingly, and all should work out.
-Patrick
Brian Smith wrote:
Here is the driver code that I am attempting:
public void getDateRange ()
PersistenceManager pm = JDOFactory.getPersistenceManager ();
String filter = "leafDates.contains (cdate) & cdate.statusName ==
myStatus & cdate.datePhaseStarted > myDate";
Date date = new Date ();
Calendar calendar = new GregorianCalendar (TimeZone.getDefault
>>
calendar.set (2002, Calendar.DECEMBER, 26);
date=calendar.getTime();
Extent extent = pm.getExtent (LeafBase.class, false);
Query query = pm.newQuery (LeafBase.class, filter);
query.declareImports ("import aqueduct.*; importjava.util.Date");
>>
query.declareVariables ("aqueduct.LeafDate cdate; Date myDate");
query.declareParameters ("String myStatus");
System.out.println ("dated used = " + date);
Collection results = (Collection) query.execute ("closed", date);
Iterator iter = results.iterator ();
while (iter.hasNext () ) {
LeafBase myLeaf = (LeafBase) iter.next ();
System.out.println ("My leaf = " + myLeaf);
pm.close ();
>
Here is the class:
public class LeafDate implements Serializable
// *******The Attributes***************
private Date datePhaseStarted = null;
private boolean isEstimatedDate = false;
//mark this as non-persistent in the JDO metadata
private StatusType status = null;
//put here to enable one-to-many mapping using a single table in JDO
private LeafBase parent = null;
>
Here is the error I am getting:
C:\bcs\jdo\kodo-jdo-2.4.0\aqueduct>java aqueduct.DealMaint dated used
= Thu
Dec 26 08:47:33 CST 2002
Exception in thread "main" javax.jdo.JDODataStoreException:
com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
[SQL=SELECT DISTINCT t0.ID, t0.JDOCLASS, t0.IS_CONFLICT, t0.CURRENCYX,
t0.DEALPARENTX, t0.PARENTX, t0.PRODUCTKIND, t0.T_SIZE, t0.STATUSNAMEFROM> > JDO_DATE t1, JDO_LEAF t0 WHERE ((t1.STATUSNAME = 'closed' AND> > t1.DATESTARTED> >> > >*variable*) AND t0.ID = t1.PARENTX) [PRE=SELECT DISTINCT t0.ID,
>
ORA-00936: missing expression
[code=936;state=42000]
NestedThrowables:com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
[SQL=SELECT DISTINCT t0.ID, t0.JDOCLASS, t0.IS_CONFLICT, t0.CURRENCYX,
t0.DEALPA RENTX, t0.PARENTX, t0.PRODUCTKIND, t0.T_SIZE, t0.STATUSNAMEFROM
JDO_DATE t1, JD O_LEAF t0 WHERE ((t1.STATUSNAME = 'closed' AND
t1.DATESTARTED > variable) AND t0.ID = t1.PARENTX)] [PRE=SELECTDISTINCT
t0.ID, t0.JDOCLASS, t0.IS_CONFLICT, t0.CURRENCYX, t0.DEALPA RENTX,
t0.PARENTX, t0.PRODUCTKIND, t0.T_SIZE, t0.STATUSNAME FROM JDO_DATE t1,JD
O_LEAF t0 WHERE ((t1.STATUSNAME = ? AND t1.DATESTARTED > variable) AND
t0.ID = t1.PARENTX)]
ORA-00936: missing expression
at
com.solarmetric.kodo.impl.jdbc.runtime.SQLExceptions.throwDataStore(SQLExcep
tions.java:23)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.executeQuery(JDBCSto
reManager.java:742)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCQuery.executeQuery(JDBCQuery.java
:92)
atcom.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:792)
>>
at
com.solarmetric.kodo.query.QueryImpl.executeWithArray(QueryImpl.java:668)
>>
at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:623)
at aqueduct.DealMaint.getDateRange(DealMaint.java:523)
at
aqueduct.DealMaint.main(DealMaint.java:35)NestedThrowablesStackTrace:java.sq
l.SQLException:
ORA-00936: missing expression
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:169)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1405)
at
oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Protocol.java:643)
>>
at
oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:1819)
>>
at
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java
:2015)
at
oracle.jdbc.driver.OraclePreparedStatement.doScrollPstmtExecuteUpdate(Oracle
PreparedStatement.java:3021)
at
oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedState
ment.java:416)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePrepare
Patrick Linskey [email protected]
SolarMetric Inc. http://www.solarmetric.com -
Date field not working in Query definition
Hello Experts ,
I am trying to prepare one report which will pull some fields ( extended fields ) from Rfx header page and display in the report . For this I have made one query definition and written SQL query . Now all fields except the date fields are successfully fetched and displayed by the query . Only when I am adding the date field inside "result field" tab , the query is throwing error like -
" ORA-00904: "EFFECTIVE_START_DATE": invalid identifier "
but this field name is correct .
Any formatting needs for this field ?
Regards
SudiptaHi Sudipta,
Thanks for your reply.
Actually I have created a diferent extension field and want to add that field in Results fields of particular Query Definition. But when I use it Tablename.Extension_Field_Name, its giving below exception
ORA-00904: "t"."fieldname": invalid identifier
Any idea what needs to be taken care of while using extension fields in Queries.
Thanks,
Saloni -
Why does Oracle SQL query returning a date field without the time component
Hi,
I'm a novice SQL user & hv just installed Oracle SQL developer (Version 3.0.04, Build MAIN-04.34).
I made the same SQL query using "Oracle SQL developer" & "TOAD for Oracle 9.0.1" but I got 2 different format on the same date field:
On TOAD, I get the date field extracted as *04/26/2011 23:12:58*
On Oracle, I get the date field extracted as *26/APR/11*
Why is the Oracle result in a different format & missing the time component?
Is there any option/preference that I need to set in Oracle SQL developer to get the full date/time format displayed?
I've tried to set my the date format to DD/MON/RR HH12:MI:SSXFF AM under the preference -> database NLS but I still get the same format!
Plse help!hokim wrote:
Hi,
I'm a novice SQL user & hv just installed Oracle SQL developer (Version 3.0.04, Build MAIN-04.34).
I made the same SQL query using "Oracle SQL developer" & "TOAD for Oracle 9.0.1" but I got 2 different format on the same date field:
On TOAD, I get the date field extracted as *04/26/2011 23:12:58*
On Oracle, I get the date field extracted as *26/APR/11*
Why is the Oracle result in a different format & missing the time component?
Is there any option/preference that I need to set in Oracle SQL developer to get the full date/time format displayed?
I've tried to set my the date format to DD/MON/RR HH12:MI:SSXFF AM under the preference -> database NLS but I still get the same format!
Plse help!http://edstevensdba.wordpress.com/category/nls_date_format/ -
Query not returning rows in 'result' tab due to invalid date field (bug?)
It seems that in the results display, if there is a date field with out of bounds data then the query is stopped and only the results up to that record are displayed. When running the same query as a script, all of records are returned. The offending date in the table was '-10100-00-00 0-1:0-1:0-1.0'. Don't ask how it got there... I really have no idea.
Has anyone else noticed this? Could it relate to the NLS format? Would it be possible to just display this value as null in the 'results' tab instead? Or wrap any invalid data as such and return nothing in the field but still show the record?Hello,
It seems that you had resolved the issue which caused by premission.
You can post the solution in a new reply and mark it as answer.
Regards,
Fanny Liu
If you have any feedback on our support, please click here.
Fanny Liu
TechNet Community Support -
Stablish conditions between a data field in a query
Hello all,
Firstly, I´ve got an infoCube "A" where every record has a field called "Init date" (date field) and another field called "finish date"
In a query (that retrieves data for the infoCube A) there is a pop up with a date that user must enter (interval). This query must show every record for which different conditions regarding interval date are carried out by init date and finish date.
For example:
User enter: 03.02.2007 -- 17.04.2007
Query must show every record where init date is minor than 03.02.2007 and finish date is greater or equal than 03.03.2007 and greater than 17.04.2007.
I think this must be done in BW exit but I don´t know abap code I must enter.
Anybody can help me?
Thanks a lot.
CarmenIf you want to restrict data for sertain period, and these values are entered in variable entry screen. Query will display only that data which satisfies the entered conditions.
What exactly you want ? Is,t this your requirement ?
Regards
SS -
Keyfigure value by comparing 2 date fields, in the query designer.
Hi all,
Could any one please intimate, how to display the key figure result with the comparison of 2 date fields.
We are having "Completed Date" say(CDATE) and "Deadline Date"(DDATE) values in the report as time characteristics, dervied from the CRM system.
Now we need to compare the values as:
CDATE <= DDATE, then only consider this under "Meeting Planned Date"(Key Figure).
Could you please intimate, how to display the key figure value, by using the code at the query designer level.
Thanks & Regards,
A.V.N.RaoHi Rao,
Simple create two formula variables with replacement path from these two date fileds,then create a formula then do the comparison
Eg:
ZVAR_CDATE WITH REPLACEMENT PATH PROCESSING TYPE REPLACED WITH OBJ CDATE
ZVAR_DDATE WITH REPLACEMENT PATH PROCESSING TYPE REPLACED WITH OBJ DDATE
CREATE A FORMULA FORMULA1: IN THE FORMULA BUILDER AREA DO THE COMPARISON.
Thanks & Regards
Ramsthota -
Display difference of a Date field and today's date in the query
hi experts,
I have a query which has a date field called 'Effective Date.'
I just need to a add a column in the query that shows me the diffenrence between 'Effective Date' and the date the query is run (key date).
Do i need a custom exit to accomplish this?
The new column can either display the number days elapsed from 'Effective Date' to the key date or it can also display Number of Years/ Months / days.
Any ideas?
Thanks,Check this if it helps:
http://www.sd-solutions.com/documents/SDS_BW_Replacement%20Path%20Variables.html -
Querying a date field with different masks in form and database
Dear friends,
I have a field with date format mask dd/mm/yyyy hh24:mi:ss, but the same field has date format dd/mm/yyyy inside the form which queries it.
If I run this form, obviously I will query this date in dd/mm/yyyy format mask, but this date is not being found because it doesn't include hh24:mi:ss (hour) from the database field.
How can I solve this problem? I tried to change my form, putting a format mask with hours, but it requires me to query this date with time, and obviously no one needs to know the exact moment (with seconds!) when the date was recorded in the database.
Thanks, and best regards,
FranklinFranklin,
You could instruct your users to use the '%' when they enter a date search criteria. Another alternative would be to programatically add the '%' to the date. Also, if your Block based on a view you could alter the vuew to use TRUNC() on the date field to drop the time.
Another option would be to use the Pre-Query trigger to modify the Block WHERE clause to: TRUNC(date_field) = :block.date_field.
Hope this helps.
Craig...
-- If my response or the response of another is helpful or answers your question, please mark the response accordingly. Thanks!
Maybe you are looking for
-
"Cannot find the DHCP server" message in 2012 R2
Hello All, I am running Server 2012 R2 with a DHCP server running on it(usually). Every few days or so, when I go into my DHCP console, I click on my server and I get the above message written in the topic of this thread?? Does anyone know why this
-
Problems using LocateRegistry.createRegistry and getRegistry
In my server, I create the registry: Registry registry = LocateRegistry.createRegistry(1099);This creates a new rmiregistry process at the localhost, so the URL should be //localhost:1099 Then I call: registry.rebind("shapes", shapes);The server runs
-
I know that the documentation says that CSA 6.0.1.x supports SuSE 10, but we have a couple SuSE 9.1 servers. Is CSA backwards compatible? Will it work on 9.1?
-
IChat Server broken after 10.6.3 Update
Jabberd is unable tostart after the update. Any ideas? +Mar 30 19:32:38 rudi jabberd/sm[41756]: module 'presence' added to chain 'in-sess' (order 11 index 12 seq 0)+ +Mar 30 19:32:38 rudi jabberd/sm[41756]: module 'deliver' added to chain 'in-sess' (
-
Can anyone tell me why this script isn't working? clear-host $Servers = Get-Content("C:\Scripts\NextGen\Servers.txt") $Excel = new-Object -comobject Excel.Application $Excel.visible = $True $Excel = $Excel.Workbooks.Add() $Sheet = $Excel.Worksheets.I