M
Maxie
Thanks to John Verhagen I've gotten the following query
working....
SELECT ticker, avg(close) as 50DMA
FROM pub_price_history
WHERE date IN (SELECT DISTINCT top 50 date FROM
pub_price_history ORDER BY date DESC)
GROUP BY ticker;
But now I've got 2 additional issues, I'm hoping someone
can help me with....
1) What if I want to calculate 2 different moving averages
in the same query....say a 50 day moving average and a 200
day moving average? How would I do that in one query?
2) This query takes about 10 minutes to run. Is there any
way to speed it up? I'm running on a P2 266Mhz. I'm
hoping when I get my primary computer back (an AMD XP2000)
that this won't be a problem....but I'm not sure....10
minutes is still a long time.
Thanks in advance.
Maxie III
working....
SELECT ticker, avg(close) as 50DMA
FROM pub_price_history
WHERE date IN (SELECT DISTINCT top 50 date FROM
pub_price_history ORDER BY date DESC)
GROUP BY ticker;
But now I've got 2 additional issues, I'm hoping someone
can help me with....
1) What if I want to calculate 2 different moving averages
in the same query....say a 50 day moving average and a 200
day moving average? How would I do that in one query?
2) This query takes about 10 minutes to run. Is there any
way to speed it up? I'm running on a P2 266Mhz. I'm
hoping when I get my primary computer back (an AMD XP2000)
that this won't be a problem....but I'm not sure....10
minutes is still a long time.
Thanks in advance.
Maxie III