Viewing 15 posts - 286 through 300 (of 391 total)
To be more specific, the records with the same email, since the whole record is not an exact duplicate. Each record key is still unique.
I am trying to generate some...
July 16, 2009 at 7:09 am
Delete original records from a SQL Server database.
Thanks
July 16, 2009 at 6:41 am
with Dups as
( SELECT *,row_number()
OVER
(partition by email1 order by email1, id3 desc) as RowNum
FROM outputresume3)
Delete from Dups where rownum > 1;
I ran the above code and am...
July 15, 2009 at 2:11 pm
DECLARE @Table TABLE (id3 int, resume varchar(256), email1 varchar(256))
INSERT INTO @Table
SELECT 454382, 'testresume1', 'abc@hotmail.com' UNION ALL
SELECT 612832, 'testresume2', 'john@global.net' UNION ALL
SELECT 612833, 'testresume2', 'john@global.net' UNION ALL
SELECT 612834, 'testresume2', 'john@global.net'
SELECT...
July 15, 2009 at 7:46 am
Sample data:
col(id3) col(email1)
454382abc@hotmail.com
612832john@global.net
612833john@global.net
612834john@global.net
I would like the results to be:
454382abc@hotmail.com
612834john@global.net
Since the 454382 record is unique and the 612834 record is the highest id3 (most recent).
Thanks
July 14, 2009 at 1:37 pm
I am still trying to figure out the best solution !
It is a work in progress 🙂
The only reason i did not use a temp table is that i...
July 2, 2009 at 2:07 pm
No, i have :
SQL Server program files on - C drive
.ldf on an array on E drive
.mdf on an array on F drive
tempdb on an array on...
July 2, 2009 at 1:27 pm
Jeffrey Williams (7/2/2009)
ifila (7/2/2009)
It took 35 minutes to process 600...
July 2, 2009 at 1:09 pm
I do have a couple of questions. While testing Jeffrey's solution, is there any way to make it run quicker ?
It took 35 minutes to process 600 000 records !
How...
July 2, 2009 at 12:37 pm
I just tested Jeffrey's solution and it works ! 🙂
Many Thanks to both of you, for your assistance !
July 2, 2009 at 11:54 am
I added a screen shot of my SQL DB.
All resumes are initially imported into dbo.emailaddress which has one big field 'emailaddresstxt'.
READ desktop text folder - WRITE to dbo.emailaddress
At this point...
July 2, 2009 at 11:10 am
GilaMonster (7/2/2009)
ifila (7/2/2009)
I will grab the first record - in this case 'livelink, java'The one with the lowest ID?
yes
July 2, 2009 at 10:47 am
GilaMonster (7/2/2009)
Insert into resumein (OriginalResume, OriginalEmail)
Values ('java','...
July 2, 2009 at 10:40 am
Viewing 15 posts - 286 through 300 (of 391 total)