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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Help creating a relational schema
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

1 Posts

Posted - 12/07/2013 :  10:35:10  Show Profile  Reply with Quote
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

Very Important crosS Applying yaK Herder

52326 Posts

Posted - 12/07/2013 :  11:01:12  Show Profile  Reply with Quote
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000