![stored procedures - SQL - use variable as column in SELECT statement and WHERE clause - Database Administrators Stack Exchange stored procedures - SQL - use variable as column in SELECT statement and WHERE clause - Database Administrators Stack Exchange](https://i.stack.imgur.com/5W81p.jpg)
stored procedures - SQL - use variable as column in SELECT statement and WHERE clause - Database Administrators Stack Exchange
![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 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
![database - DQL/SQL to Excel - obtain results of multiple SELECT statements in spreadsheet - Super User database - DQL/SQL to Excel - obtain results of multiple SELECT statements in spreadsheet - Super User](https://i.stack.imgur.com/wTdoJ.png)