Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

select first and last row mysql

(select *from DemoTable694 order by EmployeeId ASC LIMIT 1)
UNION
(select *from DemoTable694 order by EmployeeId DESC LIMIT 1);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #select #row #mysql
ADD COMMENT
Topic
Name
8+6 =