![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
![Connect and query a SQL Server instance using SQL Server Management Studio (SSMS) - SQL Server Management Studio (SSMS) | Microsoft Docs Connect and query a SQL Server instance using SQL Server Management Studio (SSMS) - SQL Server Management Studio (SSMS) | Microsoft Docs](https://docs.microsoft.com/en-us/sql/ssms/quickstarts/media/ssms-connect-query-sql-server/query-results.png?view=sql-server-ver15)
Connect and query a SQL Server instance using SQL Server Management Studio (SSMS) - SQL Server Management Studio (SSMS) | Microsoft Docs
![Connect and query a SQL Server instance using SQL Server Management Studio (SSMS) - SQL Server Management Studio (SSMS) | Microsoft Docs Connect and query a SQL Server instance using SQL Server Management Studio (SSMS) - SQL Server Management Studio (SSMS) | Microsoft Docs](https://docs.microsoft.com/en-us/sql/ssms/quickstarts/media/ssms-connect-query-sql-server/execute.png?view=sql-server-ver15)
Connect and query a SQL Server instance using SQL Server Management Studio (SSMS) - SQL Server Management Studio (SSMS) | Microsoft Docs
![sql server - Using a SELECT inside of another SELECT statement where the nested SELECT takes as input a value from the first SELECT - Stack Overflow sql server - Using a SELECT inside of another SELECT statement where the nested SELECT takes as input a value from the first SELECT - Stack Overflow](https://i.stack.imgur.com/khO3c.png)
sql server - Using a SELECT inside of another SELECT statement where the nested SELECT takes as input a value from the first SELECT - Stack Overflow
![SQL SERVER - Find Collation of Database and Table Column Using T-SQL - SQL Authority with Pinal Dave SQL SERVER - Find Collation of Database and Table Column Using T-SQL - SQL Authority with Pinal Dave](https://blog.sqlauthority.com/i/b/findcollation.jpg)