Your SlideShare is downloading. ×
sql server
Upcoming SlideShare
Loading in...5

Thanks for flagging this SlideShare!

Oops! An error has occurred.


Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

sql server


Published on

Published in: Education

  • Be the first to comment

  • Be the first to like this

No Downloads
Total Views
On Slideshare
From Embeds
Number of Embeds
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

No notes for slide


  • 1. IntroductionContentsIntroduction 1Course Materials 2Prerequisites 3Course Outline 4Appendices 6Microsoft Official Curriculum 7Microsoft Certified Professional Program 8Facilities 10
  • 2. Information in this document, including URL and other Internet Web site references, is subject tochange without notice. Unless otherwise noted, the example companies, organizations, products,domain names, e-mail addresses, logos, people, places, and events depicted herein are fictitious,and no association with any real company, organization, product, domain name, e-mail address,logo, person, places or events is intended or should be inferred. Complying with all applicablecopyright laws is the responsibility of the user. Without limiting the rights under copyright, nopart of this document may be reproduced, stored in or introduced into a retrieval system, ortransmitted in any form or by any means (electronic, mechanical, photocopying, recording, orotherwise), or for any purpose, without the express written permission of Microsoft Corporation.Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectualproperty rights covering subject matter in this document. Except as expressly provided in anywritten license agreement from Microsoft, the furnishing of this document does not give you anylicense to these patents, trademarks, copyrights, or other intellectual property. 2001 Microsoft Corporation. All rights reserved.Microsoft, BackOffice, MS-DOS, PowerPoint, Visual Studio, Windows, Windows Media, andWindows NT are either registered trademarks or trademarks of Microsoft Corporation in theU.S.A. and/or other countries.The names of actual companies and products mentioned herein may be the trademarks of theirrespective owners.
  • 3. Introduction iiiInstructor NotesPresentation: The Introduction module provides students with an overview of the course30 Minutes content, materials, and logistics for course 2071B, Querying Microsoft SQL Server 2000 with Transact-SQL.Course Materials and Preparation Required Materials To teach this course, you need the following materials: ! Delivery Guide ! Trainer Materials compact disc Preparation Tasks To prepare for this course, you must: ! Complete the Course Preparation Checklist that is included with the trainer course materials. ! Read the Revision Log if you taught course 2071A.
  • 4. iv IntroductionModule Strategy Use the following strategy to present this module: ! Course 2071B, Querying Microsoft SQL Server 2000 with Transact-SQL. Show the slide that displays the course number and course title. ! Introduction Welcome students to the course and introduce yourself. Provide a brief overview of your background to establish credibility. Have students introduce themselves and provide their background, product experience, and expectations of the course. Record student expectations on a white board or flip chart that you can reference later in class. ! Course Materials Explain the purpose of all materials used in this course. Tell students that they will have an opportunity at the end of class to provide feedback on the course and facilities by using the Microsoft Online Evaluation System. ! Prerequisites Provide the students with the list of prerequisites that they should have met before taking this course. This is an opportunity for you to identify students who may not have the appropriate background or experience to attend this course. ! Course Outline Provide an overview of each module and what students will learn. Explain how this course will meet students’ expectations by relating the information covered in individual modules to their expectations. ! Microsoft Certified Professional Program Inform students about the Microsoft Certified Professional (MCP) program and the various certification options. ! Facilities Explain the facility information for the training site.
  • 5. Introduction 1IntroductionSlide ObjectiveTo introduce yourself,establish credibility, meetstudents, and set student ! Nameexpectations for the course. ! Company AffiliationLead-inGood morning. Welcome to ! Title/Function2071B, Querying MicrosoftSQL Server 2000 with ! Job ResponsibilityTransact-SQL. ! Database ExperienceMy name is... ! SQL Server Experience ! Expectations for the Course*****************************ILLEGAL FOR NON-TRAINER USE******************************Introduce yourself.Provide a brief overview ofyour background toestablish credibility as aSQL Server instructor.Ask students to introducethemselves, addressing thebulleted items on the slide.Delivery TipAs students introducethemselves, use a whiteboard or flip chart to recordtheir expectations of thecourse.
  • 6. 2 IntroductionCourse MaterialsSlide ObjectiveTo identify and describe thecourse materials.Lead-in ! Name CardWe have provided ! Student Workbookeverything you need for thiscourse. You will find the ! Student Materials Compact Discfollowing materials at yourdesk... ! Course Evaluation*****************************ILLEGAL FOR NON-TRAINER USE******************************Describe the contents of the The following materials are included with your kit:student workbook and theStudent Materials compact ! Name card. Write your name on both sides of the name card.disc. ! Student workbook. The student workbook contains the material covered in class, in addition to the hands-on lab exercises.Have students write theirnames on both sides of the ! Student Materials compact disc. The Student Materials compact discname card. contains the Web page that provides students with links to resources pertaining to this course, including additional readings, review and labTell students that a course answers, lab files, multimedia presentations, and course-related Web sites.evaluation must becompleted at the end of the Note To open the Web page, insert the Student Materials compact disc intocourse. the CD-ROM drive, and then in the root directory of the compact disc,Tell students where they double-click Default.htm.can send comments.Delivery Tip ! Course evaluation. At the conclusion of this course, please complete theDemonstrate how to open course evaluation to provide feedback on the instructor, course, andthe Web page provided on software product. Your comments will help us improve future courses.the Student Materials To provide additional comments on course materials, send e-mail tocompact disc. On theTrainer Materials compact Be sure to type Course 2071B in the subject line.disc, double-click To provide additional comments or inquire about the Microsoft CertifiedDefault.htm in the Professional program, send e-mail to folder.
  • 7. Introduction 3PrerequisitesSlide ObjectiveTo present and describe theprerequisites for this course.Lead-in ! Experience Using a Microsoft Windows OperatingThe following prerequisite Systemknowledge is needed forthis course. ! Understanding of Basic Relational Database Concepts ! Familiarity with the Role of the Database Administrator*****************************ILLEGAL FOR NON-TRAINER USE****************************** This course requires that you meet the following prerequisites: ! Experience using a Microsoft® Windows® operating system. ! Understanding of basic relational database concepts, including: • Logical and physical database design. • Data integrity concepts. • Relationships between tables and columns (primary key and foreign key, one-to-one, one-to-many, many-to-many). • How data is stored in tables (rows and columns). For students who do not meet these prerequisites, the following course provides students with the necessary knowledge and skills: • Course 1609, Designing Data Services and Data Models ! Familiarity with the role of the database administrator.
  • 8. 4 IntroductionCourse OutlineSlide ObjectiveTo provide an overview ofeach module and whatstudents will learn. ! Module 1: Introduction to Transact-SQLLead-in ! Module 2: Using Transact-SQL Querying ToolsIn this course, we willcover... ! Module 3: Retrieving Data ! Module 4: Grouping and Summarizing Data ! Module 5: Joining Multiple Tables*****************************ILLEGAL FOR NON-TRAINER USE******************************Briefly describe each Module 1, “Introduction to Transact-SQL,” provides a brief overview ofmodule. Transact-SQL as a programming language and describes different ways to execute Transact-SQL. Students are assumed to be familiar with ANSI-SQLAs you describe each and basic programming concepts, such as functions, operators, variables, andmodule, acknowledge any control-of-flow statements. At the end of this module, you will be able toinformation that will meet describe the elements of Transact-SQL.the student expectationsthat you recorded earlier. Module 2, “Using Transact-SQL Querying Tools,” describes several querying tools available in Microsoft SQL Server™ and how to use them to execute Transact-SQL scripts. At the end of this module, you will be able to describe the primary Transact-SQL querying tools in SQL Server and execute Transact- SQL scripts in various ways. Module 3, “Retrieving Data,” covers the SELECT statement in detail, using many examples to demonstrate how to sort data, eliminate duplicates, and change the format of a result set. At the end of this module, you will be able to use the SELECT statement to retrieve data. Module 4, “Grouping and Summarizing Data,” discusses using aggregate functions to group data, and explains how to generate summary reports and list values in a result set. At the end of this module, you will be able to generate and group summary data for a table. Module 5, “Joining Multiple Tables,” provides information on querying multiple tables by using different types of joins, combining result sets by using the UNION operator, and creating tables by using the SELECT INTO statement. At the end of this module, you will be able to combine data and multiple result sets.
  • 9. Introduction 5Course Outline (continued) ! Module 6: Working with Subqueries ! Module 7: Modifying Data ! Module 8: Querying Full-Text Indexes ! Module 9: Introduction to Programming Objects*****************************ILLEGAL FOR NON-TRAINER USE****************************** Module 6, “Working with Subqueries,” presents advanced query techniques, including nested and correlated subqueries, and explains when and how to use them to break down and perform complex queries. At the end of this module, you will be able to write queries that use single-value, multiple-value, and correlated subqueries to restrict result sets and combine multiple processing steps into one SELECT statement. Module 7, “Modifying Data,” explains how transactions work and discusses how to write INSERT, DELETE, and UPDATE statements to modify data in tables. At the end of this module, you will be able to modify data in tables in various ways. Module 8, “Querying Full-Text Indexes,” describes the Microsoft Search service, how to access information about indexes on text fields, and how to query those full-text indexes. At the end of this module, you will be able to describe the functions and components of Microsoft Search, get information about full-text indexes, and write full-text queries. Module 9, “Introduction to Programming Objects,” discusses how to create programming objects that enable the user to look at and manipulate data while hiding the complexity of the underlying database structure. At the end of this module, you will be able to display the text of a programming object and describe the concept and advantage of using views, stored procedures, triggers, and user-defined functions.
  • 10. 6 IntroductionAppendicesSlide ObjectiveTo describe the appendicesthat are used in the course.Lead-in ! Appendix A: Library Database Case StudyAdditional information that is ! Appendix B: Database Schemasused during the course is inthe appendices located inthe back of your workbook.*****************************ILLEGAL FOR NON-TRAINER USE****************************** Appendix A: Library Database Case Study This appendix contains a description of the library sample database that is used in this course. Appendix B: Database Schemas This appendix contains schematic diagrams of the databases that are used in this course.
  • 11. Introduction 7Microsoft Official CurriculumTopic ObjectiveTo explain the MicrosoftOfficial Curriculum programand provide informationabout curriculum paths. ! Microsoft ExchangeLead-in ! Microsoft BackOffice ServerLet’s briefly talk about the ! Microsoft Windows Infrastructure and SolutionsMicrosoft Official Curriculum Operating Systemsprogram. ! Microsoft FrontPage ! Microsoft Office ! Microsoft Systems ! Microsoft BackOffice Management Server Small Business Server ! Knowledge Management ! Microsoft SQL Server Solutions*****************************ILLEGAL FOR NON-TRAINER USE****************************** Microsoft® Official Curriculum (MOC) is hands-on facilitated classroom and Web-based training. Microsoft develops skills-based training courses to educate computer professionals who develop, support, and implement solutions by using Microsoft products, solutions, and technologies. MOC courses are available for the following products and solutions: ! Microsoft Windows® operating systems ! Microsoft Office ! Microsoft BackOffice® Small Business Server ! Microsoft SQL Server™ ! Microsoft Exchange ! Microsoft BackOffice Server Infrastructure and Solutions ! Microsoft FrontPage® ! Microsoft Systems Management Server ! Knowledge Management Solutions MOC provides a curriculum path for each product and solution. For more information about the curriculum paths, see the Microsoft Official Curriculum Web page at The Microsoft Official Curriculum Web page provides information about MOC courses. In addition, you can find recommended curriculum paths for individuals who are entering the Information Technology (IT) industry, who are continuing their training on Microsoft products and solutions, or who currently support non-Microsoft products.
  • 12. 8 IntroductionMicrosoft Certified Professional Program Topic Objective To provide students with information about the ! Microsoft Certified Systems Engineer (MCSE) Microsoft Certified Professional Program. ! Microsoft Certified Database Administrator (MCDBA) Lead-in ! Microsoft Certified Solution Developer (MCSD) The Microsoft Certified Professional Program ! Microsoft Certified Professional + Site Building includes these certifications. (MCP + Site Building) ! Microsoft Certified Professional (MCP) ! Microsoft Certified Trainer (MCT)*****************************ILLEGAL FOR NON-TRAINER USE****************************** The Microsoft Certified Professional program provides the best method to prove your command of current Microsoft products and technologies. The following table describes each certification in more detail.Certification DescriptionMicrosoft Certified Systems MCSEs are qualified to effectively plan, implement, maintain, and supportEngineer information systems in a wide range of computing environments with Microsoft(MCSE) Windows 2000 and Microsoft BackOffice.Microsoft Certified MCDBAs are qualified to derive physical database designs, develop logical dataDatabase Administrator models, create physical databases, create data services by using Transact-SQL,(MCDBA) manage and maintain databases, configure and manage security, monitor and optimize databases, and install and configure Microsoft SQL Server.Microsoft Certified Solution MCSDs are qualified to build Web-based, distributed, and commerceDeveloper applications by using Microsoft products, such as Microsoft SQL Server,(MCSD) Microsoft Visual Studio®, and Component Services.Microsoft Certified MCPs with a specialty in site building are qualified to plan, build, maintain, andProfessional + Site Building manage Web sites by using Microsoft technologies and products.(MCP + Site Building)Microsoft Certified MCPs demonstrate in-depth knowledge of at least one product by passing any oneProfessional (MCP) exam (except Networking Essentials).Microsoft Certified Trainer MCTs demonstrate the instructional and technical skills that qualify them to deliver(MCT) Microsoft Official Curriculum through Microsoft Certified Technical Education Centers (Microsoft CTEC).
  • 13. Introduction 9Certification RequirementsThe certification requirements differ for each certification category and arespecific to the products and job functions addressed by the certification. Tobecome a Microsoft Certified Professional, you must pass rigorous certificationexams that provide a valid and reliable measure of technical proficiency andexpertise.For More Information See the Microsoft Training and Certification Web site at can also send e-mail to if you have specificcertification questions.Preparing for an MCP ExamMicrosoft Official Curriculum (MOC) helps you prepare for MicrosoftCertified Professional (MCP) exams. However, no one-to-one correlation existsbetween MOC courses and MCP exams. Microsoft does not expect or intendfor MOC to be the sole preparation tool for passing an MCP exam. Practicalproduct knowledge and experience is also necessary to pass an MCP exam.To help prepare for the MCP exams, you can use the preparation guides that areavailable for each exam. Each Exam Preparation Guide contains exam-specificinformation, such as a list of the topics on which you will be tested. Theseguides are available on the Microsoft Certified Professional Web site at
  • 14. 10 IntroductionFacilitiesSlide ObjectiveTo inform students of class Class Hourslogistics and rules for thetraining site.Lead-in Building Hours PhonesBefore we start, let’s go overthe class logistics. Parking Messages Rest Rooms Smoking Meals Recycling*****************************ILLEGAL FOR NON-TRAINER USE******************************Explain the class hours,extended building hours forlabs, parking, rest roomlocation, meals, phones,message posting, andwhere smoking is or isn’tallowed.Also make sure that thestudents are aware of therecycling program if one isavailable.