Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Sanjay Kumar — — source: Informix-list mailing list archive (1991-1998)
Following query should get u the desired result -
SELECT t1.exchg_time, t1.exchg_rate
FROM curr_table t1, curr_table t2
WHERE t1.exchg_time <= t2.exchg_time AND
t1.curr_code = "CAD"
GROUP BY 1,2
HAVING count(*) <= 5
ORDER BY 1
This solution will get u the last 5 records for the CANADIAN Dollars.
Hope this helps
____________
Sanjay Kumar Email: skumar@raileurope.com
Rail Europe Inc.
226 Westchester Ave | Office : (914) 681 3296
White Plains, NY 10604 | Fax : (914) 682 5236
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.