vba - 1 Working Day Back In SQL DB2 -
i need select data database date 1 day past on working day. there specific function ( excel has got formula =workday)?
i downloading data db2 excel vba instructions.
here piece of code use calendar day.
strsql = "select *" strsql = strsql & " pdb2i.di_his_exh_rat_01" strsql = strsql & " car_dt = current date - 1 day"
thanks in advance directions
select * mytable mydate = current date - (case when dayofweek(current date) = 1 2 -- sonntag when dayofweek(current date) = 2 3 -- montag else 1 end) days
Comments
Post a Comment