Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2012
    Posts
    2

    Database Designing help

    i have good knowlegde about DBMS. but I have never done any designing professionally. i am a student.
    Question 1. can someone guide me how to do that. i mean Steps.

    i am trying to increase my skills. so my current problem is

    i have table
    1) Subject with (subject_id)
    2) Student with (Student_id)

    Question 2) i want to make a new table MARKS

    how to do that so my database stay normalise.

    Student_id,Subject_id,Marks
    will it be okay to have many similar entries in student_id with diferent subject_id and different marks?

    OR
    do i need 1 more table.

    thank you.

    after designing it in conceptual,logical and physical levels.

    question 3) what are the steps to normalize my database. i know about all normalization forms. but how to achieve them?

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    Quote Originally Posted by Atley View Post
    Student_id,Subject_id,Marks
    will it be okay to have many similar entries in student_id with diferent subject_id and different marks?
    yes, yes, yes!!

    and don't forget the primary key --

    CREATE TABLE marks
    ( student_id INTEGER NOT NULL
    , subject_id INTEGER NOT NULL
    , PRIMARY KEY ( student_id, subject_id )
    , mark INTEGER NOT NULL
    );

    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

  3. #3
    Join Date
    Dec 2012
    Posts
    2
    thank you for your answer.
    can you please answer other 2 question please.

  4. #4
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    1. how to design professionally

    -- this is far too big a topic to cover in a forum

    3. steps to normalize a database

    -- this is far too big a topic to cover in a forum
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

  5. #5
    Join Date
    Oct 2009
    Location
    221B Baker St.
    Posts
    487
    i have good knowlegde about DBMS.

    can you please answer other 2 question please.
    Knowing these is part of having a "good knowledge".

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •