troubleshooting Question

double split - splitting a string by more than one delimiter

Avatar of bbraman
bbraman asked on
Microsoft SQL Server
8 Comments1 Solution628 ViewsLast Modified:
Each line of data below is stored in a single nvarchar field.

CUSTOM,FedEx by Monday Afternoon (11th),18,0
CUSTOM,Standard US Mail,6.5,0
CUSTOM,US Priority Mail + Delivery Conf.,7.25,0
CUSTOM,FedEx by Thursday Morning (21st),35,0
CUSTOM,FedEx by Wednesday Morning (6th),35,0
CUSTOM,FedEx by Friday Afternoon (8th),18,0
CUSTOM,FedEx by Thursday Afternoon (7th),18,0
CUSTOM,FedEx by Friday Afternoon (3rd),18,0
CUSTOM,FedEx by Wednesday Afternoon (6th),30,0
USPS,USPS Airmail Letter Post ,7.55,0
CUSTOM,UPS Ground,12,0

I am creating a view in SQL Server 2000 where I need the data above displayed as below.

FedEx by Monday Afternoon
Standard US Mail
US Priority Mail + Delivery Conf.
FedEx by Thursday Morning
FedEx by Wednesday Morning
FedEx by Friday Afternoon
FedEx by Thursday Afternoon
FedEx by Friday Afternoon
FedEx by Wednesday Afternoon
USPS Airmail Letter Post
UPS Ground

Please Note that data after '(' is always discarded.

Please let me know what syntax will achive my goal.  

Thank You.
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros