![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
06/12/2005, 01:56
|
| | Fecha de Ingreso: agosto-2004
Mensajes: 4
Antigüedad: 20 años, 6 meses Puntos: 0 | |
Porque te faltan las comillas
SELECT cod_venta FROM venta_prod WHERE fecha between '2005/08/01' and '2005/08/30' order by cod_venta
Pero lo correcto para este tepo de consultas es:
SELECT cod_venta FROM venta_prod WHERE (fecha>= '2005-08-01' and fecha <='2005-08-30') order by cod_venta
Saludos |