Brian Alderman | MCT, CEO / Founder of MicroTechPoint Pete Harris | Microsoft Senior Content Publisher.

Slides:



Advertisements
Similar presentations
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Advertisements

© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Koen Stox | Application Consultant 1998 MCT 2005 Co-owner of Plataan (CPLS in Belgium)
Brian Alderman | MCT, CEO / Founder of MicroTechPoint Pete Harris | Microsoft Senior Content Publisher.
MIX 09 4/15/ :14 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Brian Alderman | MCT, CEO / Founder of MicroTechPoint Pete Harris | Microsoft Senior Content Publisher.
Meet Jeremy Thake Jeremy recently joined Microsoft as Technical Product Manager for the Visual Studio Developer story for Office 365 development.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Tuning SQL Server 2012 for SharePoint 2013 Jump Start 01 | Key SQL Server and SharePoint Server Integration Concepts (50 minutes) Dedicated Server or.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Dual Partitioning for improved performance in VLDBs Ashwin Rao Karavadi, Rakesh Parida Microsoft IT.
Windows 7 Training Microsoft Confidential. Windows ® 7 Compatibility Version Checking.
Database Fundamentals
Nick Scott | Dynamics CRM Consultant with BKD Technologies.
Gerry O’Brien| Technical Content Development Manager Paul Pardi| Senior Content Publishing Manager.
SQL Server Developer Tools, Codename “Juneau” Database Services Sanjay Nagamangalam Principal Program Manager SQL Server Manageability.
Session 1.
Built by Developers for Developers…. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Bill Baer is a Senior Product Marketing Manager and Microsoft Certified Master for SharePoint in the SharePoint product group in Redmond, Washington;
Feature: Assign an Item to Multiple Sites © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
An Investigation of Oracle and SQL Server with respect to Integrity, and SQL Language standards Presented by: Paul Tarwireyi Supervisor: John Ebden Date:
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Print Remaining Documents © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
NEXT: Overview – Sharing skills & code.
Module III: The Normal Forms. Edgar F. Codd first proposed the process of normalization and what came to be known as the 1st normal form. The database.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Nick Scott | Dynamics CRM Consultant with BKD Technologies.
Koen Stox | Application Consultant 1998 MCT 2005 Co-owner of Plataan (CPLS in Belgium)
Feature: Customer Combiner and Modifier © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
SQL Server SQL Azure Visual Studio“Quadrant” SQL Server Modeling Services Entity Framework ADO.NET“M”/EDM Data Services …
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
demo Instance AInstance B Read “7” Write “8”

customer.
06 | Modifying Data in SQL Server Brian Alderman | MCT, CEO / Founder of MicroTechPoint Tobias Ternstrom | Microsoft SQL Server Program Manager.
03 | Word Templates Brian Meier| Senior Lead Program Manager.
demo © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
demo Demo.
Advanced SQL Azure Database Name Title Microsoft Corporation.
Session 1 Module 1: Introduction to Data Integrity
demo QueryForeign KeyInstance /sm:body()/x:Order/x:Delivery/y:TrackingId1Z
Windows Azure SQL Data Sync Name Title Microsoft Corporation.
projekt202 © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Introduction to Microsoft Dynamics GP 2013 Module 2:Basic Elements.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks.
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
03 | Object-Oriented Programming Gerry O’Brien | Technical Content Development Manager Paul Pardi | Senior Content Publishing Manager.
04 | Business Analyzer Brian Meier| Senior Lead Program Manager.
Brian Alderman | MCT, CEO / Founder of MicroTechPoint Tobias Ternstrom | Microsoft SQL Server Program Manager.
Demo Fest of Some Leading Store Apps Module 2.

Introducing Application and Multi-Server Management.
IoCompleteRequest (Irp);... p = NULL; …f(p);
Office 365 Support Corner: Getting Started in Project Online Brian Smith Microsoft Escalation Engineer Adrian Jenkins Microsoft Escalation Engineer.
Data Integrity & Indexes / Session 1/ 1 of 37 Session 1 Module 1: Introduction to Data Integrity Module 2: Introduction to Indexes.
Brian Alderman | MCT, CEO / Founder of MicroTechPoint Pete Harris | Microsoft Senior Content Publisher.
Getting started with Accurately Storing Data
Understanding Data Storage
Chapter 4 Relational Databases
Entity Based Staging SQL Server 2012 Tyler Graham
Normalization Referential Integrity
Title of Presentation 12/2/2018 3:48 PM
8/04/2019 9:13 PM © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Виктор Хаджийски Катедра “Металургия на желязото и металолеене”
Шитманов Дархан Қаражанұлы Тарих пәнінің
Title of Presentation 5/24/2019 1:26 PM
Presentation transcript:

Brian Alderman | MCT, CEO / Founder of MicroTechPoint Pete Harris | Microsoft Senior Content Publisher

Meet Brian Alderman | Chief Executive Office, Founder MicroTechPoint Industry-recognized consultant Noted author and conference speaker Brian’s expertise and designs range across Microsoft operating systems More than 25 years of industry experience Brian has been focused on helping IT Pros and Database Administrators (DBAs) better understand core Microsoft technologies for over 25 years. A frequent presenter at SharePoint Conferences around the world, he has authored or contributed to several SharePoint, SQL Server, and other technical books, and is a MCSE, MCT, and MCITP: SharePoint and SQL Server Administrator. Brian has a BS and MS in Computer Information Systems where he graduated summa cum laude from Regis University of Colorado Springs and lives in Scottsdale, AZ where he enjoys playing golf year round and traveling around the world. LinkedIn /brianalderman Blog

