Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Join statement
Message
 
 
À
16/03/2010 12:41:44
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Versions des environnements
SQL Server:
SQL Server 2005
Application:
Desktop
Divers
Thread ID:
01454733
Message ID:
01454850
Vues:
25
>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

BTW, I noticed that you never respond back if the answer satisfies you - IMHO, you should somehow aknowledge this, because otherwise it's not clear if the solution worked for you or not.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform