Access - PROBLEMAS CON LAS FECHAS

 
Vista:

PROBLEMAS CON LAS FECHAS

Publicado por JUAN SERRANO (21 intervenciones) el 01/06/2001 17:41:00
COMO PUEDO, DESDE LOS CRITERIOS DE UNA CONSULTA, SABER TODOS LOS QUE TENGAN 30 AÑOS. TENGO UNA BASE DE DATOS CON LA FECHA DE NACIMIENTO, ES DECIR, 20/01/1957 POR EJ.

NECESITO AYUDA URGENTE....
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:PROBLEMAS CON LAS FECHAS

Publicado por Jorge Omar Ceyca Castro (8 intervenciones) el 01/06/2001 18:02:39
Respuesta Posible!!!

1
2
3
Select *
From Empleados
Where (GetDate()-FecNac) = 30

Sinceramente no estoy seguro si funcione pero intentalo la funcion GetDate() existe en el SQL Server.... me dices que paso :D

Suerte
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar