Re: [PERFORM] SubQuery Performance

2010-08-25 Thread A. Kretschmer
In response to mike : > Hi All, > > I have a poor performance SQL as following. The table has about 200M > records, each employee have average 100 records. The query lasts about > 3 hours. All I want is to update the flag for highest version of each > client's record. Any suggestion is welcome! >

[PERFORM] SubQuery Performance

2010-08-25 Thread mike
Hi All, I have a poor performance SQL as following. The table has about 200M records, each employee have average 100 records. The query lasts about 3 hours. All I want is to update the flag for highest version of each client's record. Any suggestion is welcome! Thanks, Mike SQL===