Message
From
22/03/2010 11:36:08
Michel Fournier
Level Extreme Inc.
Petit-Rocher
,
New Brunswick
,
Canada
To
22/03/2010 09:05:55
Naomi Nosonovsky
Wisconsin
,
United States
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Re:
Question on Union All
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 the map of this thread
View the map of this thread starting from this message only
View
View all messages of this thread
View all messages of this thread starting from this message only