Is there a way to get the week number of a date with SQL that is database independent?
For example to get the month of a date I use:
SELECT EXTRACT(MONTH
select (DATEPART(yyyy , CAST(GETDATE() AS datetime)) * 100 + DATEPART(ww , CAST(GETDATE() AS datetime))) as week