Sentencia SQL

10/09/2003 - 19:05 por Alejandro Archila Celis | Informe spam
Tengo la siguiente sentencia SQL que me selecciona la ultima noticia
incluidad

Necesito ayuda para escoger las dos ultimas noticias

sql = "SELECT TOP 1 * FROM cms WHERE SECCION='Subdireccion Financiera' Order
By ID_Noticia Desc"

Gracias por la ayuda
 

Leer las respuestas

#1 Jhonny Vargas P.
10/09/2003 - 19:12 | Informe spam
Select TOP 2 from..

si quieres 3.
Select TOP 3 from..



Saludos,
Jhonny Vargas P. [MS MVP-ASP]
Santiago de Chile


"Alejandro Archila Celis" wrote in message
news:#
Tengo la siguiente sentencia SQL que me selecciona la ultima noticia
incluidad

Necesito ayuda para escoger las dos ultimas noticias

sql = "SELECT TOP 1 * FROM cms WHERE SECCION='Subdireccion Financiera'


Order
By ID_Noticia Desc"

Gracias por la ayuda


Preguntas similares