Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Help creating a relational schema

Author  Topic 

KevinK
Starting Member

1 Post

Posted - 2013-12-07 : 10:35:10
Hello, I am taking an SQL server class in college and I need help with a project. I am to create a business/organization and then create a database for it. My business is...
Marine Archaeology, a business founded in 1998 that provides services to any government or organization by way of salvaging deep-water shipwrecks. It's mission is to help preserve history through the mapping of shipwreck sites as well as the recovery of artifacts to discourage future divers from disturbing the wrecks or stealing precious artifacts. Marine Archaeology's headquarters is currently located in Pittsburgh, Pennsylvania. However, the company's ship, the Neptune serves as it's mobile headquarters when at sea. As of now, Marine Archaeology currently has 50 experienced and knowledgeable employees, 20 of which work at the company headquarters in Pittsburgh and the remaining 30 serve as crew members on the Neptune.

So far my relational schema consists of...

DIVE (ShipID, ShipName, ShipLocation, ShipAge, Artifacts#, ArtifactsProfit)  PROFIT (Fees, ArtifactsProfitTotal)  EXPENSES (Salary, Maintanance, Fuelcost, TotalExpenses)TOTALPROFIT (Expenses, Profit)

Any correction to my relational schema would be greatly appreciated since I've been stuck on this for a month





visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-12-07 : 11:01:12
I dont see any link between DIVE which contains details of Artifacts with PROFIT which seems to be containing a summary data for it (I dont understand need of this table though)
Also EXPENSES currently have only limited types like salary etc. A better approach would be to generalize it with structure like below
two tables
1. ExpenseType (TypeID,TypeDesc)
2. ExpenseDetails (DetailID,ExpenseTypeID (FK to ExpenseType),ExpenseAmount)
this will enable you to add any type of expenses to type table and add details to detail table.

also another thing missing from design is employeedetails. It should have EmpID,Designation,Name,Location and any other attributes for an employee and also his manager detail.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
   

- Advertisement -