Quantcast
Channel: Answers for "Split Column based on Delimiter"
Browsing all 2 articles
Browse latest View live

Answer by sunil2711

select startdate= ltrim(substring([ColumnA],1,charindex('-',[ColumnA])-1)) select enddate= ltrim(substring([ColumnA],charindex('-',[ColumnA])+1,len([ColumnA])))

View Article



Answer by Magnus Ahlkvist

Why do you store two dates in one column? If possible, you should change your data model so you store the two dates in separate columns. Also store them in date or datetime columns, not as text. That...

View Article
Browsing all 2 articles
Browse latest View live


Latest Images