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 > Check for anomalies, & convert it in 4N or 5N.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-11-11, 09:38
mansoornizamani mansoornizamani is offline
Registered User
 
Join Date: Mar 2010
Posts: 4
Check for anomalies, & convert it in 4N or 5N.

I have been reading the DB2 book but have come to a problem, and I hope that members of this forum will help me:

Q: I want to creat a database;
1) “FMS“
it contains the following Tables:

Employee Table
EmployeeID, FirstName, LastName, HireDate, Address, Salary, AllowedHoalidays, AreaAssigned, FarmingType, WorkId.

Farm table
FarmId, FarmSize, FarmOwnerName, FarmOwnerAddress, FarmLocation, FarmType, MaxYieldYear, DurationBMaxYield, WaterStopageDate, WaterStartDate, WaterDayTime.

Leased Farms Table
LeasedId, FarmId, LeasedOnwer, LeasingAmount, LeaseStartDate, LeaseEndDate, NoPloughedOfFarm, PlougherId, MachineManagementId, FertilizierAddingDate, AddedFertilizerAmount, FertilizerId, No.PoisinSprayed, SprayedPoisinId, PoisinSprayedDate, AgreementType, AgreementPic,

Shippment table
ShippmentId, ProductCategoryId, ShippmentDate, ShippmentVehicle#, ShippmentTypeId, LeasedFarmId, EmployeeId.

Shippment Type Table
ShippmentTypeId, ShippmentType, Quantity.

Commission Agent Table
CommissionAgentId, FirstName, LastName, H&ShopAddress, PhoneNo., Commission.

Work Table
WorkId, EmployeeId, WorkTittle.

Sales Table
Sales#, CommissionAgentId, SellAmount, Expenses, NetAmount, SaleDate, AmountTaken, ShippmentId.

Product or Crop Categories Table
CropCategoryId, Categoryname, Description, Picture.

Farm Disease Table
DiseaseId, DiseaseName, DiseaseCause, Pic, Treatment, PoisinId.

Part Table
Partid, PartName, PartUsedIn (MachineId).


Fertilizer Table
FertilizerID, FertilizerName, ContentsInFertilizer, RecommendedAmountPerAcre.

Grass table
GrassID, GrassName, RecommendedGrassicide, AmountPerAcre, PoisinID.

Poisin table
PoisinID, PoisinName, PoisinType, RecommendedFor, RecommendedAmount.

Machine Management Table
MachineManagementID, FuelConsumed,MachineID, AreaPloughed, HoursWorked, PloughDate, FarmedWorkedID(FarmID).

Machine info table
MachineID, OwnerName, MachineType.

Seasonal crop table
SeasonCropID, CropName, RecommdedCultivatingStartDate, RecommendedCultivatingendDate, RecommendedHarvestingDate, RecommendedFarmID(FarmID).

Land formation table
LandFormedID, LandCondition, RecommendedPloughTypes, RecommendedPlough#.

Farm cost table
FarmCostID, MaterialID, Amount, Cost, FarmID(LeasedFarmID).


Employee transaction record table
TransactionID, Date, AmountTaken, AbsentDate, EmployeeID

material record table
MaterialID, PoisinID, FertilizierID, PartID, FuelSupplierID, BoughtAmount, Date, Cost, Mislenuous.

Machine maintaince table
MaintainceID, MachineType, MaintainceDate, MaintainceCost, MachineID, PlougherID

Plougher table
PlougherID, PlougherName, UsedFor.

Fuel supplier table
FeulSupplierID, FuelSupplierName, Location, Phone#.


Bank loan table
BankLoanID, BankID, BranchID, GrantedLoan, GrantDate, InterestRate, LoanGrantedFarmID(LeasedFarmID), LoanSubmissionDate, GrantedLoanType.

Bank table
BankID, BankName.

Bank Branch table
BranchID, BankID, Location, Account#.



Here ________ Represents Primary Key & _ _ _ _ _ Represents Foreign Key.


I have converted it in 3N form. I want to know that Is there any Anamlies (update, delete etc). Is there any need to convert it in 4N and 5N, if yes then please Help me.

Thanks.

Regards,

Mansoor Nizamani
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