Week number in sql

Hello,
I am creating reports using Report Builder and I am looking for how to put the week number / year into a variable.

I can't find the code?

Thank you for your help.

Have a good day

Pascal

6 answers

  1. Moderator
    Hi,

    You didn't specify the RDBMS...

    With Oracle:
    select to_char(sysdate,'WW') from dual; 


    Best regards
            a stranger is a friend you haven't met yet.
    0