Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7765015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:04:18+00:00 2026-06-01T15:04:18+00:00

this is a homework which I already did, I just need either confirmation if

  • 0

this is a homework which I already did, I just need either confirmation if it is done correctly or hints how to solve it. Thanks.
This is the question:

The relation Vaccine is intended to record information about infants and their
vaccinations: when a particular infant had a particular vaccination; where the
vaccination took place; who administered the vaccine. The following gives the
relational heading:
Vaccine(VaccineCode, InfantId, Date, InfantName, InfantAddress,
MedicalCentreCode,MedicalCentreName, MedicalCentreAddress,NurseId,
NurseName)

Besides the functional dependencies with the primary key as their determinant,
Vaccine has the following non-trivial functional dependencies:
FD1:InfantId -> InfantName
FD2:InfantId -> InfantAddress
FD3:MedicalCentreCode -> MedicalCentreName
FD4:MedicalCentreCode -> MedicalCentreAddress
FD5:NurseId -> NurseName

Give this relation ship first in 2NF and then in 3NF.

My solution:
2NF:
Infant(InfantID, InfantName,InfantAddress)
Rest(VaccineCode, InfandID, Date, MedicalCentreCode, MedicalCentreName, MedicalCentreAddress, NurseId, NurseName)

Now Infant is in 2NF and also in 3NF but Rest relation isn’t in 3NF.
3NF for all those relation will look like this (according to me ofcourse):
VaccinationDetails(VaccineCode, InfantID, Date ,MedicalCentreCode NurseId)

Infant(InfantID, InfantName, InfantAddress)

MedicalCentre(MedicalCentreCode, MedicalCentreName, MedicalCentreAddress)

Nurse(NurseId, NurseName)

Are my solutions 2NF and 3NF?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T15:04:19+00:00Added an answer on June 1, 2026 at 3:04 pm

    2NF requires that the relation a) be in 1NF, and b) have no partial key dependencies.

    Projecting Infant (InfantID, InfantName,InfantAddress) from the original relation is correct. InfantName and InfantAddress are functionally dependent on InfantID; InfantID is part of the key {VaccineCode, InfantId, Date}.

    Now Infant is in 2NF and also in 3NF but Rest relation isn’t in 3NF.

    That’s right. 3NF requires a) the relation be in 2NF, and b) have no transitive dependencies. There’s one transitive dependency from {VaccineCode, InfantId, Date} to MedicalCentreCode to {MedicalCentreName, MedicalCentreAddress}. So removing that transitive dependency by projection gives you

    • Infants {InfantID, InfantName,InfantAddress}
    • MedicalCentres {MedicalCentreCode, MedicalCentreName, MedicalCentreAddress}
    • Vaccinations {VaccineCode, InfantID, Date, MedicalCentreCode, NurseId, NurseName}

    And there’s another transitive dependency involving NurseID and NurseName. Projecting that one gives you

    • Infants {InfantID, InfantName,InfantAddress}
    • MedicalCentres {MedicalCentreCode, MedicalCentreName, MedicalCentreAddress}
    • Nurses {NurseID, NurseName}
    • Vaccinations {VaccineCode, InfantID, Date, MedicalCentreCode, NurseId}

    Those four relations are all now in at least 3NF. (The first three are in 5NF.)

    Going beyond your homework

    But there’s a small problem with this. As it stands now, you can enter the medical center code for “General Hospital”, and the id number of a nurse who doesn’t work there. You might think about how you’d express that dependency, and what the resulting relations might look like.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a homework question from compiler design course. I just need an explanation
This is homework, just so that's mentioned. I have project called AdventCalendar, which is
For starters this is homework, I just really need help with a binary search
(Before anyone says anything Yes this was homework but i have already turned it
I have this homework problem where I need to use regex to remove every
I've been thinking about this homework question for a bit now. Given an number
This is a homework question, exactly as follows: The heuristic path algorithm (Pohl, 1977)
As question states, I am doing homework which have 2 variables BOOK, and MAGAZINE
I'm doing a basic homework assignment which looks like this: While input <> -1
This is a homework assignment, just for all that want to know. I'm writing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.