You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Instructions/Labs/07-combine-query-results.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@ Now let's try a query using the INTERSECT operator.
66
66
67
67
## Write a query that uses the CROSS APPLY operator
68
68
69
-
Now you will write a table-valued function to return the product category and quantity ordered by specific customers. You will pass the **CustomerID** fom the select statement to the table-valued function in a CROSS APPLY statement.
69
+
Now you will write a table-valued function to return the product category and quantity ordered by specific customers. You will pass the **CustomerID** from the select statement to the table-valued function in a CROSS APPLY statement.
INSERT INTO SalesLT.Address (AddressLine1, City, StateProvince, CountryRegion, PostalCode, rowguid, ModifiedDate)
268
269
VALUES ('6388 Lake City Way', 'Burnaby','British Columbia','Canada','V5A 3A6',NEWID(), GETDATE());
@@ -322,15 +323,15 @@ BEGIN TRANSACTION;
322
323
COMMIT TRANSACTION;
323
324
```
324
325
325
-
5. Right-click the **(loval)\sqlexpress** connection and create a new query. Then enter the following code:
326
+
5. Right-click the **(local)\sqlexpress** connection and create a new query. Then enter the following code:
326
327
327
328
```
328
329
SELECT COUNT(*) FROM SalesLT.Customer
329
330
```
330
331
331
332
6. Run the SELECT COUNT(*) query and note the number of counted rows. Notice the query returns results quickly.
332
333
333
-
7. Return the transaction query for the **AdventureWorks** connection and highlight BEGIN TRANSACTION and INSERT statements (but <u>not</u> the COMMIT TRANSACTION; statement) Then use the **⏵Run** to run only thr highlighted code.
334
+
7. Return the transaction query for the **AdventureWorks** connection and highlight BEGIN TRANSACTION and INSERT statements (but <u>not</u> the COMMIT TRANSACTION; statement) Then use the **⏵Run** to run only the highlighted code.
334
335
335
336
As this is in a transaction that hasn't been committed, running the SELECT COUNT(*) query in the other window will be blocked.
0 commit comments