Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/07/2011, 07:19
Avatar de Libras
Libras
Colaborador
 
Fecha de Ingreso: agosto-2006
Ubicación: En la hermosa perla de occidente
Mensajes: 7.412
Antigüedad: 17 años, 8 meses
Puntos: 774
Respuesta: Generar una Vista

create view nombre_de_la_vista
as

select dato1,dato2,max(dato_fecha) from
(
select tabla1.dato1,tabla2.dato2,tabla1.dato3,tabla2.dato 4,tabla3.dato5
from tabla1
inner join tabla2 on (tabla1.id=tabla2.id)
inner join tabla3 on (tabla2.id=tabla3.id)
) as t1


Algo asi :)

Saludos!
__________________
What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me