Khamis Abuelkomboz wrote:
HiHow many records contain your table? Your select command scans all the table entries and I guess that the database uses the standard index. try the following command to tell the db which index it should use:select distinct date from mytable where yearmonth = '200508' order by date
Sorry I meenselect distinct date from mytable where yearmonth = '200508' order by yearmonth , date