If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
select dy.DAY_DT TY_DT,
dayname(dy.DAY_DT) as TY_DAY
from PROD_DY dy
Here is the code as of now. Can you please add a column to this statement which will contain the previous year same day. I really appreciate all your help.