Last active
August 29, 2015 14:01
-
-
Save jessenaiman/164fec77cf55e1cd2bb1 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
DELETE FROM [Catalyst.Models.DataContext].[dbo].[transactions] | |
WHERE id = '36833' | |
GO | |
DELETE FROM [Catalyst.Models.DataContext].[dbo].[items] | |
WHERE id = '36833' | |
GO |
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 reference, count(*) totalCount | |
from transactions | |
group by reference | |
having count(*) > 1 |
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 1 * | |
FROM transactions | |
where reference = '2014051514400007657' |
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
Author
jessenaiman
commented
May 21, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment