Creating a Database with Tables and Relationships (MS SQL)

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ก.ค. 2024
  • Creating a Database with Tables and Relationships using Microsoft Management Studio Express for Microsoft SQL Server 2008 Express

ความคิดเห็น • 98

  • @aaronchristopher812
    @aaronchristopher812 7 ปีที่แล้ว +42

    I learned more from this video than I did in my 5 week SQL Database Management class. THANK YOU

    • @IWeasel
      @IWeasel 7 ปีที่แล้ว +1

      Aaron Christopher hell this is my first time using this software and I don't know what I'm doing however I think this video is going to be extremely helpful # it's game time 🙏🏾

    • @thierry9592
      @thierry9592 6 ปีที่แล้ว

      lol same here

    • @nathanunderbsd5972
      @nathanunderbsd5972 5 ปีที่แล้ว

      Classes make me sleep and bored.

    • @Maen963
      @Maen963 3 ปีที่แล้ว

      same here ... attending university classes is useless !

  • @folayinkaolaofe6646
    @folayinkaolaofe6646 ปีที่แล้ว

    Wow, this is an amazing video! Been learning SQL queries and syntax for a while now, but never really learnt about database creation and design. You've really helped me put things together. Thanks again.

  • @TinaXinyi
    @TinaXinyi 6 ปีที่แล้ว +8

    You are a life savior!!!! I was trying to finish my assignment for one of my master program class, and i got stuck... You are a GOD SENT! Thank you soooo much for your time!!!

  • @EminoMeneko
    @EminoMeneko 4 ปีที่แล้ว +1

    Thanks. It helped my productivity raise a ton. i'm new to SQL Server Management Studio. I'm rather used to MySQL Workbench. I learnt I was doing it wrong and I had a feeling it was so, hence me watching this video. Now I got confirmation of my assumption and a solution to apply. I want to be able to send this DB script by this evening.

  • @vanessadawson3725
    @vanessadawson3725 2 ปีที่แล้ว +1

    You are awesome! I learned how to successfully do a database in 30mins and I have learned nothing from 3 years of school. Thank you so much😊

  • @tej007ful
    @tej007ful 3 ปีที่แล้ว +1

    you are a life saver, my online exam starts in 2 hrs, emailed my tutor, he hasn't got back to me, your video my friend is spot on, cleard all my doubts

  • @erincancook
    @erincancook 6 ปีที่แล้ว

    Thank you so much for this video! I couldn't understand how to use this when trying to create one for homework and you saved my grade!! I am subscribed now!

  • @syed_hassam
    @syed_hassam 5 ปีที่แล้ว +1

    Very Well explained. Definitely it helped your students. And it also helps many other student. Thanks a lot.

  • @joshuajuan8871
    @joshuajuan8871 6 ปีที่แล้ว

    Fantastic SQL tutorial! Thank you!

  • @GK-xx1uw
    @GK-xx1uw 6 ปีที่แล้ว

    Very helpful and easier to understand. Thank you.

  • @tophattommy2
    @tophattommy2 3 ปีที่แล้ว +11

    This looks like it has some good content. Sadly, I can't hear it.

  • @davidstevens6654
    @davidstevens6654 4 ปีที่แล้ว +1

    Thank you for sharing. Great Job!

  • @giannazarta6987
    @giannazarta6987 7 ปีที่แล้ว +2

    Thanks Brian! Good turtorial..!!!!

  • @marzool1
    @marzool1 6 ปีที่แล้ว

    wow Brian this is what i have been looking for since!

  • @simplyjemelah8276
    @simplyjemelah8276 4 ปีที่แล้ว

    I hope i will continue to learn from you thanks a lot im a information technology student this is my lesson information management

  • @giaptiennbros
    @giaptiennbros 5 ปีที่แล้ว

    thank you ! super easy to follow as a beginner !

  • @echiles2285
    @echiles2285 2 ปีที่แล้ว

    Your a great educator .

  • @chainsaw72081
    @chainsaw72081 7 ปีที่แล้ว +10

    Thanks for whispering the whole way through the tutorial dude....REALLY helpful!!!! >:(

  • @user-pk7ws7iu4g
    @user-pk7ws7iu4g 6 หลายเดือนก่อน

    SAVED MEEE!! So clear!

  • @88SJoe88
    @88SJoe88 5 ปีที่แล้ว

    Please increase the sound volume and thanks for the incredible video!

  • @jramandus
    @jramandus ปีที่แล้ว

    Thanks for the video..Really helps me.

  • @abayayalew4282
    @abayayalew4282 6 ปีที่แล้ว

    Very nice & Good

  • @aaronchristopher812
    @aaronchristopher812 7 ปีที่แล้ว

    Brian,The diagram saved correctly. When I refreshed the "Patient" table. The Doctor column was supposed to change to a foreign key. Didn't happen for me... You have any idea why? Thanks

  • @yassinesalimi2155
    @yassinesalimi2155 7 ปีที่แล้ว

    very helpful Thanks !!

  • @ledzeppeman
    @ledzeppeman 5 ปีที่แล้ว +3

    This video is a glorious golden nugget of awesomeness. Have you thought about reuploading with better audio? The info is so good, but the audio is very bad.

  • @FarazKhan-hn9yj
    @FarazKhan-hn9yj 5 ปีที่แล้ว

    Hey Brian I am new for MSSQL 2017, I didn't see database diagram folder which should be just after database and before TABLE can you help me out Thanks in advance.

  • @marcofabiopavone5027
    @marcofabiopavone5027 6 ปีที่แล้ว

    When I try to create new database, I get an error 5105: "An exception occurred while executing a Transact-SQL statement or batch." However, when I wrote an SQL Query for creating a database and executed it, it worked. And much bigger problem, when I try to add table, I get a warning "This backend version is not supported to design database diagrams or tables." When I create table by SQL Query, there's no problems with executing the query, but I cannot see table in tables list.

  • @KBreezyENT
    @KBreezyENT 3 ปีที่แล้ว

    When creating the database diagrams. It says the following data type properties of column dbo.Doctor.DoctorKey do not match those of dbo.Patient.DoctorKey. I had an error earlier because I put nvarchar instead of nchar for Patient, but i got that fixed. Now it’s telling me this. But my data type is correct. It does say length, but they are both nchar(15) for DoctorKey. Any idea what the issue is?

  • @datamanagerjayson366
    @datamanagerjayson366 3 ปีที่แล้ว

    I must of missed an earlier video - what book is he referring to in this video? Also is there a list of videos to follow this from beginning to end? Thanks

  • @thierry9592
    @thierry9592 6 ปีที่แล้ว

    Thanks Brian

  • @tiffanydavidson2720
    @tiffanydavidson2720 2 ปีที่แล้ว

    where did the create table come from on the new query?

  • @thevapingauditfrog2387
    @thevapingauditfrog2387 8 ปีที่แล้ว +39

    I need headphones to hear this properly. Please fix the sound professor.

  • @sylvestero.8032
    @sylvestero.8032 4 ปีที่แล้ว

    \/what a great video. Kindly improve in your sound next time. Thank you.

  • @edwardhartz1029
    @edwardhartz1029 4 ปีที่แล้ว

    MS SQL Management Studio crashes when I try and open my database diagram. DOES ANYONE ELSE HAVE THIS? DO YOU KNOW HOW TO FIX THIS ISSUE? Thank you very much.

  • @gw4303
    @gw4303 3 ปีที่แล้ว +6

    Good course for beginners. Thanks a lot Brian. Buy a better microphone and make some courses on Udemy

    • @BrianGreenNJ
      @BrianGreenNJ  3 ปีที่แล้ว +2

      This is an old video... My latest setup is using Maono mike with an iPhone 6S as the camera. Works a lot better!

  • @edwardhartz1029
    @edwardhartz1029 4 ปีที่แล้ว

    Even after the update, the database diagram still won't open. Instead, the program will crash without an error message.
    PLEASE MAY SOMEONE HELP!?

  • @mustafammq4989
    @mustafammq4989 5 ปีที่แล้ว

    You dont need to run script or modify script to edit any table. Just modify it and change the value. First be sure to uncheck the "prevent saving changes that require table recreation" option. Go to Tools > Options > Designers > Table and Database and uncheck the last option.

  • @metekaba6532
    @metekaba6532 4 ปีที่แล้ว +2

    Thank you sir and this video really helped me to learn Relational Database. I would like to ask you a question. What is the relation between this method and entity framework? Can we apply this relational database in entity framework? I was always afraid to learn entity framework because it seems very hard to me:/ Is it that difficult or easy and valuable to learn? Thanks in advance and have a nice day!

  • @itsnmntanez7643
    @itsnmntanez7643 5 ปีที่แล้ว +1

    I suggest the voice over the microphone was higher enough to hear you! Thank u :)

  • @CarlosBarker16
    @CarlosBarker16 8 ปีที่แล้ว

    Stay awesome

  • @CarlosBarker16
    @CarlosBarker16 8 ปีที่แล้ว +7

    Can you fix the sound a bit? Please

  • @genghisrex
    @genghisrex 3 หลายเดือนก่อน

    Hello, this is a great video. You are helping me with a project. What is the book you are referring to?

  • @saeed6993
    @saeed6993 6 ปีที่แล้ว +5

    Hi
    the video was perfect . thank you
    i just wish your voice over the microphone was higher

  • @asifasehar8919
    @asifasehar8919 5 ปีที่แล้ว

    very easier and helpfull!
    i'm looking for database for hospital management system.can you help me??

  • @hayobatal9374
    @hayobatal9374 4 ปีที่แล้ว +1

    Good class but please use a better Mic as it is really hard to hear.

  • @tauqeer25
    @tauqeer25 5 ปีที่แล้ว

    having a same name for primary key in three tables is not a good idea , as it creates lot of problems when you join tables and do some nested queries.

  • @AdilKhan-oc2tx
    @AdilKhan-oc2tx 3 ปีที่แล้ว

    Hi brian, can you tell me why did you chose string(nchar) as datatypes for the keys instead of integer(int).

    • @BrianGreenNJ
      @BrianGreenNJ  3 ปีที่แล้ว +1

      The data provided by the lab manual for this exercise used values for the Patient_Key and Doctor_Key that included dashes. For example, Patient_Key 1-24, or doctor_key 1-30. An integer would not be able to store the dash "-" character.
      If the ID's were only integers, than I would have used integer. In many cases, when we are designing new databases, it has to support existing fields/values from legacy systems, or natural keys. To see more examples of this, take a look at my videos on creating a MySql/MariaDB database for the Department of Education College Scorecard data from data.gov: th-cam.com/play/PL6XklZATqYx-6BDhP01cdfdv1m35Hn68G.html

    • @AdilKhan-oc2tx
      @AdilKhan-oc2tx 3 ปีที่แล้ว

      @@BrianGreenNJthank you 😊

  • @vimalvaira
    @vimalvaira 7 ปีที่แล้ว +6

    8:37 you just have to change setting , go to Tools -> options -> Design -> uncheck the "prevent saving changes that require table recreation" and then you don't have to write that script

    • @shaikhjanipasha8078
      @shaikhjanipasha8078 5 ปีที่แล้ว

      hi canu u please tell me how to design a database to store Retail Data for a Sales Business.CASE STUDY FOR DATABASE DESIGN AND RELATIONSHIP UNDERSTANDING please

    • @edwardhartz1029
      @edwardhartz1029 4 ปีที่แล้ว

      Thank you sir :) After 1 hour wondering why I couldn't save the database diagram, I tried this method and it finally worked! A very helpful comment indeed.

  • @Creamagination
    @Creamagination 5 ปีที่แล้ว +2

    That moment when you're Lead DB administrator and you have to watch this to enforce simple things so that people don't fuck up data integrity.

  • @azizsaouli93
    @azizsaouli93 7 ปีที่แล้ว

    where is the assosiation betwiin two table??? or its just foreign key

    • @BrianGreenNJ
      @BrianGreenNJ  7 ปีที่แล้ว

      In the physical design, an association is achieved through foreign keys.

    • @chainsaw72081
      @chainsaw72081 7 ปีที่แล้ว

      do you have another video explaining this where I can actually hear you?? volume all the way up on the CPU and TH-cam and it sounds like you're in the next room with the door shut with a sock in your mouth. No offense, I'm just really confused about this and it's aggravating!

  • @ivankukushkin9923
    @ivankukushkin9923 5 ปีที่แล้ว

    I downloaded SSMS 18 and created LocalDB file. I have no any Database Diagram folder (in Object Explorer) at all.

  • @techLawrsome
    @techLawrsome 2 ปีที่แล้ว

    Audio is soo bad!. Could you please fix it sir!? Thank you in advance!

  • @vise4707
    @vise4707 4 ปีที่แล้ว +1

    Audio's really bad.. would have been great video

  • @mailziyad
    @mailziyad 6 ปีที่แล้ว

    hard to hear you

  • @nadatoleihy7483
    @nadatoleihy7483 7 ปีที่แล้ว

    it's very low...... i can't hear even with headphones 😔

  • @getasewkasahun76
    @getasewkasahun76 4 ปีที่แล้ว

    Mr ur sound is very low can U fixed thank U.

  • @rickwebdale9939
    @rickwebdale9939 ปีที่แล้ว

    can't hear a thing

  • @koandamouniratou9332
    @koandamouniratou9332 7 ปีที่แล้ว

    si j peux savoir des requets qui permet de faire union et jointure , I live in Francophone contry in Africa , I don't speak english ,mais si vous pouvez faire en francais

    • @macnyagang
      @macnyagang 6 ปีที่แล้ว

      go and learn english. There is no time for translation here. SQL statements are in english call it structured english query language if you care so learning english is an obligation

  • @nikg6305
    @nikg6305 4 หลายเดือนก่อน

    its so quiet 😿

  • @quantomic1106
    @quantomic1106 4 ปีที่แล้ว +1

    Please don't hide your mic under your keyboard in the next video.

  • @mushrifas9201
    @mushrifas9201 7 ปีที่แล้ว

    Not audible

  • @thiery572
    @thiery572 5 ปีที่แล้ว

    Do people really create sql table by writing it?

    • @BrianGreenNJ
      @BrianGreenNJ  5 ปีที่แล้ว

      Yup... All the time! The GUI tools work pretty well, but there are times you have to use just SQL, and its obviously very important to understand the code if you are looking at SQL CREATE TABLE scripts.

    • @thiery572
      @thiery572 5 ปีที่แล้ว

      @@BrianGreenNJ Ooo... thanks for explaining.

  • @rogerbreton6412
    @rogerbreton6412 4 ปีที่แล้ว +1

    Your students are spoiled :-)

  • @waridarshad1364
    @waridarshad1364 2 ปีที่แล้ว

    volume is very low

  • @rvelosa
    @rvelosa 4 ปีที่แล้ว

    volume is too low

  • @Chocolatchips
    @Chocolatchips 6 ปีที่แล้ว

    Thanks for trying, but fix your sound. Even though this is more intelligible than the five demos above you in the search results, it's still next to impossible to follow due to the audio.

  • @TheUmairkhan2257
    @TheUmairkhan2257 4 ปีที่แล้ว

    very hard to listen.

  • @WyMustIGo
    @WyMustIGo 3 ปีที่แล้ว

    Learn how to use a DB or VU meter to properly set VOLUME LEVELS! You *NEVER* set it by ear using headphones, you use a METER!

  • @xxtriplex95
    @xxtriplex95 6 ปีที่แล้ว

    can't link them... ERORS, cant populate my table..errors.... can't edit my fields because you guess it.. errors that stupid "save as text or cancel pop up ... omg fuck this bullshit i rather pull my neils than to work with this anti-logic UI crap, but I need a passing grade so thanks for the tutorial.

  • @vidyaanvekar
    @vidyaanvekar 3 ปีที่แล้ว

    Poor audio quality.

  • @sonaangdembe2920
    @sonaangdembe2920 ปีที่แล้ว

    sound system is worst

  • @MarcoBusi10
    @MarcoBusi10 2 ปีที่แล้ว

    abysmal audio

  • @paradigmshift2223
    @paradigmshift2223 2 ปีที่แล้ว

    Terrible audio..

  • @ussul6524
    @ussul6524 6 ปีที่แล้ว

    Speak up!!!!!!!!!!!!!1

    • @BrianGreenNJ
      @BrianGreenNJ  6 ปีที่แล้ว +1

      Honza B turn up your volume. Sheesh.