Simon, > It's the first time I've thought to compare the constraint predicates on > joined tables based upon the join restriction. That's possible, but > would take some time to work out. > > I've argued that such a construct is not common. I'm open to suggestions > about what *is* common...
I also don't believe it is commonly used. There are occasions where fact tables are joined on a common key, but for CE to be effective, the key would have to be used in a similar way in constructing the partitions. There are many other ways to accomplish useful patterns, like partitioning fact tables based on a date based key, then using a constant predicate in the join, e.g: SELECT * FROM Fact AND Dimension WHERE Fact.a = Dimension.a AND to_char(T1.key,"MONTH") = 'JUNE' AND to_char(T1.key,"YYYY") = '2003'; With Fact defined with 12 partitions CHECK(to_char(key,"MONTH") EQUAL 'JANUARY') ... CHECK(to_char(key,"MONTH") EQUAL 'DECEMBER') - Luke ---------------------------(end of broadcast)--------------------------- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly