Cómo obtener la primera y la última fila

PHOTO EMBED

Thu Nov 05 2020 14:30:20 GMT+0000 (Coordinated Universal Time)

Saved by @fadas

SELECT (

SELECT TOP 1 *  
FROM Pedido
ORDER BY Fecha ASC

)
UNION
SELECT (

SELECT TOP 1 *
FROM Pedido
ORDER BY Fecha DESC

)
content_copyCOPY