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 > General > Database Concepts & Design > Database design issue

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-14-07, 11:18
krasssy_lf krasssy_lf is offline
Registered User
 
Join Date: Mar 2007
Posts: 2
Database design issue

I am a bit confused In which normal form (2NF, 3NF) will be the following sample database.

Database - jobportal

Table accounts
---------------
account_id
registration_email
temporary_email
registration_pass
data_creation

Table education
---------------
education_id
account_id -> FK to the accounts table
institution_name
faculty_name
education_from
education_to
education_degree
country_id -> FK to a nomenclature table
town

Table country
---------------
country_id
country_name

For one account there might be stored many educational records.

Are there any other problems that might be encountered?
Your help is kindly appreciated.

Regards
Reply With Quote
  #2 (permalink)  
Old 03-14-07, 14:32
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
homework assignment? which school? what's the name of the course?
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 03-15-07, 03:20
krasssy_lf krasssy_lf is offline
Registered User
 
Join Date: Mar 2007
Posts: 2
no, its not a homework. its a sample bit of a whole database for a jobportal site.
there are other tables, similarly connected to the account table (f.e certification, projects, references). i am on some stage of designing it, that i am a bit consufed about destinguishing the normal form of it although analysing the forms definitions and their examples. i am wondering if i had to extract education.account_id and the education.education_id in a separate table, so the education.account_id FK would be not needed in the education table.
Reply With Quote
  #4 (permalink)  
Old 03-15-07, 06:17
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
Quote:
Originally Posted by krasssy_lf
i am wondering if i had to extract education.account_id and the education.education_id in a separate table, so the education.account_id FK would be not needed in the education table.
you could do that if you wanted to, but i wouldn't

is it possible for you to insert an education row without knowing whose education it is? i.e. without knowing the account?

i doubt it, so therefore education.account_id must be NOT NULL, therefore i would leave it right there in the education table
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
Reply

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