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 Issue

Author  Topic 

sqldba2k6
Posting Yak Master

176 Posts

Posted - 2006-07-13 : 14:04:43
I need help in writing the query to get the output.


Table:SIN

SID SEID FMID TP
--- ---- --- ---
126 4000 5107 A
115 NULL 5107 B
116 NULL 5107 B

Table:HIT

RNRSNP SID
------ ----
NULL 121
NULL 131
NULL 113
08 116
09 103
NULL 128
NULL 119
NULL 107
NULL 110

Now i want the output like below.

RNRSNP SID SEID
------ ---- -----
08 116 4000

Thanks for help in advance!

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2006-07-13 : 15:29:08
Duplicate post. See this topic http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=69089


Peter Larsson
Helsingborg, Sweden
Go to Top of Page
   

- Advertisement -