> El 7/9/2015, a las 15:00, Tim Ward t...@telensa.com [firebird-support] 
> <firebird-support@yahoogroups.com> escribió:
> 
> Please can someone explain to me, again, why
> 
> select Max(MYCOL) from MYTAB
> 
> doesn't use the primary key
> 
> PLAN (MYTAB NATURAL)
> 
I think you need to have a descending index in order to use it for select max.

If you select min instead of max, the pk index will be used

Jesus
> 
  • ODP: Re: [fire... liviuslivius liviusliv...@poczta.onet.pl [firebird-support]
    • Re: ODP: ... Alexey Kovyazin a...@ib-aid.com [firebird-support]
      • [fire... Tim Ward t...@telensa.com [firebird-support]
        • R... fabianoas...@gmail.com [firebird-support]
        • R... Jesus Garcia jeg...@gmail.com [firebird-support]
        • [... Virgo Pärna virgo.pa...@mail.ee [firebird-support]
          • ... Tim Ward t...@telensa.com [firebird-support]
            • ... Nick Upson n...@telensa.com [firebird-support]
              • ... Tim Ward t...@telensa.com [firebird-support]
                • ... 'Leyne, Sean' s...@broadviewsoftware.com [firebird-support]
            • ... Svein Erling Tysvær setys...@gmail.com [firebird-support]

Reply via email to