Converting ER Diagrams to Schemas | SQL | Tutorial 23

Поділитися
Вставка
  • Опубліковано 1 лют 2025

КОМЕНТАРІ • 150

  • @abhichakladar5279
    @abhichakladar5279 5 років тому +109

    Wow an entire week of lecture summarized in just 5 minutes of a video on 2.5x speed. Thanks a lot, great work!

    • @zalkarn
      @zalkarn 5 років тому +12

      Right? This video made so much more sense to me than any college professor I've come across.

    • @ahmadby100
      @ahmadby100 4 роки тому +4

      how on earth did you get 2.5x on youtube?

    • @abhichakladar5279
      @abhichakladar5279 4 роки тому +1

      @@ahmadby100 Video speed controller chrome extension

    • @darlingred6054
      @darlingred6054 11 місяців тому +1

      My Workflow is as follows.
      See what professor is supposed to teach
      UA-cam it
      Learn in 1/10th the time.

  • @Skattarules
    @Skattarules 4 роки тому +118

    This video is 10x better than my university professors lecture :D

  • @falahrafi
    @falahrafi 3 роки тому +61

    (0:39) STEP 1 : Mapping of Regular Entity Types
    (1:41) STEP 2 : Mapping of Weak Entity Types
    (2:49) STEP 3 : Mapping of Binary 1:1 Relationship Types
    (4:22) STEP 4 : Mapping of Binary 1:N Relationship Types
    (6:25) STEP 5 : Mapping of Binary M:N Relationship Types
    (8:43) Define the relationships
    (9:36) Create an actual database

  • @kurtsmock3071
    @kurtsmock3071 4 роки тому +3

    Best explanation of these concepts I've ever heard and I've been trying to get it for a while. Thanks. Teaching is clearly your calling.

  • @zhanybeksalgarin8918
    @zhanybeksalgarin8918 Рік тому

    Amazing work guys!
    The way you made the whole loop, starting with the table schema in the low level and finishing the same schema in the hight level. Splendid!
    Thank you! I enjoyed the journey!

  • @蹦太君-o4d
    @蹦太君-o4d 3 роки тому +3

    I am Taiwanese, your course is very good, thanks for teaching!

  • @aradaistanbul
    @aradaistanbul 3 роки тому +1

    Thank you, I attended all the course it was really helpful. World needs people like you thanks for your time and your great way of teaching.

  • @HiruniAbeysekara-fl1ij
    @HiruniAbeysekara-fl1ij 5 місяців тому

    Actually, your lessons are of utmost important. Your teaching method is excellent as well. I notably say your explanations are so clear and easy to understand. Fantastically, you are offering a sound knowledge on IT to the whole world. Thank you so much from the bottom of my heart for your noble helping hand.💖💖💖

  • @wallacemarty
    @wallacemarty 5 років тому +1

    Thanks for all that. I made a lot of notes and screen prints and now I'm going to create my own database. I expect to re-watch some sections a few times but the series has given me a good insight into SQL. Thanks!

  • @bangvu2127
    @bangvu2127 Рік тому

    Thanks for summarising 2 lectures of 1 hour each in 10 mins, and way easier to grasp!!!

  • @raihantaher4308
    @raihantaher4308 5 років тому +4

    You just cleared all the mess I had in my head.. Thanks for sharing these videos for free..

  • @portiamixon9905
    @portiamixon9905 2 роки тому

    I am currently taking an intro to data analytics class for my masters and your tutorials have helped me so much! You are an amazing teacher for newbies like me.

  • @rafaelangelopiad8919
    @rafaelangelopiad8919 4 роки тому +1

    U saved us bro. we had system diagram projects and this 100% made everything clearer

  • @ahmedelsaadany8831
    @ahmedelsaadany8831 6 років тому +45

    Hi Mike, really you are an excellent teacher, and perfect coder, your way is direct and extremely simple. if you please can you make a new series focused on practical and real projects. Many thanks . Ahmed

    • @ferenc3460
      @ferenc3460 6 років тому

      Yeah, that would be really good. Some real world project. Anyway I love your videos Mike. Thanks for sharing them for free!

    • @shubhampatil3904
      @shubhampatil3904 6 років тому

      Thanks buddy

    • @omnidye
      @omnidye 5 років тому

      no one is a "perfect coder."

    • @alexandermotal5979
      @alexandermotal5979 4 роки тому

      +1

    • @shashishekhar----
      @shashishekhar---- 3 роки тому

      @@omnidye get going before you have to hear something.

  • @willswill8163
    @willswill8163 6 років тому +2

    Thank you. After reading about entities and relations for two hours, this summed it all up perfectly!

  • @ajo3300
    @ajo3300 2 роки тому +1

    Dude. This video and the tutorial before it helped me so much with my database class. Thank you!!!!

  • @aanyc.6198
    @aanyc.6198 Рік тому

    i have finished my homework because of this video after trying to find many videos Thank you so much. Better than my professor at uni who just read slides

  • @fabioPatroni
    @fabioPatroni 6 років тому +2

    Thank you very much for this videos! I have taken the codeacademy and the Alison courses before yours. I can say your videos were a way better, more simple and direct than theirs.

  • @crisolivares7847
    @crisolivares7847 3 роки тому +1

    This course got me introduced to SQL and I am starting a Project right away!

  • @yaraalsousi2124
    @yaraalsousi2124 2 роки тому +1

    I have finished today this tutorial, thank u a lot for all this detailed explanation!!!

  • @FATTMONSTER
    @FATTMONSTER 6 років тому +29

    Love the Office Database 😂😂

    • @ryanfox2478
      @ryanfox2478 3 роки тому

      lol, same here! p.s. turns out Mike attended Scranton University!

  • @vv9131
    @vv9131 4 роки тому +5

    Thanks for making SQL learning easy for us Mike

  • @winnumber101
    @winnumber101 3 роки тому +1

    one of the best explanations i've ever seen

  • @fahadmomin1165
    @fahadmomin1165 3 роки тому +1

    thank you so much bro i was scratching my head before on this topic now it's clear thanks again

  • @MrDaniel560
    @MrDaniel560 3 роки тому +1

    the bestt! i love your tutorials they are the best :))) thankss

  • @jakkty3915
    @jakkty3915 5 років тому +1

    Thanks Mike for this professional Tutorial. Keep up the good work.

  • @mykelroheys9635
    @mykelroheys9635 3 роки тому +1

    thanks man you have no idea how this helped me

  • @lilmamagc
    @lilmamagc 2 роки тому +1

    Yay I finally completed the course!

  • @roseannemot8440
    @roseannemot8440 3 роки тому +2

    Really help me to complete my assignment. Great explanation

    • @yasina63
      @yasina63 2 роки тому

      Same to you got it.

  • @beomseokpark1500
    @beomseokpark1500 4 роки тому +1

    Thank you so much for making all videos!
    You are legend.

  • @wadadafranck9694
    @wadadafranck9694 4 роки тому +1

    thanks bro ur playing a great role to the entire world i real benefit from ur pieces

  • @Edward-zr4bg
    @Edward-zr4bg 5 років тому +2

    Hey Mike your tutorials have been very helpful to me especially this one. If you have time can you make a video about converting more complex er diagrams to schema. Like with n-nary relationships and multivalue attributes and such that would be so great because your reasoning is very good and you explain very well.

  • @rocketleague2136
    @rocketleague2136 3 роки тому +1

    this is good stuff! thank you Mike. I destroyed my head learning this via book

  • @JesuHena
    @JesuHena 8 місяців тому

    Let me say Thank You for making life life getting easier !

  • @jiaweitan3066
    @jiaweitan3066 5 років тому +1

    You are so clear in your explanation!

  • @reachin4thetop709
    @reachin4thetop709 2 роки тому

    Wow Mike, I just wanted to say that you rock. Your teaching techniques are so easy to follow. Keep it up ma peep.

  • @atillaselem4827
    @atillaselem4827 4 роки тому +2

    each video in this serie but esspecially the last three videos are the best i ve ever seen regarding ER Modeling in UA-cam. can you recommend a intermediary - advanced book or resource for ER Modeling & DB Design? Thx indeed..

  • @babakazizi3147
    @babakazizi3147 2 роки тому +1

    Fabulous!
    God bless you!

  • @yasina63
    @yasina63 2 роки тому

    Yaw Mike am fan of you, watching from Maryland

  • @ShawkyJames
    @ShawkyJames 2 роки тому +2

    6:30 This is wrong. We have two if you look closely, there is also an M:N relationship between Branch and Branch Supplier

  • @edgardlucanagallegos1772
    @edgardlucanagallegos1772 5 років тому +2

    Hi Mike, thank you to take your time to do this course that is amazing.

  • @PaxiKaksi
    @PaxiKaksi 5 років тому +12

    How much i hate this subject :D Anyways thanks for the video. It was much easier than reading 120 slides

  • @sltech837
    @sltech837 5 років тому +1

    wow bro excellent channel great work

  • @Heckerschee
    @Heckerschee 4 роки тому +1

    Great video! 👍🏼👍🏼👍🏼

  • @kameraderz
    @kameraderz 6 років тому +2

    You're a great teacher, I really want to spend more of my time by watch and code along with your videos. Anyway, if you open a request, create Tableau tutorial would be amazing, I think. Okay that's all, keep it up the great work guys!

  • @bigunhettiarachchi853
    @bigunhettiarachchi853 2 роки тому +1

    Awesome.
    Thanks a lot
    It really helped me

  • @everboy112
    @everboy112 4 роки тому +1

    Good work. Very helpful

  • @esweee
    @esweee 5 років тому +1

    Hi Mike, I watched your 4 hour long vides over the weekend - they are so helpful and easily to follow. Thank you very much. As an frequent Excel user, do you have a video on, or know where I can find good information on, the Excel-like calculations? For example, what should if I want to add a column to an existing table, and populate the column use the product of Existing_Column_1 and Existing_Column_2. Thank you in advance.

  • @Siddharth-uo6zw
    @Siddharth-uo6zw 3 роки тому +2

    Thank u so much!
    can you make more advanced paid courses in SQL, Back end Developer with economical for students.
    you teach so well.

  • @krishnasahithikakunuri8427
    @krishnasahithikakunuri8427 3 роки тому +1

    Great help ✌️

  • @mohammedzuraigat2422
    @mohammedzuraigat2422 4 місяці тому

    this was a huge help tbh. Normalization video next please

  • @mohammadsadikurrahman2591
    @mohammadsadikurrahman2591 Рік тому

    Question: Why didn't you make "Supplies" another table as it has a m:n relationship between Branch and Branch Supplier? Because you said if it's m:n relationship we gotta make a new table. Or is it because of it's weak entity type? I would appreciate any clarification.
    BTW amazing explanation. Awesome work!

  • @sadgabe
    @sadgabe 5 років тому +1

    Thanks for helping me pass my database course

  • @prathisahrudh
    @prathisahrudh 6 років тому +11

    6:30 there are actually two m:n relations

    • @hiruniliyanage98
      @hiruniliyanage98 5 років тому +4

      prathi sahrudh the other one is a weak entity we mapped it already

  • @fasikawkindye6827
    @fasikawkindye6827 6 років тому +1

    Thanks man You made my Database class simple

  • @mariyamashraf5199
    @mariyamashraf5199 5 років тому +3

    Thank you soo much !! Super helpful

  • @noname-oi1ei
    @noname-oi1ei 4 роки тому +1

    Excellent. Clearly understand what are you say. Please add ISA hyrachy mapping

  • @mohamedsamuelkamara3661
    @mohamedsamuelkamara3661 Рік тому

    Thanks for the video, I just use it to take my examination it is really really helpful.

  • @raihanmomtaz7652
    @raihanmomtaz7652 2 роки тому +1

    superb!! thanks

  • @limitless1692
    @limitless1692 5 років тому +1

    Awesoem Playlist
    Great ending aswell ... is like back to the begining :)

  • @manuelaidos
    @manuelaidos 5 років тому +5

    In 3 videos i learned more than an entire semester….

  • @ashrafulfuad2967
    @ashrafulfuad2967 4 роки тому +1

    great explanation thanks
    Ziraff academy

  • @kramdjursbutiken
    @kramdjursbutiken Рік тому

    You're so cool Mike!

  • @alfrediannegarciaquirante5761
    @alfrediannegarciaquirante5761 4 роки тому +1

    thanks for the free mysql course mate

  • @codingislife6387
    @codingislife6387 2 роки тому +1

    Nice Sir Thanks Sir.

  • @IAmWaterr
    @IAmWaterr 4 роки тому +1

    Thank you very much for explaining clearly

  • @dishansandasara8218
    @dishansandasara8218 2 роки тому +1

    This is gold

  • @sonamuhialdeen7866
    @sonamuhialdeen7866 3 роки тому +1

    Amazing tutorial

  • @mukongshu
    @mukongshu 4 роки тому +1

    As a beginner, I can imagine that I can even set everything on one table... if you don't worry about how messy it is, the reason it separtes to different small talbles, coz it would be easier to read

  • @muradsalameh5294
    @muradsalameh5294 3 роки тому +1

    What about in the case that I have multiple partial keys in my weak entity?
    For example, my ER Diagram has the weak entity "Section", it has 3 partial keys, "Semester" "Year" and "Section #".
    The owner of this weak entity has the primary key as "Course #"
    The relationship between them is "HAS" and it's a many-to-many relationship.
    What would I put as my keys for this "HAS" table?
    Would it be Course# and all the other partial keys from "Section"? Or just Course# and Section#?
    Sorry if this is confusing but I'm super lost here. Thank you in advance!

  • @jatinverma6759
    @jatinverma6759 4 роки тому +3

    Hey Mike, thanks a lot for this. I also learned C from your channel. I wanted to know that what do I do now after finishing this course?

  • @vijayabharathi2409
    @vijayabharathi2409 5 років тому +1

    Hi Mike, Thanks for the great video which clearly explains the relationships and the keys. I would like to know more about the foreign keys in case of ternary relationships ? Do you have any write-up or video on this ?

  • @ezeuba001
    @ezeuba001 2 роки тому

    This was great lesson. Thanks a lot.

  • @wunugat9198
    @wunugat9198 4 роки тому +1

    Hey Mike, awesome work! I really do appreciate your effort. How did you create those diagrams and tables? I mean how did you visualized it, is there any function at PopSQL to transform data into tables and diagrams? Thank you in advance for your help!

    • @richmond5607
      @richmond5607 4 роки тому +1

      When is the deadline for you bro?

    • @wunugat9198
      @wunugat9198 4 роки тому

      @@richmond5607 haha bro I am an absolute data analyst beginner, please enlighten me

    • @richmond5607
      @richmond5607 4 роки тому

      @@wunugat9198 ua-cam.com/video/-CuY5ADwn24/v-deo.html watch this, I found it helpful. There are many videos just surf :)

  • @rdwanbzzaze1813
    @rdwanbzzaze1813 6 років тому +2

    Thank mike you've been very helpful

  • @rukmanandareddyabbidi1994
    @rukmanandareddyabbidi1994 4 роки тому +1

    it's really a great explaination

  • @bananaboydan3642
    @bananaboydan3642 10 місяців тому

    Good video but it'd be nice if you explained WHY we should always put the one table's PK as a FK in the many table

  • @trungpham7588
    @trungpham7588 5 років тому

    excellent teacher !!!

  • @ashokreddy2901
    @ashokreddy2901 3 роки тому +1

    can you explain about the BCNF(Boyce-codd Nornal Form)?

  • @carishmarahamathi976
    @carishmarahamathi976 2 роки тому +1

    can you tell me what happen to age from Employee table and # of employees from Branch table. Those are derived attribute right?

  • @bonoful4343
    @bonoful4343 5 років тому +1

    That was great!

  • @repotaps8899
    @repotaps8899 2 роки тому +1

    Hi, if you have a 1:N relation should an attribute on that relation eg. price be included in the relation schema? And where if it should?

  • @mfurqanahmad619
    @mfurqanahmad619 4 роки тому +1

    Hi Mike can you explain derived attribute in this example

  • @kiritmishra1998
    @kiritmishra1998 4 роки тому +1

    you are amazing

  • @Th3BKM
    @Th3BKM 5 років тому +1

    Thanks so much for the help! :D

  • @silenthive
    @silenthive 4 роки тому +1

    it would actually probably make more sense, if the background picture wouldnt be moved around so often, and instead putting a fixed view on it, as its hard to follow.

  • @alexeypavlov5340
    @alexeypavlov5340 6 років тому +1

    Thank you! Very helpful!

  • @unmmahrish
    @unmmahrish 3 роки тому +1

    Can you explain how to test database for my assignment I need that

  • @Ivan-np3ls
    @Ivan-np3ls 4 роки тому +1

    really helpful thank you

  • @gehadabdulaziz5322
    @gehadabdulaziz5322 4 місяці тому

    Thanks a lot man💖

  • @himeshperera8401
    @himeshperera8401 6 років тому +1

    Nicely understand !!

  • @unmmahrish
    @unmmahrish 3 роки тому +1

    What do you use to build database and table

  • @pratyakshamaheshwari8269
    @pratyakshamaheshwari8269 4 роки тому +1

    what to do 1 to 1 relationship when there is total and partial participation on both sides? please reply. Thank you.

    • @yacc8339
      @yacc8339 4 роки тому

      add pk of one table as fk on the other. doesn't matter what table.

  • @gnidhi410
    @gnidhi410 3 роки тому +1

    What is if we have a terner relationship & not Binary? How to represent that?

  • @alex13ethiotube91
    @alex13ethiotube91 2 роки тому

    employ( empy id, last-name, first -name ,brith day , salary, sex,age, branch id) look
    branch id b/c money employee works for one branch .therefor there is FR key

  • @vectorhugo4997
    @vectorhugo4997 5 років тому +1

    Hey mike you are awesome,just you didn't mention multivalued attribute.

  • @nilanga79
    @nilanga79 3 роки тому +1

    Hi, Do you have how this created in MS SQL?

  • @jibeks26
    @jibeks26 5 років тому +1

    Thanks a lot!

  • @mahinhossen4251
    @mahinhossen4251 Рік тому

    STEP 1- Mapping of Regular Entity Types: For each regular entity create a relation table that includes all the simple attributes of the entity
    STEP 2- Mapping of Weak Entity Types: For each weak entity create a relation table that includes all the simple attributes of the weak entity. Then, the primary key of the new relation should be the partial key of the weak entity plus the primary key of its owner.
    STEP 3- Mapping of Binary 1:1 Relationship Types: If an entity has total participation in a relationship with another entity, it is necessary to have a foreign key with the entity that has total participation. If one side has full and the other side has partial participation then it applies.
    STEP 4- Mapping of Binary 1:N Relationship Types: In a 1:N (one-to-many) relationship, it is common to use the primary key of the "1" side as a foreign key in the table representing the "N" side.
    STEP 5- Mapping of Binary M:N Relationship Types: Create a new relation table whose primary key is a combination of both entities’ primary keys. Also, include any relationship attribute.

  • @Ex-fk4nr
    @Ex-fk4nr 6 років тому +1

    What if we have a relation 1:N with r
    Total participation on the 1 side