PC Review


Reply
Thread Tools Rate Thread

Asset management dealing with groups of items and indivual items

 
 
Darryn
Guest
Posts: n/a
 
      10th Oct 2003
Hi all

I am in the middle of developing an asset managing/inventory database
system for outdoor recreation equipment. Based loosely on the asset
tracking template in Access97

I am stuck on how to model the following scenario

Some pieces of equipment in the inventory are group of individual
items. The instructors only want to count the things as a complete
set (an abseiling kit, comprising of some carabiners, gloves and a
piece of hardware)
The manager wants to know how many of each individual item are
required to make up complete sets, as he buys xx number of carabiners
and yy numbers of gloves to make up the complete sets.

Also some of the items are counted individually when they are used for
a different purpose

Any suggestions are appreciated

Darryn
-- remove two eyes to reply!
 
Reply With Quote
 
 
 
 
TC
Guest
Posts: n/a
 
      11th Oct 2003
Try something like this.

tblItem
ItemID (pk)
Description (harness, carabiner, airtank, wetsuit)

tblKit
KitID (pk)
Description (abseil kit, scuba kit)

tbkKitItem
KitID ( composite
ItemID primary key )

That would handle a one-level breakdown.

To define carabiner as a necessary part of abseil kits:
INSERT INTO tblKitItem (KitID, ItemID) VALUES (888, 999);
where 888 is the KitID for abseil kits, and 999 is the ItemID for
carabiners.

To count the total number of abseil kits:
SELECT COUNT(*) FROM tblKit WHERE KitId = 888;

To count the total number of carabiners (in whatever kits they are used):
SELECT COUNT(*) FROM tblItem WHERE ItermID = 999;

HTH,
TC


<Darryn> wrote in message news:(E-Mail Removed)...
> Hi all
>
> I am in the middle of developing an asset managing/inventory database
> system for outdoor recreation equipment. Based loosely on the asset
> tracking template in Access97
>
> I am stuck on how to model the following scenario
>
> Some pieces of equipment in the inventory are group of individual
> items. The instructors only want to count the things as a complete
> set (an abseiling kit, comprising of some carabiners, gloves and a
> piece of hardware)
> The manager wants to know how many of each individual item are
> required to make up complete sets, as he buys xx number of carabiners
> and yy numbers of gloves to make up the complete sets.
>
> Also some of the items are counted individually when they are used for
> a different purpose
>
> Any suggestions are appreciated
>
> Darryn
> -- remove two eyes to reply!



 
Reply With Quote
 
TC
Guest
Posts: n/a
 
      11th Oct 2003
Er ... what drug was I on here?

The structure that I suggested, assumes that tblItem contains a seperate
entry for each physical item - not just for each *type* of item. So if you
had 8 carabiners, there would be 8 rows in tblItems.

Similarly it assumes that tblKits contains a seperate entry for each
physical kit - not just for each type of kit. So if there were 8 abseil
kits, there would be 8 rows in tblKits.

So the item description (carabiner) should *not* go in tblItems, and the kit
description (abseil kit) should not go in tbKits. Those descriptions should
go in sepertate tables:

tblItemType
ItemTypeID (pk)
Description (harness, carabiner etc.)

tblKitType
KitTypeID (pk)
Description (abseil kit, scuba kit)

then the relevent *ItemTypeID* should go in tblItems (as a pointer to the
relevent Item Type record), and KitTypeID should go in tblKits.

tblItem still makes sense: it stores the details of a specific item (not
just type) of equipment - eg. serial number, date last checked, batch #,
purchased from, etc. tblKits stores similar details pertaining to kits.

Sorry for any confusion!

HTH,
TC


