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.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Query

Author  Topic 

JTProg
Starting Member

24 Posts

Posted - 2006-12-20 : 15:43:47
Is there away of returning the many side of a relationship in one row and one column for related keys?

Example:
Table1
Primary Key: TMID
Table2
Primary Key: FormID
Foreign Key: TMID

I want my output to look like this:
TMID FormID
1 1,2, 3

Instead of:
TMID FormID
1 1
1 2
1 3

This will be used to display a datagrid in ASP.NET and I want to link from the Form ID, trying to keep all related in a batch.

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2006-12-20 : 22:26:06
Check this discussion:

[url]http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=53293[/url]

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page
   

- Advertisement -