Reply to Re: UPDATE a table with aggregate results for multiple columns

Your name:

Reply:


Posted by jim_geissman on 01/08/07 17:24

You might get more speed by creating a temp table (or subquery)
from HREH for each HRCo and HRRef pair, populated with MIN(),
MAX() and MAX(), with GROUP BY HRCo and HRRef. Then update
#MyTable from that, which has a single row per case. This may
depend on the relative sizes of HREH and #MyTable. If HREH has
a lot more cases than #MyTable, the temp table or subquery could
be from the join of the the two, to limit it to the cases present in
#MyTable.

Jim

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация