Skip to content

Instantly share code, notes, and snippets.

@Boztown
Created May 23, 2012 17:17
Show Gist options
  • Save Boztown/2776464 to your computer and use it in GitHub Desktop.
Save Boztown/2776464 to your computer and use it in GitHub Desktop.
T-SQL: Get latest record with shared GUID
SELECT DISTINCT TOP 1 * FROM Customers WHERE CustomerGUID = 'a3a3' ORDER BY CreatedAt DESC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment