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
 Transact-SQL (2000)
 specified multiple times

Author  Topic 

gotafly
Yak Posting Veteran

54 Posts

Posted - 2005-04-14 : 14:39:02
Not sure if just giving you this much info helps?

Server: Msg 8156, Level 16, State 1, Line 1
The column 'ProgramSID' was specified multiple times for 'MySubQuery2'.


Select * from tblACRDIMProgramTemp
Join (Select * from tblACRDIMProgramPending
Join (select ProgramSID, Max(ProgramLOIAcknowledged) as MyMaxDate From tblACRDIMProgramPending Group By ProgramSID) as MySubQuery1 ON
tblACRDIMProgramPending. ProgramSID = MySubQuery1.ProgramSID AND
tblACRDIMProgramPending.ProgramLOIAcknowledged = MySubQuery1.MyMaxDate) as MySubQuery2 ON
tblACRDIMProgramTemp.ProgramSID = MySubQuery2.ProgramSID

X002548
Not Just a Number

15586 Posts

Posted - 2005-04-14 : 14:41:45
Exactly what it say...get rid of the SELECT *

You can't have 2 columns named the same in a derived table



Brett

8-)
Go to Top of Page
   

- Advertisement -