I'm using the following MS SQL select query that I need to duplicate in Postgres.
SelectCommand="SELECT Dat_Indexno, Emp_Name, Dat_Type, Dat_Resource, Dat_From, Dat_To, Dat_Note FROM Dato1 WHERE (Dat_Type = @ddtype) AND (Dat_From < DATEADD(DAY,1,@calendar3) AND Dat_To >= @calendar3) ORDER BY Emp_Name, Dat_From"
I've been playing with using the Timestamp Interval options but not getting the sytax right...
SelectCommand="SELECT dat_indexno, dat_empname, dat_type, dat_resource, dat_from, dat_to, dat_note FROM plus.tbl_waldo WHERE (dat_type = :param1) AND (dat_from < Timestamp :param2 + Interval '1 day' ) AND (dat_to >= :param2)"
Start Free Trial