Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

T-sql Join two tables. The join key are one word to one text, both string.

$
0
0

Hi,

I have two tables, the main table have one column with text. The additional table have a shorter text and in som cases a word.

Exampel: 

Table 1 
Text    Amount
Visa 7-eleven 20160101-100


Table 2
KeyCategory
elevenFood

I think i want to do something like this.

Select *, y.Category

From Table1 As x

Left Join Table 2 As y

On x.Text = y.Key

It is the last row, i don't know how to solv.

Thankful for any help.

Best regards

BadenSQL


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>