Message
From
22/03/2010 11:36:08
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01455995
Message ID:
01456140
Views:
28
>Anyway, one more time - using the derived table is the correct approach for this problem, since TOP clause applies to the first select and then the second select (from UNION ALL part) brings all records satisfying the condition.

Thanks
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View