Вы находитесь на странице: 1из 4

Instructor Inputs

Session 6

Solutions to Exercises
This session includes exercises for Chapter 3.

Chapter 3
Exercise 1
The HR Manager of Tebisco needs to update the current strength of its employees. This updation will be based on the current position of employees at each position code. As a part of the development team, you need to execute two queries, one to retrieve the records where the budgeted employee strength is greater than the current employee strength for each position, and the other to update the current position of employees on the basis of the current employee strength. You need to execute both the queries on a single database connection. Hint: You need to access the Position and Employee tables of the HR database.

Solution
You can find the solution of this exercise is in TIRM folder under Datafiles_For_Faculty\ADO.NET\Chapter 03\MR Exercises\Exercise1.

Exercise 2
John, a member of the HR team at Tebisco, needs to view the employee details. John wants that he should be able to view the details of the employee on the basis of the employee code or employee name. You need to develop an application to accomplish this functionality. The employee details needs to be retrieved from the empdetails table of the HR database.

Solution
Before executing this exercise, you need to run the following SQL query: empdetails.sql This file is available in the TIRM folder under Datafiles_For_Faculty\ADO.NET\Chapter 03\MR Exercises\Exercise2.

NIIT

Instructor Inputs 6.3

. You can find the solution of this exercise is in TIRM folder under Datafiles_For_Faculty\ADO.NET\Chapter 03\MR Exercises\Exercise2.

Exercise 3
Jane, a member of the HR team at Tebisco, needs to modify the employee details added in the activity, EmployeeDetails. You need to modify the application, created during the activity, which will allow her to modify the details of employees. The employee details will be modified and stored in the empdetails table of the HR database.

Solution
You can find the solution of this exercise is in the TIRM folder under Datafiles_For_Faculty\ADO.NET\Chapter 03\MR Exercises\Exercise3. If the empdetails table does not exist, you need to run the following SQL query: empdetails.sql This can be found at the following location in the TIRM folder under Datafiles_For_Faculty\ADO.NET\Chapter 03\MR Exercises\Exercise3. You need to provide the students with the EMPLOYEEDETAILS solution folder. This is available in the TIRM folder under the Datafiles_For_Faculty\ADO.NET\Chapter 03\MR Exercises\Exercise3. The students only need to add the modify module to this application.

6.4 Instructor Inputs

NIIT

Вам также может понравиться