Learn your way! Get started

SQL Server 2012, Part 4 of 9: Designing and Creating a Database

with expert Don Kiely


Watch trailer


Course at a glance

Included in these subscriptions:

  • Dev & IT Pro Video
  • Dev & IT Pro Power Pack

Release date 10/10/2012
Level Intermediate
Runtime 2h 25m
Closed captioning Included
Transcript Included
eBooks / courseware Included
Hands-on labs N/A
Sample code Included
Exams Included


Enterprise Solutions

Need reporting, custom learning tracks, or SCORM? Learn More



Course description

Creating a database is not just inputting data into a computer and expecting a database to appear. This course will teach you the basics of relational database design principles. You will then see how to create a SQL Server database based on sound design principles. Then see how to build tables using the SQL Server Management Studio designers. You will learn about SQL Server data types, how to create constraints, triggers, and indexes. Then to finish up create a database diagram and define relationships to enforce referential integrity.

Prerequisites

The users should have a working knowledge of the Microsoft OS, Visual Studio and Server environment. This course assumes that you have at least a basic familiarity with the concept of relational databases and a basic understanding of what SQL Server is and the high-level tools in it.

Learning Paths

This course is part of the following LearnNowOnline SuccessPaths™:
SQL Server Core

Meet the expert

Don Kiely is a featured instructor on many of our SQL Server and Visual Studio courses. He is a nationally recognized author, instructor, and consultant specializing in Microsoft technologies. Don has many years of teaching experience, is the author or co-author of several programming books, and has spoken at many industry conferences and user groups. In addition, Don is a consultant for a variety of companies that develop distributed applications for public and private organizations.

Course outline



Integrity, Design and Types

Database Design Principles (27:34)
  • Introduction (00:45)
  • Database Design Principles (01:36)
  • Origins of Relational Design (00:34)
  • Key Terms (03:27)
  • Relational Theory (01:33)
  • Surrogate Keys (02:12)
  • Demo: Sample Database (02:55)
  • Data Normalization (00:24)
  • First Normal Form (00:24)
  • Demo: First Normal Form (02:05)
  • Demo: Repeating Groups (02:27)
  • Second Normal Form (00:47)
  • Demo: Second Normal Form (02:54)
  • Third Normal Form (00:42)
  • Demo: Third Normal Form (03:08)
  • Beyond Codd"s Normal Forms (01:00)
  • Summary (00:32)
Referential Integrity (15:19)
  • Introduction (00:41)
  • Referential Integrity (01:25)
  • One-to-Many Relationships (01:45)
  • Many-to-Many Relationships (01:13)
  • One-to-One Relationships (02:06)
  • Enforcing (00:47)
  • Cascading Updates and Deletes (00:54)
  • Cascading Updates (00:28)
  • Cascading Deletes (00:55)
  • Cascading Actions (01:26)
  • Beyond Normalization (01:58)
  • Enforcing Business Rules (01:12)
  • Summary (00:23)
Implementing Database Design (22:59)
  • Introduction (00:39)
  • Database Storage (04:22)
  • Data Integrity (01:43)
  • Recovery Models (01:44)
  • Creating Databases (00:43)
  • Demo: Creating Database (01:43)
  • Demo: Database Options (01:40)
  • Demo: File Groups (02:55)
  • Rules for Identifiers (02:10)
  • Demo: Changing DB Options (01:44)
  • Demo: Retrieve a Value (01:03)
  • Creating Tables (01:34)
  • Summary (00:53)

Constraints, Indexes, Diagrams

Data Types (38:06)
  • Introduction (00:55)
  • SQL Server Data Types (05:27)
  • Data Types - Numeric (01:53)
  • Data Types - Fractional (04:07)
  • Data Types - Date and Time (02:13)
  • Data Types - Date (03:33)
  • Data Types - Binary (01:51)
  • Data Types - Identifier (03:45)
  • Data Types - sql_variant (01:23)
  • Data Types - Variable only (02:28)
  • Data Types - XML (01:38)
  • Data Types - SQLCLR (01:10)
  • Data Types - User-Defined (00:50)
  • Demo: Data Types (01:55)
  • Demo: Create Columns (04:31)
  • Summary (00:20)
Columns and Constraints (21:37)
  • Introduction (00:34)
  • Demo: Computed Column (02:13)
  • Demo: Saving Tables (02:53)
  • Creating Constraints (04:20)
  • Default Constraints (00:35)
  • Demo: Default Constraints (00:50)
  • Check Constraints (00:42)
  • Demo: Check Constraints (03:27)
  • Demo: Change Script (01:32)
  • Demo: Run Constraint (02:02)
  • Demo: Constraints on Columns (01:45)
  • Summary (00:38)
Indexes And Database Diagrams (19:47)
  • Introduction (00:48)
  • Triggers (01:37)
  • Creating Indexes (00:29)
  • Demo: Creating Indexes (03:58)
  • Demo: Index Options (03:50)
  • Using Database Diagrams (00:40)
  • Demo: Database Diagrams (01:19)
  • Demo: Diagram (01:27)
  • Demo: Create Relationships (02:30)
  • Demo: Right Click Options (02:29)
  • Summary (00:34)