Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 4729

How to link two tables with part of a cell value

$
0
0
     

In TLink tableA I have column 1 which has info like this "1 to 4 digits - two words"

for example

985 - Train set

14 - Baby Doll

874 - Piano Keyboard

6 - DVD player

etc.

In table B I have column 1 with the numbers of the toys, and column 2 which has the price.

I want to write a query that gives me the number, the name and the price.

But I have no idea how I have to link a part of a cell value with another table.

Kind regards


Viewing all articles
Browse latest Browse all 4729


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