I have 2 tables in MS SQL Server.
Table 1
ID   Name  
-------------
10   Series      
11   Movie      
12   Music      
13   Other     
Table 2
ID    IDCatg    Value  
---------------------------
1       10          Hannibal
2       10          Blacklist
3       10          POI
4       11          Hitman
5       11          SAW
6       11          Spider man
7       12          taylor swift
8       12          britney spears
I want to select by IDCatg in Table 2 and create a new column in Table 1 like this:
IDCatg     Name        Value
--------------------------------------------
10         Series      Hannibal-Blacklist-POI
11         Movie       Hitman-SAW-Spider man
12         Music       taylor swift-britney spears
How can I do this by view?
 
    