Viewing 8 posts - 1 through 8 (of 8 total)
It is worth noting that the Date applies to the Created Date and not the Modified Date
!
May 20, 2019 at 8:34 am
Nikos, you have a Policy Header record and 5 Policy Detail records, presumably each detail record contains different information (e.g. items covered, bike, car, house, tv, phone)
if you only...
August 29, 2018 at 2:04 am
Personally I prefer
WITH cte AS (
SELECT a.*,
ROW_NUMBER() OVER(PARTITION BY field1,field2 ORDER BY field1,field2) rrn
FROM dbo.file_with_duplicates a)
DELETE FROM cte WHERE rrn > 1
February 1, 2016 at 10:07 am
but it won't tidy up triplicates....
February 1, 2016 at 8:23 am
The OP is intending that only 1 row will be deleted (because SET ROWCOUNT = 1) and therefore on the 2nd pass will not delete because there is now only...
February 1, 2016 at 4:40 am
according to MSDN, "Using SET ROWCOUNT will not affect DELETE, INSERT, and UPDATE statements in a future release of SQL Server. Avoid using SET ROWCOUNT with DELETE, INSERT, and UPDATE...
February 1, 2016 at 3:59 am
it's working fine now, dunno what happened the previous time 🙂
Thanks for the help
October 14, 2015 at 3:13 am
Hi Steve
This sounds like a really useful tip, but what should I look for if it doesn't work?
Ctrl/F12 does absolutely nothing, yes I do have SQL Prompt installed and it...
May 23, 2014 at 7:00 am
Viewing 8 posts - 1 through 8 (of 8 total)