Week number in sql

pascalou83400 Posted messages 285 Registration date   Status Member Last intervention   -  
pascalou83400 Posted messages 285 Registration date   Status Member Last intervention   -
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

jee pee Posted messages 9436 Registration date   Status Moderator Last intervention   9 972
 
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