1SELECT
2 (SELECT * FROM tableName ORDER BY col1 LIMIT 1) AS first,
3 (SELECT * FROM tableName ORDER BY col1 DESC LIMIT 1) AS last
4;
1(select *from DemoTable694 order by EmployeeId ASC LIMIT 1)
2UNION
3(select *from DemoTable694 order by EmployeeId DESC LIMIT 1);
1SELECT lastName,firstName FROM Customer
2 WHERE lastName LIKE "B%"
3 AND city = "Indianapolis"
4 AND (phone LIKE "%8%" OR fax LIKE "%8%")