Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Hello all, What is Syntax of DATEDIFF?

Hellow Qlikviewers, i'm newbie, plis help

this is my syntax in SQL,

WHERE coraccount.closetype = 0 AND coraccountdetail.paidsts = 1 AND datediff(d,coraccountdetail.cicildate,coraccountdetail.paiddate) <= 150

what is syntax of DATEDIFF / Between??

thanks 😄

God bless

1 Solution

Accepted Solutions
3 Replies
Not applicable
Author

i type like this

Count ({<CloseType_CA={0}, PaidSts_CAD={1}, interval(CicilDate_CAD - PaidDate_CAD) <= 150 >}Angsuran_CAD

also wrong,

note,

closetype_CA as coraccount.closetype

paidsts_CAD as coraccountdetail.paidsts

cicildate_cad as coraccountdetail.cicildate

paiddate_cad as coraccountdetail.paiddate

Not applicable
Author

first you copy this script in

function datediff2(d1,d2)
datediff2=datediff("D",d1,d2)
end function

in micro editor then after you call this macro in in your edit script editor

datediff2(Date1,Date2) as [No of day],

Regards

Ashish Srivastava