SQL Constraints - Lesson 5 - Create or Add Constraints (Primary Key, Foreign Key, Default etc.)

preview_player
Показать описание
In this session we'll learn how to add constraints like DEFAULT, UNIQUE, NOT NULL, PRIMARY KEY, FOREIGN KEY and CHECK, while creating tables or by altering existing tables. Microsoft SQL server syntax is discussed.

Links to all SQL Lessons:

Рекомендации по теме
Комментарии
Автор

1:06 : NULL
13:31 : DEFAULT
24:39 : UNIQUE
39:09 : PRIMARY KEY
52:07 : FOREIGN KEY
1:04:08 : CHECK

anupamsharma
Автор

I must say this the Best video on youtube for constraints. Thank you ma'am for making such a wonderful video.

sapnilpatel
Автор

this is what perfection in explanation looks like

murtazahasan
Автор

Hello Madam,

I've been searching online for various materials for clear explanation on constraints and most of them were close
You won't believe, this video is exactly the way I was looking for to understand the different constraints in SQL ("USING EXAMPLES")and finally found it and am very pleased and grateful to all the assistance received. I've understood all the concepts clearly now.

Thanks and Regards
Pavan Kumar T S

PAVANKUMAR
Автор

Many thanks for your great teaching approach - sharing both the syntax, the database applications, and the logic! The approach is very helpful for me to learn/review SQL concepts. :)

Karen-
Автор

you have no idea how much you help me out your are really great. i wish you could be our miss.

beteassefa
Автор

that is outstanding definition by you Miss, wonderful and proud on you hope to continuous some more videos, i havn't find like your video in whole youtube

amjadahmadzai
Автор

Great educational videos and much appreciated. Thank you.

christianlira
Автор

Very good explanation
Tqq I have no doubt in constraints

syedkarishma
Автор

Thank you so much mam for ur efforts in clearing every of our doubts

kingfisher
Автор

In unique kay, why you put John two times, because you said that on unique kay we don't put same value.

freefirelovercustomvideo
Автор

Thank you so much for the wunderfully explained lessons. Please could you share the database for pratice. Thanks

TechMedia-it
Автор

is the default constraint the same as legal value constraint???

ay
Автор

Hi, you said we can have only one primary key can be present in the table . How can you define to two columns now as primary key ? Then in what way it is going to differs from Unique key ?

ManiKandan-voqr
Автор

Hi Masti Supreme, I got an error message when using the ALTER TABLE MyFriends (see below); can you explain what I need to do, had no previous errors? Using SQL Server 2022 Msg 1781, Level 16, State 1, Line 51
Column already has a DEFAULT bound to it.
Msg 1750, Level 16, State 0, Line 51
Could not create constraint or index. See previous errors.

Completion time:

bjquick
Автор

How to create user_constraint, , ,
Its showing table or view does not exists, when I'm retrieving constraint name and constraint type from user_constraint. Please tell me ma'am. 🙏

eeganaveenreddy
Автор

Your mention default for email, they should not take default mail in 10, 11 values why...

sivareddyandena
Автор

Which online SQL compiler can be used for android mobile?....anybody can suggest the right compiler?

vasanthk
visit shbcf.ru