Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Left Join Issue

$
0
0

Hi Guru's

I am having a table A whith 2 columns (SID,Sub).

Sid       SUb

201       T1

201       T2

201       T5

202       T2

202       T3

203       T4

I am having another table B with 1 column(Subs)

Subs

T1

T2

T3

T4

T5

I want out put like below

Subs        SID

T1           201

T2           201

T3           Null

T4           Null

T5          201

T1          Null

T2          202

T3          202

T4         Null

T5         Null

T1        Null

T2        Null

T3       Null

T4      203

T5      Null

Any help please ?

Thanks 


Dasari


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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