Skip to content

Instantly share code, notes, and snippets.

@troyscott
Created September 29, 2013 20:46
Show Gist options
  • Select an option

  • Save troyscott/6756385 to your computer and use it in GitHub Desktop.

Select an option

Save troyscott/6756385 to your computer and use it in GitHub Desktop.
update dbo.WeeklySalesForecast
set WeekNumber = case
when CONVERT( INT,SUBSTRING(WeekNumber,5,3)) < 10
then 'Week 0' + SUBSTRING(WeekNumber,6,1)
else WeekNumber end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment