![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
13/03/2009, 02:15
|
![Avatar de Taribo007](http://static.forosdelweb.com/customavatars/avatar192356_1.gif) | | | Fecha de Ingreso: agosto-2007
Mensajes: 1.338
Antigüedad: 17 años, 6 meses Puntos: 18 | |
Respuesta: Obtener dia y mes de una fecha No estoy seguro, pero por probar, igual te falta:
select month(fecha) as MES,codigon,salario,totalhoras,trab from nominas where fecha=@fecha
Un saludo |