Re: [SQL] limit 1 and functional indexes: SOLVED

2004-01-30 Thread Greg Stark
"Alexandra Birch" <[EMAIL PROTECTED]> writes: > It works perfectly - thanks a million! > Strangely the offset 0 does not seem to make any difference. > Gotta read up more about subqueries :) > > explain analyze > select code,order_date >from ( > select code, order_date >

Re: [SQL] limit 1 and functional indexes: SOLVED

2004-01-30 Thread Alexandra Birch
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: viernes, 30 de enero de 2004 7:08 > > Yeah, the problem with functional indexes is that the optimizer doesn't have > any clue how the records are distributed since it only has statistics for > columns, not your expression. Notice it's est