Skip to content

Commit 44a7750

Browse files
authored
Merge pull request #36 from afelix-95/master
Fixed typos.
2 parents 46c3e25 + 2b5753b commit 44a7750

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

Instructions/Labs/07-combine-query-results.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Now let's try a query using the INTERSECT operator.
6666
6767
## Write a query that uses the CROSS APPLY operator
6868
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.
7070
7171
1. In the query editor, enter the following code:
7272

Instructions/Labs/13-implement-transitions-in-tsql.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,8 @@ END CATCH
262262
BEGIN TRY
263263
BEGIN TRANSACTION;
264264
265-
INSERT INTO SalesLT.Customer (NameStyle, FirstName, LastName, EmailAddress, PasswordHash, PasswordSalt, rowguid, ModifiedDate) VALUES (0, 'Ann','Othercustomr','ann0@adventure-works.com','U1/CrPqSzwLTtwgBehfpIl7f1LHSFpZw1qnG1sMzFjo=','QhHP+y8=',NEWID(), GETDATE());;
265+
INSERT INTO SalesLT.Customer (NameStyle, FirstName, LastName, EmailAddress, PasswordHash, PasswordSalt, rowguid, ModifiedDate)
266+
VALUES (0, 'Ann','Othercustomr','ann0@adventure-works.com','U1/CrPqSzwLTtwgBehfpIl7f1LHSFpZw1qnG1sMzFjo=','QhHP+y8=',NEWID(), GETDATE());;
266267
267268
INSERT INTO SalesLT.Address (AddressLine1, City, StateProvince, CountryRegion, PostalCode, rowguid, ModifiedDate)
268269
VALUES ('6388 Lake City Way', 'Burnaby','British Columbia','Canada','V5A 3A6',NEWID(), GETDATE());
@@ -322,15 +323,15 @@ BEGIN TRANSACTION;
322323
COMMIT TRANSACTION;
323324
```
324325

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:
326327

327328
```
328329
SELECT COUNT(*) FROM SalesLT.Customer
329330
```
330331

331332
6. Run the SELECT COUNT(*) query and note the number of counted rows. Notice the query returns results quickly.
332333

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 **&#x23f5;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 **&#x23f5;Run** to run only the highlighted code.
334335

335336
As this is in a transaction that hasn't been committed, running the SELECT COUNT(*) query in the other window will be blocked.
336337

0 commit comments

Comments
 (0)