Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 alphanumeric to date in SQL

Author  Topic 

naren.verma
Starting Member

1 Post

Posted - 2013-07-30 : 13:58:40
Hi All,

I have a frequency feed column which can have below possible values:

1st week-end after the last claim run of the month
End of the following month
Implementing
Monday
Monthly
Monthly (1 month delay)
Monthly 1
Monthly 10
Monthly 10th
Monthly 11
Monthly 13
Monthly 14
Monthly 15
Monthly 15th
Monthly 16
Monthly 1st
Monthly 1st Week
Monthly 20
Monthly 20 (6 month delay)
Monthly 22
Monthly 3
Monthly 30
Monthly 5
Monthly 6
Monthly 7
Monthly 8
Monthly 9th
Monthly Last Thursday
Monthly Last Wednesday
Monthly Second Wednesday
Monthly Second Week
NO FEEDS
No Feeds (PROSPECT)
Prospect
Weekly

I would like to covert them into date..if not all of them,then at least maximum of these values.

Please assist.

Thanks
Naren

NV

James K
Master Smack Fu Yak Hacker

3873 Posts

Posted - 2013-07-30 : 14:21:38
quote:
Originally posted by naren.verma

Hi All,

I have a frequency feed column which can have below possible values:

1st week-end after the last claim run of the month
End of the following month
Implementing
Monday
Monthly
Monthly (1 month delay)
Monthly 1
Monthly 10
Monthly 10th
Monthly 11
Monthly 13
Monthly 14
Monthly 15
Monthly 15th
Monthly 16
Monthly 1st
Monthly 1st Week
Monthly 20
Monthly 20 (6 month delay)
Monthly 22
Monthly 3
Monthly 30
Monthly 5
Monthly 6
Monthly 7
Monthly 8
Monthly 9th
Monthly Last Thursday
Monthly Last Wednesday
Monthly Second Wednesday
Monthly Second Week
NO FEEDS
No Feeds (PROSPECT)
Prospect
Weekly

I would like to covert them into date..if not all of them,then at least maximum of these values.

Please assist.

Thanks
Naren

NV

What is the output you would expect given this sample data? If this is not sample data, can you post representative sample data and the corresponding output you are expecting to get along with the rule you used to calculate the output?
Go to Top of Page
   

- Advertisement -