![SQL SERVER - How to Retrieve TOP and BOTTOM Rows Together using T-SQL - SQL Authority with Pinal Dave SQL SERVER - How to Retrieve TOP and BOTTOM Rows Together using T-SQL - SQL Authority with Pinal Dave](https://blog.sqlauthority.com/i/b/unionall.gif)
SQL SERVER - How to Retrieve TOP and BOTTOM Rows Together using T-SQL - SQL Authority with Pinal Dave
![Sql Server : How to SELECT BOTTOM to records (vs TOP 10 records) maintaining the same order in records | Playing with database servers... Sql Server : How to SELECT BOTTOM to records (vs TOP 10 records) maintaining the same order in records | Playing with database servers...](https://sqltimes.files.wordpress.com/2017/06/botom_10.png)
Sql Server : How to SELECT BOTTOM to records (vs TOP 10 records) maintaining the same order in records | Playing with database servers...
![sql - select rows mysql order by custom value From the bottom of the table to the top of the table - Stack Overflow sql - select rows mysql order by custom value From the bottom of the table to the top of the table - Stack Overflow](https://i.stack.imgur.com/YKWsS.jpg)
sql - select rows mysql order by custom value From the bottom of the table to the top of the table - Stack Overflow
![Sql Server : How to SELECT BOTTOM to records (vs TOP 10 records) maintaining the same order in records | Playing with database servers... Sql Server : How to SELECT BOTTOM to records (vs TOP 10 records) maintaining the same order in records | Playing with database servers...](https://sqltimes.files.wordpress.com/2017/06/botom_5_needed.png)
Sql Server : How to SELECT BOTTOM to records (vs TOP 10 records) maintaining the same order in records | Playing with database servers...
![SQL SERVER - How to Retrieve TOP and BOTTOM Rows Together using T-SQL - SQL Authority with Pinal Dave SQL SERVER - How to Retrieve TOP and BOTTOM Rows Together using T-SQL - SQL Authority with Pinal Dave](https://i0.wp.com/blog.sqlauthority.com/i/b/ViewLimit1.jpg?resize=350%2C200&ssl=1)
SQL SERVER - How to Retrieve TOP and BOTTOM Rows Together using T-SQL - SQL Authority with Pinal Dave
![SQL SERVER - How to Retrieve TOP and BOTTOM Rows Together using T-SQL - Part 2 - CTE - SQL Authority with Pinal Dave SQL SERVER - How to Retrieve TOP and BOTTOM Rows Together using T-SQL - Part 2 - CTE - SQL Authority with Pinal Dave](https://i0.wp.com/blog.sqlauthority.com/wp-content/uploads/2008/03/unionall1.gif?resize=350%2C200&ssl=1)
SQL SERVER - How to Retrieve TOP and BOTTOM Rows Together using T-SQL - Part 2 - CTE - SQL Authority with Pinal Dave
![SQL SERVER - How to Retrieve TOP and BOTTOM Rows Together using T-SQL - SQL Authority with Pinal Dave SQL SERVER - How to Retrieve TOP and BOTTOM Rows Together using T-SQL - SQL Authority with Pinal Dave](https://blog.sqlauthority.com/wp-content/uploads/2008/03/unionall1.gif)