Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi, how do I extract records for the year 2012 based on a column with the datatype 'DD/MM/YYYY hh:mm:ss'?? Thanks.
Try this,
Load
*
From <Source Table>
where Year(DateTime) = 2012;
Hi, apparently i cant use year(Field) = 2012. this is what i did:
sql select
.
.(other fields)
.
statusdate.
.
.
from <filename> where year(statusdate)=2012;
an error message stated that 'year' is an invalid identifier...
Can you upload sample qvw?
Hi
This is because everything after the SQL command is executed by the database server, not by Qlikview. If you are using MS SQL Server, then the command would be
WHERE DatePartr(yy, statusdate) = 2012
Other databases would need a different expression.
HTH
Jonathan
Hi,
Try like this
LOAD
*
WHERE Year(statusdate) = 2012;
sql select
.
.(other fields)
.
statusdate.
.
.
from <filename> ;
Regards,
Jagan.
Try below,
LOAD *
WHERE Year(statusdate)=2012;
SELECT *
FROM <filename>;
Thanks