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
 General SQL Server Forums
 New to SQL Server Programming
 SQL Select

Author  Topic 

georous
Starting Member

12 Posts

Posted - 2007-02-02 : 13:40:16
hi!
My schema is
Tables
CC KWDS
Fields
it , ref ut , de

each CC.it and CC.ref is a KWDS.ut.
The underlying logic is the following.
CC.it is an article ID.
CC.ref is an article ID that is referenced by cc.it

KWDS.ut is an article ID
and KWDS.de is a keyword.

How can a group all the referenced KWDS.de
by each article???

I'm a student at the aetos.it.teithe.gr
and not a commercial programmer.
Thank you for your help!!

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-02-02 : 13:49:23
Please provide a data example of what you mean as what you have described is very confusing.

Tara Kizer
Go to Top of Page

georous
Starting Member

12 Posts

Posted - 2007-02-02 : 14:05:20
Table CC
CC.IT CC.REF
000179726200041 000079617600012
000179726200041 000174835800008

Table KWDS
KWDS.UT KWDS.REF
000179726200041 , tibolone
000179726200041 , C-reactive protein
000079617600012 , hormone replacement therapy
000174835800008 , hormones

Now, i'm trying to get all the keywords of articles referenced by one article. (for each CC.IT)

the results should be like

000179726200041 hormone replacement therapy, hormones ,...

The goal is to group all keywords whose CC.REF is referenced by CC.IT

THNX!!!
Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2007-02-02 : 21:03:51
take a look here http://sqljunkies.com/WebLog/amachanic/archive/2004/11/10/5065.aspx


KH

Go to Top of Page
   

- Advertisement -