![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)
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_5_result.png)
Sql Server : How to SELECT BOTTOM to records (vs TOP 10 records) maintaining the same order in records | Playing with database servers...
![How Does TOP WITH TIES Work in SQL Server? - Interview Question of the Week #159 - SQL Authority with Pinal Dave How Does TOP WITH TIES Work in SQL Server? - Interview Question of the Week #159 - SQL Authority with Pinal Dave](https://blog.sqlauthority.com/i/d/topwithties1.png)
How Does TOP WITH TIES Work in SQL Server? - Interview Question of the Week #159 - 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/i/b/unionall.gif)