Hey
Im wondering if its possible to speed up this code.
Taking ages.
thanks
Im wondering if its possible to speed up this code.
Taking ages.
Code:
SELECT Tabell1.Pnr, Tabell1.Handk, Tabell1.`From`, Tabell1.lon, Tabell1.Fri, Tabell1.Hsfil FROM fors Tabell1 WHERE (Tabell1.Hsfil = (SELECT MAX(Tabell2.Hsfil) FROM fors Tabell2 WHERE Tabell2.From <=20050101 and Tabell1.Handk <> 40 and Tabell1.Pnr = Tabell2.Pnr))
Comment