x

matching string of one table to substring of another table

please look at the picture, it has two table and output tabe

sql1.png (8.0 kB)
more ▼

asked Oct 08, 2016 at 02:45 AM in Default

avatar image

sql_ibrahim61
1 1

(comments are locked)
10|1200 characters needed characters left

1 answer: sort voted first

It's not entirely clear what you have tried so far and how that went...

You would want to look at joining Table1 to the result of a call to a SPLIT-function (google for Jeff Moden and Split and you will find some very efficient split-string-functions which you can use), and finally you would want to use XML PATH to get the results in csv format.

more ▼

answered Oct 10, 2016 at 10:40 AM

avatar image

Magnus Ahlkvist
22.5k 20 44 43

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x2221
x1208
x163
x24
x12

asked: Oct 08, 2016 at 02:45 AM

Seen: 255 times

Last Updated: Oct 10, 2016 at 10:40 AM

Copyright 2018 Redgate Software. Privacy Policy