x

Database design

I have a [Employee] who belongs to a [group] and works on a constraction [Site] using a certain [Tool]. The employee can move to a different group and a Tool can be assigned to a different person.Employee can have multiple tools. Also, we rent the tool from a company that charges us per hour usage. So we receive a [bill] monthly for an [Employee] of certain [group] using certain [Tool]. My attempt for the first part is as follows but I am not sure. I ask help for where to start.

Employee-->EmployeeGroup<--Group | EmployeeTool | Tool

I receive the following pages for the bill

invoice {each line contains group summary} InvoiceSummaryPerEmployee{each line contains an emplyee of certain group using cetain tool) InvoiceToolUsage{hourly usage of a tool, including, chares, taxes etc)

-the InvoiceToolUsage contains hourly mutple lines per tool -InvoiceSummaryPerEmployee contains total lines of each tool used by employee in a group -invoice is group total

Thanks

more ▼

asked Nov 07, 2009 at 02:32 PM in Default

Jama gravatar image

Jama
1 1 1

(comments are locked)
10|1200 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x237

asked: Nov 07, 2009 at 02:32 PM

Seen: 426 times

Last Updated: Nov 07, 2009 at 02:32 PM