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.
| Author |
Topic |
|
Rita Bhatnagar
Posting Yak Master
172 Posts |
Posted - 2001-04-06 : 15:57:16
|
| i know this query is wrong but i am kind of lost.need help.Declare @alngEntityID int,@alngIdentifierTypeID intSELECT I.*, IT.IdentifierTypeFROM IdentifierType IT INNER JOIN Identifier I ON (IT.IdentifierTypeId = I.IdentifierTypeId) AND (IT.IdentifierTypeId = I.IdentifierTypeId)WHERE EntityID =(Select Case when @alngEntityID>0 Then @alngEntityID Else (select EntityID from Identifier) End) AND I.IdentifierTypeID =(Case When @alngIdentifierTypeID>0 Then @alngIdentifierTypeID Else (select IdentifierTypeID from Identifier) End) |
|
|
|
|
|