General information
Forum:
Microsoft SQL Server
Environment versions
SQL Server:
SQL Server 2005
Hi
How would I modify this SQL statement so that if a MessageID exists in both tables, the resulting table should ONLY take the record from the ApplicationMessage table?
select * from dbo.SystemMessage where MessageID = @LnMessageID
union all
select * from dbo.ApplicationMessage where MessageID = @lnMessageID
order by MessageID
Regards
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only