Back to Browse

Learn SQL with Microsoft SQL Server | SQL Constraints | Part 6

751 views
Mar 10, 2022
32:03

We discuss SQL Constraints and practically go through how to add the following constraints in SQL Server; PRIMARY KEY, FOREIGN KEY, UNIQUE KEY, NOT NULL, DEFAULT, and CHECK. --LINK TO SQL QUERY-- https://github.com/AllThingsDataWithAngelina/SQL-Server/blob/main/SQL_Constraint.sql --LINKS TO PLAYLISTS-- Learn SQL with Microsoft SQL Server: https://youtube.com/playlist?list=PL3QIj0dCAeARFktUaoy1I4C3qvpeptSjK Data Analyst Portfolio Projects: https://youtube.com/playlist?list=PL3QIj0dCAeARnHKdYGIEQ--mFFlSb0FNL HAPPY WITH THE CONTENT? SUBSCRIBE NOW! CLICK HERE - https://www.youtube.com/c/AngelinaFrimpong OR HERE - https://bit.ly/angelinafrimpong Timestamps: 00:00 Intro 00:23 What are Constraints 04:27 Methods of Adding Constraints 05:56 Method 1 - (Alter Table Statements) - Adding Primary Key 08:21 Add Unique Constraint 10:01 Add Foreign Key Constraint 14:31 Method 2 - Create Table with Constraint 21:30 Create Table with Constraint by Specifying Constraint Name 23:08 Insert Record into a table test Default Constraint 24:59 Method 3 - Create Table with Constraint (Separate Syntax) 28:20 Check Constraint 31:45 Outro #SQL #LearnSQL #Data

Download

1 formats

Video Formats

360pmp442.1 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Learn SQL with Microsoft SQL Server | SQL Constraints | Part 6 | NatokHD