If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Database Designing help

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old
Registered User
 
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?
Reply With Quote
  #2 (permalink)  
Old
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 20,000
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
Reply With Quote
  #3 (permalink)  
Old
Registered User
 
Join Date: Dec 2012
Posts: 2
thank you for your answer.
can you please answer other 2 question please.
Reply With Quote
  #4 (permalink)  
Old
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 20,000
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
Reply With Quote
  #5 (permalink)  
Old
Registered User
 
Join Date: Oct 2009
Location: 221B Baker St.
Posts: 487
Quote:
i have good knowlegde about DBMS.

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

Tags
database design, normalization, steps, student, summer project

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On