Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
krishnacbe
Partner - Specialist III
Partner - Specialist III

sql Query issue

Hi

I have used below query

select * from exposure where Createtime>'8/30/2012 12:30:04';

Result is

Data.png

But the above row should not be fetched.

Thanks in advance.

Regards

Krishna.S

4 Replies
jagannalla
Partner - Specialist III
Partner - Specialist III

First run this query in sql and check. Otherwise use this code:

Load *

where Date(Createtime,'M/DD/YYYY hh:mm:ss') > '8/30/2012 12:30:04'

;

Select * from exposure;

Cheers!!

Jagan

chematos
Specialist II
Specialist II

Try with spaces between Createtime and '8/30/2012 12:30:04';

select * from exposure where Createtime > '8/30/2012 12:30:04';

Regards

teempi
Partner - Creator II
Partner - Creator II

Hey,

Also make sure there's no fraction in your timestamp. Try something like > '8/30/2012 12:30:04.999' or >'8/30/2012 12:30:05'

-Teemu

rbecher
MVP
MVP

Hi Krishna,

I don't know which db vendor you have. Usually a TO_DATE function (to convert the date string into the datetime data format) in the where clause would help.

- Ralf

Data & AI Engineer at Orionbelt.ai - a GenAI Semantic Layer Venture, Inventor of Astrato Engine