Meet Pete Harris Content Development Manager in Microsoft’s Learning Experiences team Focuses on SQL Server and Web training With Microsoft since 1995 Part of the first team of developer training folks in the post-Microsoft University era Has built a variety of content and spoken to customers all over the world

Course Modules Database Fundamentals 01 | Introducing core database concepts (50 minutes) Define databases, example of relational database tables, and introduce common database terminology 02 | Relational Concepts (50 minutes) Normalization, referential integrity, and constraints 03 | Creating databases and database objects (50 minutes) Data types, database objects, DDL statements, and creating scripts 04 | Using DML statements (50 minutes) DML statements, using the SELECT statement; using INSERT, UPDATE, and DELETE to manage data; indexes and triggers 05 | SQL Server Administration Fundamentals (50 minutes) SQL Server security; securing database and objects; performing database backups and database restores

02 | Relational Concepts Brian Alderman | MCT, CEO / Founder of MicroTechPoint Pete Harris | Microsoft Senior Content Publisher

Normalization Referential integrity Constraints Module Overview

Normalization

Normalizing a database Normalization the process of organizing data in a database that includes creating tables and establishing relationships between the tables Process is used to help eliminate redundant data Five normalization forms (NFs) 1NF: Eliminate Repeating Groups 2NF: Eliminate Redundant Data 3NF: Eliminate Columns Not Dependent on Key 4NF: Isolate Independent Multiple Relationships 5NF: Isolate Semantically Related Multiple Relationships

First normal form (1NF) The first normal form means the data is in an entity format, which means the following conditions have been met: Eliminate repeating groups in individual tables Create separate table for each set of related data Identify each set of related data with primary key Do not use multiple fields in a single table to store similar data

Second normal form (2NF) The second normal form ensures each attribute describes the entity Create separate tables for sets of values that apply to multiple records Relate these tables with a foreign key Records should not depend on anything other than a table’s primary key, including a compound key if necessary.

Third normal form (3NF) The third normal form checks for transitive dependencies. Eliminate fields that do not depend on the key Values that are not part of the record’s key do not belong in the table In general if the contents of a group of fields apply to more than a single record, put those fields in a separate table

Other normalization forms The fourth normal form is also called the Boyce Codd Normal Form (BCNF) and fifth normal form exists, but are rarely considered in practical design Disregarding these two additional normalization rules may result in a less than perfect database design but shouldn’t affect functionality

Example of normalization Student#AdvisorAdv-RoomClass1Class2Class3 1022Jones Smith Student#AdvisorAdv-RoomClass# 1022Jones Jones Jones Smith Smith Smith

Example of normalization Student#AdvisorAdv-Room 1022Jones Smith216 Student#Class#

Example of normalization Student#Advisor 1022Jones 4123Smith NameRoomDept Jones41242 Smith21642 Student#Class#

Referential Integrity

Referential integrity Referential Integrity (RI) is a database concept used to ensure that the relationships between your database tables remains synchronized during data modifications. RI can be used to ensure the data is clean, may be helpful in optimizing your database environment and can assist in early detection of errors. A combination of PRIMARY KEY and FOREIGN KEY constraints can be used to help enforce referential integrity of your database. In addition to a foreign key referencing a primary key constraint, a foreign key can also reference a UNIQUE constraint to help maintain referential integrity. Triggers can also be used to enforce referential integrity, however being triggers require code they don’t execute as quickly as table properties such as a primary key constraint.

Methods for enforcing referential integrity There are several methods available in SQL Server to help maintain database integrity: Primary key constraint Foreign key constraint Unique constraint Indexes Triggers Any of these methods can be created as a composite key which is an index or constraint created using more than one column. It may be necessary to use more than one column to create a unique value for each row in a table.

Constraints

PRIMARY KEY constraint An important concept of designing a database table is the use of a PRIMARY KEY — an attribute or set of attributes used to uniquely identify each row A table can only have one primary key which is created using a primary key constraint and enforced by creating a unique index on the primary key columns A column that participates in the primary key constraint cannot accept null values

FOREIGN KEY constraint A FOREIGN KEY is a column or combination of columns that are used to establish a link between data in two tables. The columns used to create the primary key in one table are also used to create the foreign key constraint and can be used to reference data in the same table or in another table A foreign key does not have to reference a primary key, it can be defined to reference a unique constraint in either the same table or in another table A column that participates in the foreign key constraint can accept null values, but if it contains a null value, the verification process is skipped.

Relational structure with keys Foreign Key Primary Key

Summary Normalization is the process of organizing data in a database that includes establishing relationships between the tables First normal form – no repeating groups Second normal form – eliminate redundant data Third normal form – eliminate data not dependent on the key Disregarding the fourth and fifth normalization rules may not result in a perfect database design but shouldn’t affect functionality

Summary Referential Integrity is used to ensure the data contained in the database remains consistent. Tools that can be used to help with referential integrity include Primary key constraint Foreign key constraint Unique constraint Unique Indexes Triggers

Summary Primary key constraint— an attribute or set of attributes used to uniquely identify each row Foreign key constraint – a column or combination of columns used to establish a link between data in two tables Unique constraint - allows you to enforce uniqueness in columns other than the primary key Unique Index - ensures the index key contains no duplicate values and that every row in the table or view is unique in someway Triggers - complex T-SQL statements used to provide data integrity when table data modified

©2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Office, Azure, System Center, Dynamics and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.