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

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -