Beruflich Dokumente
Kultur Dokumente
Error Log for Product 2778A, Writing Queries Using Microsoft SQL Server 2008 Transact-SQL
Some feedback may require research or reproduction of specific conditions in a lab environment. Please provide any details that are necessary to help quickly research or verify the error.
Error Log for Product 2778A, Writing Queries Using Microsoft SQL Server 2008 Transact-SQL
1 = Technical error or technical change 2 = Clarification or simplification 3 = Typographical error 4 = Other Send the completed form to the courseware support alias at support@mscourseware.com.
Slide
Date added April 24, 2009 Slide Error or suggested change number Module Issue: 8, slide The demonstration instructions state: 12 "Start SQL Server Management Studio and, using the AdventureWorks2008 database, perform each of the queries found in E:\MOD08\Democode\BuildingView.sql." E:\MOD08\Democode\BuildingView.sql doesn't exist on the virtual machine. Solution: These democode files are not on the VM but they in the build in Allfiles.exe. They could be made accessible from VM in order to perform the demo. To do this, extract the files in Allfiles.exe. The files to fix this bug are located in the \Mod08\Democode folder. Here are two recommendations on how to copy the files on to the VM. 1. Copy the democode files to a CD\DVD or ISO image. Launch the VM. Open Microsoft Virtual Server and edit the settings for the VM. Change the CD\DVD value to use the host CD\DVD or capture the ISO image if that is used. Launch the VM. Change the host IP Address, or add an IP address that is on the same subnet as the VM (you could Type 4 PS Bug ID
2.
Error Log for Product 2778A, Writing Queries Using Microsoft SQL Server 2008 Transact-SQL
Date added
Slide Error or suggested change number instead change the VM to use an IP Address on the same subnet as the host machine). Open Microsoft Virtual Server and edit the settings for the VM. Change the Virtual Network adapter to use the physical adapter on the host. From the host machine, browse the IP address of the VM and then to the allfiles disk (for example, \\192.168.16.1\e$\Mod08). Then copy the \Mod08\Democode folder from the host to the VM. Optionally the instructor could open the BuildingView.sql file and manually type in the code for the demonstration.
Type
PS Bug ID
Error Log for Product 2778A, Writing Queries Using Microsoft SQL Server 2008 Transact-SQL
Date added
Path
Error or suggested change "Change the query to include rows with the TG as well as SO in the name column. " Those values are not in the name column, they're in the productnumber column. The solution (on the cd and in LAK) is: Select productnumber, name, listprice, color, size, weight From production.product Where listprice < $100 And productnumber like 'SO%' Or productnumber like 'TG%' The above will return "SO" products less than 100 and TG of any price, which is not what is suggested in the instructions. (With the data in the database, there are no TG products that are more than 100, so some students may not notice.) Solution: In the student module, point out in module 2, exercise 2, task 3, that the statement "Change the query to include rows with the TG as well as SO in the name column. " should actually use the productnumber column instead. Also, to show how to correctly structure the code to return both products and have the listprice less than $100 for both use this modified code: Select productnumber, name, listprice, color, size, weight From production.product Where listprice < $100 And productnumber like 'SO%' Or listprice < $100 AND productnumber like 'TG%'
Type
PS Bug ID
Issue: Module 2 lab, exercise 3, task 1: The instructions suggest (and the solution states) to write a query that includes:
Error Log for Product 2778A, Writing Queries Using Microsoft SQL Server 2008 Transact-SQL
Date added
Section or folder
Path
Error or suggested change Where productline=null This returns zero rows. There should be a comment included that mentions that this is not the correct method of selecting rows with nulls. Solution: The intent of task 1 is to show that this is not the correct way to retrieve NULL values. This is not stated in the Student Handbook but step 4 is exercise 1 in the Lab steps does state that no results are displayed. To make this more clear the instructor can tell the students that task 1 of exercise 3 is an example that looks like it could work but actually does not.
Type
PS Bug ID
Issue: The module 3 lab, exercise 1, task 4 instructions state: Create a query that returns a count of employees where the AddressLine2 column has NULL values. Use the COUNT and ISNULL functions. The given solution is: Select count(*) From person.address Where isnull(addressline2,'0') = '0' This is not best practice. Also, any addressline2 that had a 0 would also be returned. Solution: In Module 3, Exercise 1, task 4, the code should be changed from: Select count(*) From person.address Where isnull(addressline2,'0') = '0' TO Select count(*) From person.address Where addressline2 IS NULL
Error Log for Product 2778A, Writing Queries Using Microsoft SQL Server 2008 Transact-SQL
Date added
Section or folder
Path
Type
PS Bug ID
In the Student Handbook for Module 3, Exercise 1, task 4, the Use the COUNT and ISNULL functions statement should be changed to Use the COUNT and IS NULL functions.