Hi,
I have problems to create an sql statement
If I try something like this:
SELECT DISTINCT ID as OrderID, Name, ProductId, Creationdate
FROM ttorders
where productid = $D{products.productid} and creationdate >= '11/28/17 2:42 PM'
I get the error: ORA-01843:not a valid month.
If I try this:
SELECT DISTINCT ID as OrderID, Name, ProductId, Creationdate
FROM ttorders
where productid = $D{products.productid} and creationdate >= '2017-11-28 09:21:29'
I get the error: ORA-01861: literal does not match format string.
The Problem is:
This
'2017-11-28 09:21:29'
is the format within my db and this
'11/28/17 2:42 PM'
is how lime report shows me the date within the preview.
How can I filter my results depending on the date???