Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Normalisation

  • 06-04-2011 7:39pm
    #1
    Registered Users, Registered Users 2 Posts: 14


    Hi lads,

    I want to do 0NF to 3NF for a few databases but really can't get my head around on how to do it correctly. The examples I've found online just don't make sense to me. I've spent the last couple of hours trying to understand :confused:

    I attached an ER diagram of one of my databases. If you could show me how to solve that one, I would be able to do the rest as they're similar.

    Thanks.


Comments

  • Registered Users, Registered Users 2 Posts: 184 ✭✭Razzuh


    It's not easy to normalise just from that ER diagram, I'd need a bit more description of the entities and their relatinoships, and what the attributes are representing. I think it might be pretty close to 3NF as it is though.

    Am I right in saying that dvd, personel and roles all have many-to-many relationships? i.e.
    • a dvd has 0 to many personel.
    • a dvd has 0 to many roles.
    • a role has 0 to many personel
    • a role has 0 to many dvds
    • a personel has 0 to many dvds
    • a personel has 0 to many roles

    Please reply and correct these if they're not right.

    The thing that jumped out at me is the role_id in the personel table, I'm pretty sure that's not right. What is the purpose of that?


  • Registered Users, Registered Users 2 Posts: 2,099 ✭✭✭Dean820


    edit.


  • Registered Users, Registered Users 2 Posts: 14 corkweb


    I think I did it in reverse.

    Here are the 0NF (I think):

    firstname
    surname
    dob
    nationality
    job_title
    job_description
    website
    twitter
    image
    dvd_title
    dvd_length
    dvd_bonuses
    release_date
    cover_art
    genre
    certificate
    studio

    Was just looking at another tutorial, can't get my head around it.
    The thing that jumped out at me is the role_id in the personel table, I'm pretty sure that's not right. What is the purpose of that?
    The roles_id is being linked to another table in VB so it displays what role he actor/director,etc play.


Advertisement