Groups | Blog | Home
all groups > sql server (alternate) > january 2006 >

sql server (alternate) : Advanced Data Shaping - Multiple Relate clause


doar123 NO[at]SPAM gmail.com
1/18/2006 1:53:53 PM
Hello,

I'm using a shape query, but instead of using a simple clause "RELATE
field1 to field2" (relates the parent to the child), i wan't to use 2
relates. somthing like "RELATE field1 to field2 AND field3 to field4".

I want to receive in the children RS only the records who apply both
conditions.

How do i do that ?

Thanks !
Erland Sommarskog
1/18/2006 10:31:29 PM
(doar123@gmail.com) writes:
[quoted text, click to view]

I suspect that a newsgroup on ADO is better fitted for this question.

Or try Google. Entering SHAPE APPEND RELATE led me to
http://support.microsoft.com/default.aspx?scid=189657 which a
appears to have the answer you are looking for.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
ng
1/20/2006 3:34:08 AM
I havn't tryed. My idea: Create a field in the parent rs wich contains
both field1 and field2. For example:
Fieldx = cast(field1 as char(10)) + cast(field2 as char(10))
Do this in the child-rs, too and relate them with the Fieldx

Michael

www.zankl-it.de
AddThis Social Bookmark Button