"TC" <(E-Mail Removed)> wrote in message news:1065842177.195798@teuthos...
> Try something like this.
>
> tblItem
> ItemID (pk)
> Description (harness, carabiner, airtank, wetsuit)
>
> tblKit
> KitID (pk)
> Description (abseil kit, scuba kit)
>
> tbkKitItem
> KitID ( composite
> ItemID primary key )
>
> That would handle a one-level breakdown.
>
> To define carabiner as a necessary part of abseil kits:
> INSERT INTO tblKitItem (KitID, ItemID) VALUES (888, 999);
> where 888 is the KitID for abseil kits, and 999 is the ItemID for
> carabiners.
>
> To count the total number of abseil kits:
> SELECT COUNT(*) FROM tblKit WHERE KitId = 888;
>
> To count the total number of carabiners (in whatever kits they are used):
> SELECT COUNT(*) FROM tblItem WHERE ItermID = 999;
>
> HTH,
> TC
>
>
> <Darryn> wrote in message

news:(E-Mail Removed)...
> > Hi all
> >
> > I am in the middle of developing an asset managing/inventory database
> > system for outdoor recreation equipment. Based loosely on the asset
> > tracking template in Access97
> >
> > I am stuck on how to model the following scenario
> >
> > Some pieces of equipment in the inventory are group of individual
> > items. The instructors only want to count the things as a complete
> > set (an abseiling kit, comprising of some carabiners, gloves and a
> > piece of hardware)
> > The manager wants to know how many of each individual item are
> > required to make up complete sets, as he buys xx number of carabiners
> > and yy numbers of gloves to make up the complete sets.
> >
> > Also some of the items are counted individually when they are used for
> > a different purpose
> >
> > Any suggestions are appreciated
> >
> > Darryn
> > -- remove two eyes to reply!

>
>



 
Reply With Quote
 
Darryn
Guest
Posts: n/a
 
      11th Oct 2003
On Sat, 11 Oct 2003 15:06:04 +1200, "TC" <(E-Mail Removed)> wrote:

>Er ... what drug was I on here?
>
>The structure that I suggested, assumes that tblItem contains a seperate
>entry for each physical item - not just for each *type* of item. So if you
>had 8 carabiners, there would be 8 rows in tblItems.
>
>Similarly it assumes that tblKits contains a seperate entry for each
>physical kit - not just for each type of kit. So if there were 8 abseil
>kits, there would be 8 rows in tblKits.
>

That is something else I have been agonising over!

The major items in the inventory are numbered ie vehicles, wetsuits,
wetsuits, backpacks, tents. Others are just counted, the abseil kits,
snorkelling kits, barrels etc etc.

Obviously an item which has been individally numbered should have a
separate record, but I am not sure if I need this for the counted
items. I know with a separate record I could keep better track of
the individual components (some have a finite lifespan as a matter of
safety policy)

>So the item description (carabiner) should *not* go in tblItems, and the kit
>description (abseil kit) should not go in tbKits. Those descriptions should
>go in sepertate tables:
>
>tblItemType
> ItemTypeID (pk)
> Description (harness, carabiner etc.)
>
>tblKitType
> KitTypeID (pk)
> Description (abseil kit, scuba kit)
>
>then the relevent *ItemTypeID* should go in tblItems (as a pointer to the
>relevent Item Type record), and KitTypeID should go in tblKits.
>
>tblItem still makes sense: it stores the details of a specific item (not
>just type) of equipment - eg. serial number, date last checked, batch #,
>purchased from, etc. tblKits stores similar details pertaining to kits.



It seems like I need to modify my table design quite a lot, so far my
my main equipment table looks like this with a lot of small lookup
tables attached to it.

Record ID (pk autonumber)
CategoryID
SubCategoryID
Equipment Description
EquipIDNumber (have not used this as PK as it is not unique and
does not apply to all items)
Equipment Description
ManufacturerID
Model
SerialNumber-idcolourcode
SizeID
ColourID
Finitelifespan T/F
Lifespan
StatusID
Acqusitiondate
Disposaldate
PurchPrice
SupplierID
Comments
EquipmentQuantity

I had done this as it seemd to be the easiest way for me to design the
input form as I will not be on hand to support the system once it has
finished.

I think I need to have BIG rethink and break it down into smaller
tables for all of my sub categories as well as the kit/individual
items

>Sorry for any confusion!


No you have been a great help so far
Thank You

Darryn
-- remove two eyes to reply!
 
Reply With Quote
 
TC
Guest
Posts: n/a
 
      12th Oct 2003
> I had done this as it seemd to be the easiest way for me to design the
> input form as I will not be on hand to support the system once it has
> finished.


Darryn, this is a common but mistaken approach. You should design the tables
based on the nature of the data that you need to store, and how it all
relates together. You do not consider form or report design *at all*, at
that stage. Form/report design comes later!


> I think I need to have BIG rethink and break it down into smaller
> tables for all of my sub categories as well as the kit/individual
> items


I think that would be time well spent. See if the following article helps (I
can't remember whether I suggested it to you before, or not):

http://support.microsoft.com/support...es/Q100139.ASP

Good luck!
TC


<Darryn> wrote in message news:(E-Mail Removed)...
> On Sat, 11 Oct 2003 15:06:04 +1200, "TC" <(E-Mail Removed)> wrote:
>
> >Er ... what drug was I on here?
> >
> >The structure that I suggested, assumes that tblItem contains a seperate
> >entry for each physical item - not just for each *type* of item. So if

you
> >had 8 carabiners, there would be 8 rows in tblItems.
> >
> >Similarly it assumes that tblKits contains a seperate entry for each
> >physical kit - not just for each type of kit. So if there were 8 abseil
> >kits, there would be 8 rows in tblKits.
> >

> That is something else I have been agonising over!
>
> The major items in the inventory are numbered ie vehicles, wetsuits,
> wetsuits, backpacks, tents. Others are just counted, the abseil kits,
> snorkelling kits, barrels etc etc.
>
> Obviously an item which has been individally numbered should have a
> separate record, but I am not sure if I need this for the counted
> items. I know with a separate record I could keep better track of
> the individual components (some have a finite lifespan as a matter of
> safety policy)
>
> >So the item description (carabiner) should *not* go in tblItems, and the

kit
> >description (abseil kit) should not go in tbKits. Those descriptions

should
> >go in sepertate tables:
> >
> >tblItemType
> > ItemTypeID (pk)
> > Description (harness, carabiner etc.)
> >
> >tblKitType
> > KitTypeID (pk)
> > Description (abseil kit, scuba kit)
> >
> >then the relevent *ItemTypeID* should go in tblItems (as a pointer to the
> >relevent Item Type record), and KitTypeID should go in tblKits.
> >
> >tblItem still makes sense: it stores the details of a specific item (not
> >just type) of equipment - eg. serial number, date last checked, batch #,
> >purchased from, etc. tblKits stores similar details pertaining to kits.

>
>
> It seems like I need to modify my table design quite a lot, so far my
> my main equipment table looks like this with a lot of small lookup
> tables attached to it.
>
> Record ID (pk autonumber)
> CategoryID
> SubCategoryID
> Equipment Description
> EquipIDNumber (have not used this as PK as it is not unique and
> does not apply to all items)
> Equipment Description
> ManufacturerID
> Model
> SerialNumber-idcolourcode
> SizeID
> ColourID
> Finitelifespan T/F
> Lifespan
> StatusID
> Acqusitiondate
> Disposaldate
> PurchPrice
> SupplierID
> Comments
> EquipmentQuantity
>
> I had done this as it seemd to be the easiest way for me to design the
> input form as I will not be on hand to support the system once it has
> finished.
>
> I think I need to have BIG rethink and break it down into smaller
> tables for all of my sub categories as well as the kit/individual
> items
>
> >Sorry for any confusion!

>
> No you have been a great help so far
> Thank You
>
> Darryn
> -- remove two eyes to reply!



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Assistance dealing with duplicate items imported from Quickbooksneeded please. Ward Microsoft Access 2 26th Nov 2007 02:20 PM
RE: Count unique items in groups =?Utf-8?B?S2ltYm8=?= Microsoft Excel Worksheet Functions 0 24th Aug 2006 01:18 AM
Delete duplicate items in sent items or how to sort by how many items in conversation view dangmoss Microsoft Outlook Discussion 2 2nd Feb 2006 02:59 AM
how to group several items in different groups to be placed in a c =?Utf-8?B?Q29saW4ydQ==?= Microsoft Excel Misc 1 31st Jul 2005 07:10 AM
Dealing With Unique Items Heath Microsoft Excel Programming 3 1st Mar 2004 10:15 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:17 PM.