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
 Import/Export (DTS) and Replication (2000)
 creating a view

Author  Topic 

nounabarbie
Starting Member

10 Posts

Posted - 2006-04-13 : 04:13:18
Hi
I have 2 tables:Article and CompleteFile
Article contains the following fields:
ArticleID,Language,Source,Date,Article Title,Article Brief

CompleteFile contains the following fields:
ID,ArticleID,CompleteFile

one Article can have up to 5 CompleteFiles so I want to create a view that returns to me the following fields:

Language, Article Title, Article Brief, Article Source, Date,
ArticleCompleteFile1,ArticleCompleteFile2....ArticleCompleteFile5
e.g if the article has 2 complete files,so the first one will be stored in CompleteFile1 and the second in CompleteFile2

May someone help me out?

Thanks a lot

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-04-13 : 04:30:15
Dup http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=64657



KH


Go to Top of Page
   

- Advertisement -