I want to retrieve some values within this month. Is date_format the most effective way? Or is it any sql that cost less?
SELECT SUM(trades) trades
FROM stats_trades
WHERE DATE_FORMAT(date_trade,'%Y%m') = DATE_FORMAT(now(),'%Y%m')
thanks / Henrik
--- neteject.com - Internet Solutions ---
SELECT SUM(trades) trades
FROM stats_trades
WHERE DATE_FORMAT(date_trade,'%Y%m') = DATE_FORMAT(now(),'%Y%m')
thanks / Henrik
--- neteject.com - Internet Solutions ---