All source code shown in lecture can be directly downloaded from your workbook.
Source code can be easily downloaded by simply copying it to the clipboard using the button in the upper right-hand corner of the code block window, and then pasting into a text file. You can test this using the code example below.
USE AdventureWorks2016SELECT MAX(LineTotal) AS BiggestLineTotalFROM Sales.SalesOrderDetailSELECT MIN(LineTotal) AS SmallestLineTotalFROM Sales.SalesOrderDetailSELECT AVG(LineTotal) AS AverageLineTotalFROM Sales.SalesOrderDetailSELECT COUNT(SalesOrderDetailID) AS TotalRecordsInTableFROM Sales.SalesOrderDetailSELECT SUM(LineTotal) AS TotalOfTheOrdersInTheTableFROM Sales.SalesOrderDetail