Advertisement

05.14.2008 at 05:46AM PDT, ID: 23401128
[x]
Attachment Details

How can I remove the tags from the following field to return just the service type?

Asked by RhondaCarroll in SQL Query Syntax, MS SQL Server

Tags:

Hi There,

The following is data that is stored in a field called servicetype:

<values><value>Inm B</value><value>Inm M</value><value>Inm B</value><value>Inm M</value><value>Inm B</value><value>Inm M</value><value>Other</value></values>

<values><value>Inm C</value><value>Inm C</value><value></value></values>

<values><value>Inm F</value><value>Inm F</value><value>Inm F</value><value>null</value></values>

How can I just extract the values not in the tags and then display them delimted by a comma? Also, I want to disregard the null?

Thanks,
Rc
Start Free Trial
 
 
[+][-]05.14.2008 at 06:40AM PDT, ID: 21564014

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.14.2008 at 07:18AM PDT, ID: 21564453

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.14.2008 at 08:56AM PDT, ID: 21565559

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: SQL Query Syntax, MS SQL Server
Tags: MS SQL
Sign Up Now!
Solution Provided By: sqd5597
Participating Experts: 1
Solution Grade: B
 
 
[+][-]05.15.2008 at 04:39AM PDT, ID: 21572420

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628