Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Optimizing Queries Against UNIONed View
artmt_at_hotmail.com wrote:
> Is there a way (other than a meterialized view) to make sure it goes
> directly to the CODE_TYPE2 table?
Try adding a check constraint to each table that limits the value of code_type, then the optimizer will "see" only the table with the code_type you want...
check (code_type = 'CODE_TYPE1') to the first table check (code_type = 'CODE_TYPE2') to the second table Received on Mon Jan 22 2007 - 15:46:13 CST
![]() |
![]() |