Sie sind auf Seite 1von 4

Hands-on Exercise: SQL Server 2008

Version: Date:

Cognizant 500 Glen Pointe Center West Teaneck, NJ 07666 Ph: 201-801-0233

www.cognizant.com

Hands-on Exercise SQL Server 2008 - Session No: 05

TABLE OF CONTENTS SESSION 05: SQL SERVER 2008 OVERVIEW.............................................3 Exercise 5.1.......................................................................................3 Exercise 5.2.......................................................................................3

Page 2

Copyright 2007, Cognizant Technology Solutions, All Rights Reserved C3: Protected

Hands-on Exercise SQL Server 2008 - Session No: 05

Session 05: SQL Server 2008 Overview


Exercise 5.1

Estimated Completion Time: 40 Minutes

Marks: 10

Hands-on Exercise Objective After completing the hands-on exercises, you will be able to: Write DDL, DML, and DCL Statement Execute SQL Statement using SQL Management Studio tool Problem Statement: i. Create a database by name CWinShopperMall to store CWin Shopper Mall business data as follows using DDL statements. ii. Create a Schema by name HumanResource to store CWinShopping Mall employees related data tables. iii. Create tables with appropriate columns to store CWinShopping employees data under HumanResource schema as shown in design diagram under the Resources and Tools section. Deliverables Expected: Submit the T-SQL script file .sql. The T-SQL script file should have comments like description, developed by and the date. Tips: Follow the coding standards as given in SQL Server coding standards document. Evaluation Rubrics: Parameters Completeness Accuracy Clarity of understanding Presentation Total Weightage 3 2 3 2 10

Exercise 5.2
Estimated Completion Time: 20 Minutes Marks: 10

Page 3

Copyright 2007, Cognizant Technology Solutions, All Rights Reserved C3: Protected

Hands-on Exercise SQL Server 2008 - Session No: 05 Hands-on Exercise Objective After completing the hands-on exercises, you will be able to: Write DDL, DML, and DCL Statement Execute SQL Statement using SQL Management Studio tool Problem Statement: i. Refer tables created in Exercise 5.1 under HumanResource schema of CWinShopping database and perform the operations. ii. Insert five sample records in each table. iii. Update the employee address details in Employees table and view the update information. iv. Add Gender column to Employees table without dropping the table structure. (Hint: Use ALTER TABLE ). v. Drop the Photo and PhotoPath columns form Employees table without dropping the table structure. ( Hint: Use ALTER TABLE ). Deliverables Expected: Submit the T-SQL script file .sql. The T-SQL script file should have comments like description, developed by and the date. Tips: Follow the coding standards as given in SQL Server coding standards document. Evaluation Rubrics: Parameters Completeness Accuracy Clarity of understanding Presentation Total Weightage 3 2 3 2 10

Page 4

Copyright 2007, Cognizant Technology Solutions, All Rights Reserved C3: Protected

Das könnte Ihnen auch gefallen