Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Join statement
Message
 
 
À
16/03/2010 14:13:38
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:
01454882
Vues:
25
>Hi
>
>You'll have to show me via the code, I'm confused by your reply.
>
>Regards
;with cte as (Select *, 1 as SortOrder from dbo.SystemDataDictionary
union all 
select *, 2 as SortOrder from dbo.ApplicationDataDictionary)

select * from (select *, row_number() over (partition by MyField order by SortOrder) as row from cte) X 
where Row = 1 order by DataID
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform