Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Join statement
Message
 
 
To
16/03/2010 14:13:38
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Environment versions
SQL Server:
SQL Server 2005
Application:
Desktop
Miscellaneous
Thread ID:
01454733
Message ID:
01454882
Views:
24
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform