“Seleccione First and Last Fila MySQL” Código de respuesta

Seleccione First and Last Fila MySQL

(select *from DemoTable694 order by EmployeeId ASC LIMIT 1)
UNION
(select *from DemoTable694 order by EmployeeId DESC LIMIT 1);
Harendra

Seleccione la última fila mysql

SELECT
  (SELECT * FROM tableName ORDER BY col1 LIMIT 1)        AS first,
  (SELECT * FROM tableName ORDER BY col1 DESC LIMIT 1)   AS last
;
VasteMonde

Respuestas similares a “Seleccione First and Last Fila MySQL”

Preguntas similares a “Seleccione First and Last Fila MySQL”

Más respuestas relacionadas con “Seleccione First and Last Fila MySQL” en Sql

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código