troubleshooting Question

Sort Text Date from SQL Server Table Column

Avatar of Wayne Barron
Wayne BarronFlag for United States of America asked on
Microsoft SQL ServerVisual Basic ClassicASPSQL
14 Comments1 Solution202 ViewsLast Modified:
Hello All;
I have a Table.Field named PageList
               select PageList from TheList
Inside of this Field, is / separated word sets, with dates on them.
File_Date_(Jan_21,_1976) / File_Date_(Mar_18,_1996) / File_Date_(Jan_22,_1983) / File_Date_(Jan_20,_1983) / File_Date_(Jan_14,_1976) / File_Date_(Jan_18,_1979) / File_Date_(Dec_18,_1979)

Open in new window


I need the output, to be like this. (They are going to be wrapped inside of a BBCode Table Schema)

70s goes here
       76 goes here
File_Date_(Jan_14,_1976)
File_Date_(Jan_21,_1976)

79 goes here
File_Date_(Jan_18,_1979)
File_Date_(Dec_18,_1979)

80s goes here
       83 goes here
File_Date_(Jan_20,_1983)
File_Date_(Jan_22,_1983)


90s goes here
       96 goes here
File_Date_(Mar_18,_1996)

Open in new window


This is going to be the default look, pretty much.
The Date will be wrapped in the parenthesis, and will also have an underscore,
and as you can see, it also has a comma, at the end of the day.

I am trying to make this as simple as possible, as we have 1,000's of pages that are going to be updated on a regular basis, and without having these ordered, and within a decent generated code structure, it is going to be very time-consuming, to say the least.

Any idea's on this one?
I know it is not going to be a simple one.
Hopefully, I have provided enough information, to get going on it.

Carrzkiss
ASKER CERTIFIED SOLUTION
Deepak Chauhan
SQL Server DBA

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Log in to continue reading
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform for $9.99/mo
View membership options
Unlock 1 Answer and 14 Comments.
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
The Value of Experts Exchange in My Daily IT Life

Experts Exchange (EE) has become my company's go-to resource to get answers. I've used EE to make decisions, solve problems and even save customers. OutagesIO has been a challenging project and... Keep reading >>

Mike

Owner of Outages.IO
Phoenix, Arizona, United States
Member Since 2016
Join a full scale community that combines the best parts of other tools into one platform.
Unlock 1 Answer and 14 Comments.
View membership options
“All of life is about relationships, and EE has made a virtual community a real community. It lifts everyone's boat.”
William Peck

Member since 2004