Created
May 14, 2016 17:46
-
-
Save samirbehara-zz/45d2064ebca3f907656bc975127e6b1d to your computer and use it in GitHub Desktop.
Live Query Statistics in SQL Server 2016
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
-- Script to demonstrate the Live Query Statistics Feature in SQL Server 2016 | |
SELECT * FROM Production.Product PR | |
INNER JOIN Production.Product_ondisk PO | |
ON PO.SellStartDate = PR.SellStartDate | |
--ON PO.ProductSubcategoryID = PR.ProductSubcategoryID | |
INNER JOIN Production.ProductModel PM | |
ON PM.ProductModelID = PR.ProductModelID | |
CROSS APPLY Production.ProductSubcategory PSC | |
WHERE PR.ProductNumber LIKE '%FR%' | |
-------------------------------------------------------------- | |
SELECT * FROM Production.Product PR | |
INNER JOIN Production.Product_ondisk PO | |
ON PO.FinishedGoodsFlag = PR.FinishedGoodsFlag | |
CROSS APPLY Production.ProductSubcategory PSC | |
WHERE PR.ProductNumber LIKE '%FR%' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment