SQL Constraints | Primary Key | NOT NULL | Unique Key | Default | Check | Foreign Key | In Hindi

Поделиться
HTML-код
  • Опубликовано: 20 окт 2020
  • SQL Constraints | Primary Key | NOT NULL | Unique Key | Default | Check | Foreign Key | In Hindi | Tutorial#04
    in this playlist, I am going to start Structured Query Language (SQL). SQL is one of the best database software which is broadly used. It is mainly the syllabus part of 11/12/BCA/BTech student and I have designed this in such a way that it is specially designed for 11/12/BCA/BTech student. In this video, I have explained SQL Constraints. SQL are basically set of rules that applies to a table. In this video I have explained the various constraints like primary key, unique key, NOT NULL, check constraints, default constraint and foreign key constraint.
    Telegram Channel: t.me/codeituplearners
    Facebook Group: / 21673. .
    Instagram: t.me/codeitupyt
    Facebook Group: groups/21673...
    Facebook Page: / codeitup-104310264625489
    Website: codeitup.in
    Join this channel to get access to perks:
    / @codeitup
    Link to Previous Video: • SQL Commands | DDL DML...
    Link to next video: • Create Table | Create ...
    Tags Used:
    sql constraints
    primary key
    not null
    unique key
    default
    check
    class xii mysql tutorial hindi
    primary key constraint
    not null constraint
    unique key constraint
    check constraint
    default constraint
    foreign key
    foreign key constraint
    constraints in sql in hindi
    constraints in sql server
    constraints in sql meaning
    constraints in sql javatpoint
    constraints in sql geeksforgeeks
    constraints in sql dbms
    constraints in sql pdf
    constraints in sql ppt
    constraints in sql server with example
    adding constraints in sql
    all constraints in sql
    check constraint in sql
    integrity constraints in dbms
    domain constraints in sql
    constraints in sql hindi
    #codeitup
    #sql
    #cbse
    @CBSE
    @CBSE INDIA
    @Unacademy CBSE Science 11 & 12
    @CBSE Udaan XI
    @Ncert Solutions CBSE ncerthelp.com ​

Комментарии • 234

  • @banabiharikata3050
    @banabiharikata3050 3 года назад +59

    Your teaching is placed under PRIMARY KEY ,mast sir keep it up👌👌👌

    • @saritashaw4314
      @saritashaw4314 10 месяцев назад +3

      Instant concept application 😅

  • @irshad_haque
    @irshad_haque 2 года назад +7

    Best computer teacher on you tube👌

  • @ashishsrivastava371
    @ashishsrivastava371 3 года назад +18

    Sir your teaching is great.... You make concepts very easy to understand .....Your teaching is like PRIMARY KEY for me.... 💯🙏🙏😃

    • @codeitup
      @codeitup  2 года назад +7

      Thanks a ton Ashish, keep learning!

  • @shivanksingh9381
    @shivanksingh9381 10 месяцев назад +3

    This Channel is very Underrated channel to learn Programming 🔥🔥🔥

    • @codeitup
      @codeitup  9 месяцев назад +1

      Glad you think so!

  • @itsillusion7337
    @itsillusion7337 3 года назад +2

    sir ap bahut accha padhate hain....really great ,,your teaching style and video quality is great .....since long iam waiting for data visualisation of pandas....sir plzz upload those videos....eagerly waiting ....i know that views jada nahi ja pate pandas mei pr apke teaching ko dekh kr lgta hai bht hi jldi ap bht famous ho jaoge....
    thankyou sir

  • @santoshofficial7854
    @santoshofficial7854 2 года назад +2

    Your teaching is Best Sir 🙏🙏❤️🙏🙏

  • @qaiserman
    @qaiserman 2 года назад +7

    Great stuff, brilliant. loved it. you explained it so smoothly like a hot knife just gets into butter. Love from Scotland. Sir Anand keep an eye on my comments at least I can do to admire you.

  • @rohansaini3293
    @rohansaini3293 Год назад

    thanks sir you are a gem school mein kuch smjh nahi arha hai aur kaafi aage nikal gayi teacher aapki videos ache se dekhunga thanks slot

  • @ankubansal9005
    @ankubansal9005 3 года назад +1

    thanks sir aapne bhut easy way main explain Kiya Maine Bhut sari videos dekhi kissi main smj nhi aya apki ek video Mai. Pura concept clear ho gya

    • @codeitup
      @codeitup  3 года назад

      So nice of you Anku, keep learning😊

  • @mdnasimakhtar6203
    @mdnasimakhtar6203 2 года назад +1

    Your way of teaching,explanation are awesome i have read about constraints many times but always i had a doubt about it .now today its cleared by your explanation so thank you very much.

    • @codeitup
      @codeitup  2 года назад

      Most welcome Nasim & thanks a lot for your precious comment😊

  • @aaryangarg3128
    @aaryangarg3128 Год назад +7

    Basically according to set theory in mathematics we can say, Primary key is the super set of Unique key and Not Null key, or Not Null and Unique key is the subset of Primary key, or we can say Primary key is the union of Not Null key and Unique key.

  • @yashgaud5247
    @yashgaud5247 Год назад +7

    you are a blessing to me i havent started anything for the boards exams but now is the time you are developing interest in me for computers and i am sure i will score good

  • @RAISTAR90326
    @RAISTAR90326 7 месяцев назад +1

    thank you so so so much sir ❤.20 mins ago i did not know a single thing about constraints

    • @codeitup
      @codeitup  7 месяцев назад +1

      You are most welcome!

  • @siddgupta8453
    @siddgupta8453 Год назад +2

    Love u sir ,cant explain in words how much this video helped me understanding. ...thankx a lot💖💖

    • @codeitup
      @codeitup  Год назад

      Glad to help you🙂

  • @RanjanSingh-qr1jo
    @RanjanSingh-qr1jo 2 года назад +2

    The way of explanation is just Awesome!!

    • @codeitup
      @codeitup  2 года назад

      Thanks Ranjan 😊

  • @deveshnigam3261
    @deveshnigam3261 3 года назад +19

    Great sir means i can't tell you how much you helped me i dont even like this subject because of your teaching skills i started taking my interest in this

    • @codeitup
      @codeitup  3 года назад +1

      Glad to help you Devesh, keep learning!

    • @romakumari7956
      @romakumari7956 Год назад

      @@codeitup Check constraint me salary thi to erase kar use change kar par agar student marks hota to kya karte use to erase kar khud se change nhi kar sakte to us condition me kaise karege check constraint

    • @RaniSharma-wy9sn
      @RaniSharma-wy9sn Год назад

      Yeah i too 😄

    • @deadlybgmi4655
      @deadlybgmi4655 Год назад

      Same bhai❤️

  • @ramtirthyadav6783
    @ramtirthyadav6783 Год назад +1

    Bhaiyaaa u r great🌟

  • @luxmi2636
    @luxmi2636 3 года назад +3

    very clearly and easily explained ..thanks sir 😄

    • @codeitup
      @codeitup  3 года назад

      Most welcome Luxmi!

  • @sadiyarahman4374
    @sadiyarahman4374 3 года назад +1

    Informative video sir ji🙏🙏

  • @Nisha-fc4eo
    @Nisha-fc4eo Год назад +2

    Thanku so much sir my every concept is cleared. Because of your expanation. You are very nice teaching. Efforts. Once again thanku so much sir 😊

    • @codeitup
      @codeitup  Год назад

      Most welcome Nisha & thank a lot for your precious comment🙂

  • @shiivam8132
    @shiivam8132 3 года назад +3

    Thank you sir explain very well bhot ache se smaj aaya
    Thank you so much ☺️

    • @codeitup
      @codeitup  3 года назад

      Most welcome Shivam!

  • @abhiudaymishra7611
    @abhiudaymishra7611 Месяц назад

    Best ip teacher

  • @hrishabmishra8253
    @hrishabmishra8253 3 года назад +8

    Your explanation style is just awesome. It helps me a lot .
    Thank you sir for such a great video 🙏.

  • @nikunjanathbehera749
    @nikunjanathbehera749 Год назад +1

    i have understood 100% sir, Thank you so much sir

    • @codeitup
      @codeitup  Год назад

      Most welcome Nikunjanath!

  • @aradhana6692
    @aradhana6692 Год назад +2

    Thank you sir so much , i love this video ❤

    • @codeitup
      @codeitup  Год назад +1

      Most welcome Aradhana!

  • @Sourab_kumar_
    @Sourab_kumar_ 11 месяцев назад +2

    Thanks sir for this amazing video

    • @codeitup
      @codeitup  11 месяцев назад

      Most welcome!

  • @suchethdza
    @suchethdza 10 месяцев назад

    God level Teaching 😇

  • @vipboyx5575
    @vipboyx5575 Год назад +1

    Hats off sir 🙌 your explanation is owesome 😘

  • @suankitsharma8251
    @suankitsharma8251 2 года назад +1

    Thank you for explaining things so well.

    • @codeitup
      @codeitup  2 года назад

      Most welcome Suankit!

  • @arteast4282
    @arteast4282 2 года назад +1

    Sir kya mast padhate ho aap, aap ki wajah se mujhe computer science accha lagne laga h☺️☺️

  • @palaksarathe9655
    @palaksarathe9655 Год назад +2

    Sir your teaching way is so nice🥰🥰

  • @theysgaming674
    @theysgaming674 10 месяцев назад

    Thanks for the informative video

  • @Er.Sumaiyya
    @Er.Sumaiyya 3 года назад +2

    Thank you so much sir video helped me a lot 🙏

    • @codeitup
      @codeitup  3 года назад +1

      Most welcome !

  • @BadalKumar-tu2wg
    @BadalKumar-tu2wg 2 года назад +1

    Very Useful video Thanks
    Please make JavaScript video.

  • @ashokachakravarti4449
    @ashokachakravarti4449 3 года назад +1

    You are a good explainer !

    • @codeitup
      @codeitup  3 года назад

      Thanks a lot Ashok!

  • @krrishsrivastava8896
    @krrishsrivastava8896 2 года назад

    Thanku so much bhaiya🙏🙏
    Poora sql padha dijiye aise hi 🙏🙏

  • @vinitajain7359
    @vinitajain7359 3 года назад

    Sir you are the best teacher for ip subject for those who are loo kingjoining ip coachings

  • @itzpkg
    @itzpkg 3 года назад +1

    Very very very Good Explaination....

    • @codeitup
      @codeitup  3 года назад

      Thank you so much PKG!

  • @utkarshapagar9571
    @utkarshapagar9571 2 года назад +1

    Just Superb👍👍👌👌

  • @KrishnA-jc6pe
    @KrishnA-jc6pe 2 года назад

    very well explained. May God bless you

  • @akankshakoul
    @akankshakoul 3 месяца назад

    Btw...
    This video was very helpful sir

    • @codeitup
      @codeitup  3 месяца назад

      Glad it helped!

  • @mstech4251
    @mstech4251 Год назад +1

    Excellent sir really very easy technique u are using

    • @codeitup
      @codeitup  Год назад +1

      So nice of you🙂

  • @priyachollangi4683
    @priyachollangi4683 2 года назад

    Amazingly explained

  • @gururajitagi9235
    @gururajitagi9235 Год назад

    Very nice explaination sir tq

    • @codeitup
      @codeitup  Год назад

      Thanks & most welcome!

  • @georgeezra3967
    @georgeezra3967 3 года назад +1

    awesome teaching style

  • @vlogtypea3201
    @vlogtypea3201 2 года назад +1

    thankyou very much.

    • @codeitup
      @codeitup  2 года назад

      Most welcome😊

  • @a35rasmimohanbehera89
    @a35rasmimohanbehera89 5 месяцев назад

    Thank you so much sir 😊

    • @codeitup
      @codeitup  5 месяцев назад

      Most welcome!

  • @dhjyyckk4027
    @dhjyyckk4027 3 года назад +3

    sir alternate key and candidate key class 12 syllabus me hai?

  • @rashmishah4344
    @rashmishah4344 2 года назад +1

    Thank you sir

    • @codeitup
      @codeitup  2 года назад +1

      Most welcome😊

  • @badalkumar-ck1hj
    @badalkumar-ck1hj 3 года назад +1

    very good class sir
    nice Thanks

    • @codeitup
      @codeitup  3 года назад

      Always welcome Badal!

  • @sujeetsaravade2892
    @sujeetsaravade2892 Год назад

    super sir thank you for teaching

    • @codeitup
      @codeitup  Год назад

      Thanks & most welcome Sujeet!

  • @adityakalmaste5998
    @adityakalmaste5998 2 года назад

    Thanks sir 👍

    • @codeitup
      @codeitup  2 года назад

      Most welcome😊

  • @mohitkashyapentertainment9307
    @mohitkashyapentertainment9307 2 года назад +2

    Super sir ji

  • @abhimangaur
    @abhimangaur 3 года назад

    Thank you very much sir ji

    • @codeitup
      @codeitup  3 года назад

      Always welcome Abhiman 😊

  • @kidsnkiddi2337
    @kidsnkiddi2337 2 года назад +1

    amazing

  • @lovekeshpratap4674
    @lovekeshpratap4674 Год назад +1

    Bhaiya mai class 12 me hu aur muzhe information technology mili h yt pe koi it nhi padhata but apke ye lec dekh ker muzhe ache se samjh aa gaya h apse 1 request h Mai Java to apke video se kar lunga but muzhe 1 ch samjh nhi aa rh pls thoda time nikal ke 1 y 2 video me vo bana dijiye. Chapter name h operating web pls. Request h

  • @Lila_prajapati
    @Lila_prajapati 2 года назад

    Thank you very much sir 💞💞💞💞

    • @codeitup
      @codeitup  2 года назад

      Most welcome Lilawati!

  • @HarshGupta-lu5zg
    @HarshGupta-lu5zg 3 года назад +5

    Your way to explain is amazin, thankyou sir 👍

    • @codeitup
      @codeitup  3 года назад +1

      Most welcome dear!

    • @gurwindarsingh4643
      @gurwindarsingh4643 3 года назад +1

      @@codeitup your teaching style is a primary key in itself

    • @codeitup
      @codeitup  3 года назад +2

      Wow, and your way of comment is Unique key...

    • @gurwindarsingh4643
      @gurwindarsingh4643 3 года назад +1

      @@codeitup 😂😂😂

    • @gayatripathak1965
      @gayatripathak1965 3 года назад +1

      @@codeitupamazing reply👏😂👍😂

  • @deveshnigam3261
    @deveshnigam3261 3 года назад +1

    Thanku so much sir🤩🤩🤩🤩🤩😍😍😍🥰🥰🥰👍👍👍👍👍👍👍👍👍🙏🙏🙏🙏🙏

    • @codeitup
      @codeitup  3 года назад

      Most welcome Devesh!

  • @Followusforknowlage
    @Followusforknowlage 10 месяцев назад

    thanks sir

    • @codeitup
      @codeitup  10 месяцев назад

      Most welcome!

  • @theysgaming674
    @theysgaming674 10 месяцев назад

    Kindly do video on pattern matchings

  • @halkahalkasuroor8907
    @halkahalkasuroor8907 2 года назад

    nice one explained

  • @jyotinishad6951
    @jyotinishad6951 2 года назад +1

    Thanks sir 🌹🌹

    • @codeitup
      @codeitup  2 года назад

      Most welcome Jyoti!

  • @akshatagarwal3917
    @akshatagarwal3917 Год назад

    THANKS

  • @dev12992
    @dev12992 9 месяцев назад

    Sir exam related questions bhi karwa do

  • @chhavinav7116
    @chhavinav7116 9 месяцев назад

    Sir kya foreign key ma duplicate value hoo skatee hai

  • @sureshrainaraina7805
    @sureshrainaraina7805 3 года назад +5

    Sir pls try to get a side..before rubbing the board..it will be somewhat easy to take notes....
    Hope u recover ..AS soon as possible

    • @codeitup
      @codeitup  3 года назад +1

      Sure. From next time I will take care of it.

  • @siddharthrai9342
    @siddharthrai9342 3 года назад +2

    Sir is this enough for gate exam

  • @Aspirant_study275
    @Aspirant_study275 2 года назад

    Nice

  • @jasmandhillon6370
    @jasmandhillon6370 2 года назад

    Term 2 cs 🙋

  • @poonamyadav8908
    @poonamyadav8908 5 дней назад

    Sir plz aap practical v krwaie plz plz sir

  • @nehapandey3170
    @nehapandey3170 3 года назад +2

    Sir alternate key and candidate key comes under sql constraints or not?

    • @codeitup
      @codeitup  3 года назад +1

      No, that are not constraints.

  • @jagroopcheema3848
    @jagroopcheema3848 2 года назад +1

    sir your videos and oswaal question bank both are enough to score 35/35 in ip ??

    • @codeitup
      @codeitup  2 года назад +1

      More than sufficient

    • @jagroopcheema3848
      @jagroopcheema3848 2 года назад

      @@codeitup thanks sir
      Plz tell me one more think that how many days should i prepare to get 35/35

  • @hiralbhatt5363
    @hiralbhatt5363 Год назад +3

    Kya Matlab 23rd ko exam hai or Mei ye dekh rha hu 22nd ko😂😂

  • @rajashukla1914
    @rajashukla1914 2 года назад +3

    Sir I have doubt " in check constraint salary

    • @tanujgarg792
      @tanujgarg792 Год назад

      hi, 1st of all salary10000 is applied. Dont mistaken , it affects your chances o selection. have a good day.

  • @adarshgangwar3363
    @adarshgangwar3363 3 года назад +2

    Sir pls tell me one thing kya kevl aapke videos he dekh lu to board mae 90+ marks lae aaunga

    • @codeitup
      @codeitup  3 года назад +2

      Yes, but aapko khud se bhi questions answers practice karne honge.

  • @rohansaini3293
    @rohansaini3293 Год назад +1

    sir please tell what is candidate key?

  • @SHIVANSHUGAMING2
    @SHIVANSHUGAMING2 Год назад

    At 15:42 little bit of mistake 😅🙂 >1000 and you have written 1000 in salary love your videos bas maine find keya mistake to bta deya 🤪

  • @udaygorai5574
    @udaygorai5574 3 года назад

    Nice sir ......thanks sir
    .....abhi kass ha

    • @codeitup
      @codeitup  3 года назад

      Thanks Udai, Bas thik hai. !

  • @purviyadavyadav7203
    @purviyadavyadav7203 3 года назад +1

    Sir what is candidate key?

  • @Its.Abhi_creation_777
    @Its.Abhi_creation_777 8 месяцев назад

    Please show how not null is used

  • @aliansari9098
    @aliansari9098 3 года назад +2

    I love the song after he say 'chaleye start krte hai '

  • @vaishalithul4463
    @vaishalithul4463 Год назад

    Sir iska matlab ye hua ki primary key or unique key to same hi hai to fir iske nam kyu alg h unka Jo work h oh bi same ha

  • @AayushVerma42
    @AayushVerma42 2 года назад

    sir char aur varchar me difference plz.........

  • @vivekkumargupta3835
    @vivekkumargupta3835 Год назад

    when i apply check constraint in a column and enters a value in the table that does not obey the check constraint then mysql should show error but rather than showing error it executes successfully and the data gets entered in the table
    Can you tell why is it happening ????????

  • @deveshnigam3261
    @deveshnigam3261 3 года назад

    Sir please make a video on all chapters of class 12 ip sir you're

  • @kavitarani234
    @kavitarani234 2 года назад

    Sir kya hum primary key aur unique key ko same nai kh skte?? Kyoki duplicate value to dono me hi accept nai ho skti

    • @jerryzoned6638
      @jerryzoned6638 7 месяцев назад

      Pr unique ke andr duplicate ni chhiye pr blank ho skti
      Lekin primary key ke andr duplicate bhi ni ho skti aur khali bhi

  • @sadiyarahman4374
    @sadiyarahman4374 3 года назад

    Sir aap board k uper light set kar lijiye thoda light ki kami lag rahi h

  • @Piyushthote0867
    @Piyushthote0867 10 месяцев назад

    Alternate key candidate key?????

  • @preranabarve9616
    @preranabarve9616 3 года назад

    Sir apke videos mai sirf 12th ke hi topics hote hai kya? Kya aap sab topic cover krte ho.. because i am engineering student thats why i am asking.

    • @codeitup
      @codeitup  3 года назад +2

      Look prerna, no programming or topic is only for 12th. Programming is always in a flow and some of the topics may be missing in 12th and you will get that in Engineering. Rest all are same. So, be sure that programming is never based on any class. The same Java programming is taught in 12/BCA/BTech/MTech as well with a difference of some of the topics.

    • @preranabarve9616
      @preranabarve9616 3 года назад

      @@codeitupOk..Thank you so much sir👍

  • @sauravkumar1564
    @sauravkumar1564 3 года назад

    Sir dataframe complete hua kya playlist me 13 part tak hae

    • @codeitup
      @codeitup  3 года назад

      Tomorrow Will upload dataframe video. Two more videos are there for first chapter.

  • @xxxx-xl1xe
    @xxxx-xl1xe 2 года назад

    SIR G GOOD EVENING
    SIR G AAP JO BLACKBOARD PAR NOTES LIKHTE HAI VO SUFFICIENT HAI TERM 2 EXAM K LIYE ?

    • @codeitup
      @codeitup  2 года назад +1

      Yes, it's sufficient

    • @xxxx-xl1xe
      @xxxx-xl1xe 2 года назад

      @@codeitup THANKS SIR JI

  • @socialbutterflyMU
    @socialbutterflyMU Месяц назад

    Sir aapane candidate ki aur alternated ki ke bare mein nahin bataya

  • @D3viLOP97
    @D3viLOP97 3 года назад +1

    Sir aap graph bnana sikhao

  • @prajapati8911
    @prajapati8911 Год назад

    Sir sbse jayda questions kis chapter se aate h board exam me ??🥺

  • @nehapandey3170
    @nehapandey3170 3 года назад +1

    Can unique key constraints left blank??

  • @twilighthg8660
    @twilighthg8660 2 года назад +1

    Bhaiya alternate, candidate key ko miss kr diye aap

  • @rajukumarmunda5357
    @rajukumarmunda5357 2 года назад

    Thank you sir 😊 but aapka writing samajh main aa raha tha lekin dekhne mein Sahi nahin lag raha tha 🤗🥰 sir ke channel ko like Karen subscribe Karen comment Karen
    Sir tuple kya hota hai It me tuple is a collection of deleted information sir tuple ke bare mein kuchh video daliye
    😌

  • @sumandas5676
    @sumandas5676 2 года назад +1

    Sir.....the database integrity rule refers to....1) unique constraint 2) Primary key
    Ans kya hoga??

    • @codeitup
      @codeitup  2 года назад +2

      Entity Integrity - Primary Key
      Referential Integrity - Foreign Key

    • @sumandas5676
      @sumandas5676 2 года назад +1

      @@codeitup sir...Is the integrity rule will be primary key in the case of SQL also or it will be Unique constraints ?

    • @sumandas5676
      @sumandas5676 2 года назад +1

      @@codeitup sir is the answer will be same in the case of SQL also ?

    • @ammritamohanty8936
      @ammritamohanty8936 2 года назад

      @@sumandas5676 yes. dbms concepts are from SQL so how can it get changed

    • @ammritamohanty8936
      @ammritamohanty8936 2 года назад

      @@sumandas5676 integrity rule will be primary key

  • @Avivahere
    @Avivahere 3 года назад +1

    11:08