17 | |
18 | USE AdventureWorks2012; 19 | GO 20 | 21 | /*----------------------------------------------------------------------*/ 22 | --The Production schema demos the Brace Matching (Rectangle) 23 | SELECT 'Total income is', ((OrderQty * UnitPrice) * (1.0 - UnitPriceDiscount)), ' for ', 24 | p.Name AS ProductName 25 | FROM Production.Product AS p 26 | INNER JOIN Sales.SalesOrderDetail AS sod 27 | ON p.ProductID = sod.ProductID 28 | ORDER BY ProductName ASC; 29 | GO 30 | 31 | /*----------------------------------------------------------------------*/ 32 | SELECT SUM(p.ListPrice) AS [ListPrice], 33 | GETDATE() AS [DT] 34 | FROM Production.Product AS p 35 | GO 36 | 37 | /*----------------------------------------------------------------------*/ 38 | exec sp_executesql N'SELECT TOP (10) * FROM sys.tables t' 39 | GO 40 | 41 | /*----------------------------------------------------------------------*/ 42 | --The SELECT TOP demos the FindHighlight 43 | SELECT TOP (10) * FROM sys.tables t 44 | GO 45 | 46 | /*----------------------------------------------------------------------*/ 47 | --The parantheses highlighted here are for demoing the Brace Matching (Highlight) 48 | SELECT TOP (10) * FROM sys.dm_exec_requests der 49 | GO 50 | 51 | /*----------------------------------------------------------------------*/ 52 | <?xml version="1.0" encoding="utf-8"?> 53 | 54 | <Stores> 55 | <Store 56 | BusinessEntityID="292" 57 | Name="Next-Door Bike Store" 58 | SalesPersonID="279"> 59 | <Customers> 60 | <Customer> 61 | <CustomerID>585</CustomerID> 62 | <StoreID>292</StoreID> 63 | <AccountNumber>AW00000585</AccountNumber> 64 | </Customer> 65 | <Customer> 66 | <CustomerID>29484</CustomerID> 67 | <StoreID>292</StoreID> 68 | <AccountNumber>AW00029484</AccountNumber> 69 | </Customer> 70 | </Customers> 71 | </Store> 72 | </Stores> 73 | 74 | 75 | |
76 |