|
Archives of the TeradataForumMessage Posted: Mon, 25 Jul 2005 @ 15:01:19 GMT
Sandipan, We can across a similar problem, but it was not a self join. Ours needed to join to a reference table twice. The table was a small reference table with very little update or inserts. We duplicated the table and maintain the second copy with triggers. This will only work in your case when... 1) You have enough space to duplicate 2) updates and inserts into the table are manageable. This should be the case because JOIN INDEX maintenance will be a problem otherwise. Sometimes self joins can be avoided by using an 'aggregate Window function' for example avg(pctchg) over (partition by databasename order by calendar_date rows 3 preceding) Thanks, Bob Diehl
| ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||