Quantcast
Channel: www.oaktable.net - Ignoring Hints
Viewing all articles
Browse latest Browse all 15

Hints again

$
0
0

A recent posting on OTNcame up with a potentially interesting problem – it started roughly like this:

I have two queries like this:

select * from emp where dept_id=10 and emp_id=15;
select * from emp where dept_id=10 and emp_id=16;

When I run them separately I get the execution plan I want, but when I run a union of the two the plans change.

read more


Viewing all articles
Browse latest Browse all 15

Trending Articles