Hi there i have a problem with on mysql query ..
i want to extract all the data from mysql table within 2 months ..
[CODE=SQL]
SELECT
data_curenta,co d_produs,denumi re,cantitate,pr et,round((canti tate*pret),2) as 'Total',firma
FROM procesare
WHERE
tip_actiune='in trare'
AND
data_curenta >= '2007-04-03'
and
data_curenta <= '2007-05-05'
ORDER by cod_produs asc;
[/CODE]
i want to do something like that only with months :
data_curenta like '%2007-04%' and data_curenta like '%2007-06%'
i don't know how to do it .Pls help
i want to extract all the data from mysql table within 2 months ..
[CODE=SQL]
SELECT
data_curenta,co d_produs,denumi re,cantitate,pr et,round((canti tate*pret),2) as 'Total',firma
FROM procesare
WHERE
tip_actiune='in trare'
AND
data_curenta >= '2007-04-03'
and
data_curenta <= '2007-05-05'
ORDER by cod_produs asc;
[/CODE]
i want to do something like that only with months :
data_curenta like '%2007-04%' and data_curenta like '%2007-06%'
i don't know how to do it .Pls help
Comment