Planned maintenance is scheduled for the week of June 15th - the exact date and time will be announced soon.
See More Details
Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Computing date difference in SQL query
I need to ascertain the date difference using a flowing query but it does not work. Please Guide.
SELECT ID, VoucherNo, DateRec, ProductID, Description, ClaimantCo, ClaimantName, City, Phone, DateReturn, ReqJob, WSIns, Remarks, Status, Part1, Part2, Part3, Part4, OtherWSCharges, FDCharges, P1Charges, P2Charges, P3Charges, P4Charges, DateJobBegun, DateJobDone, WSRemarks, TotChargesFromWS, DeliveryStatus, DateDelivered
FROM tblClaims
WHERE DateDiff(dd, DateReturn, GETDATE()) =3
Before trying this I have also gone through some resources here but was not sure what I am doing is correct is not, My motivation is to get records for which three days are passed on to DateRetun, contrasting with the present date.
Community
Company
Feedback