Created
June 28, 2012 15:01
-
-
Save ksummerlin/3011852 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select top 3 | |
OH.SalesOrderID, | |
OH.CustomerId, | |
OH.SalesOrderNumber, | |
OH.Status | |
from Sales.SalesOrderHeader OH | |
where | |
OH.CustomerID = @customer_id | |
and OH.SalesOrderID <> @current_sales_id | |
order by OH.OrderDate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment