Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
kiranmurali
Yak Posting Veteran
55 Posts |
Posted - 2010-08-26 : 13:25:22
|
| i have a senario as below:in my userdefined table the col values are stored as belowlocid '2,4,5,6'for these values i have to get the related names from the master table as 'kirthi,lekha,sneha,vijay' like this.can you help me how to solve this?Thanks in advancekiranmurali |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
kiranmurali
Yak Posting Veteran
55 Posts |
Posted - 2010-08-27 : 01:53:13
|
[quote]Originally posted by tkizer Please post your table structure and sample data.This is my master table structurefieldname datatype seskey int pk locname varchar(100) shortname varchar(3)del_flag int default 0sample data 1 BANGALORE BNG O2 CHENNAI CHN 03 HYDERABAD HYD 0This is my userdefined tablestructureid int pkgroup_name varchar(100)short_name varchar(3)locid varchar(max) address varchar(250)profile varchar(250)sample data 1 tata tat (1,2,3) xyz abc2 tatasteel tas (2,4) xyz abc3 mindtree mnd (1,4) xyz abcIn one situation i have to get for (1,2,3) the correspondingvalues(bangalore,chennai,hyderabad)as the outputgive me some suggestions to solve this.thanks in advancekiranmurali |
 |
|
|
|
|
|
|
|