Last active
December 20, 2015 01:09
-
-
Save mkdizajn/6046721 to your computer and use it in GitHub Desktop.
Display sql server columns from more tables with 'union all'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(select COUNT(*) from temp.dbo.[tbl1]) union all | |
(select COUNT(*) from temp.dbo.[tbl2]) union all | |
(select COUNT(*) from temp.dbo.[tbl3]) union all | |
(select COUNT(*) from temp.dbo.[tbl4]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment