Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 17th, 2003, 02:04 PM
unatratnag unatratnag is offline
Average Intelligence
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Ohio/Chicago
Posts: 678 unatratnag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 22 sec
Reputation Power: 6
Send a message via AIM to unatratnag
design ideas for quantity and reserved amount of items

Basically I have a list of cables, a quantity, an available, and then location of the cable

so let's say I have an XLR cable
XLR 5 total 3 available
and then lets say 1 is in Japan and 1 is in Atlanta.

I'm trying to think of the best way to represent this in tables and have come up with several ideas. The one i like best so far is a

TABLE 1:
cable
quantity
available

TABLE 2:
ID
cable 1:
cable 2:
cable 3:
location:


Table 2's cable 1,2,3 is the quantity for how much they have checked out. I know this has to be bad database design, does anyone have any sugguestions?

for example I'm sure i'd want to have a 3rd table to represent the many to many for cables to locations instead

in which case for example

table 3
cable
location
quantity

but that'd be a lot of columns if i have a lot of cables, is this the best design? Because once they're returned from the location i don't really need that location anymore and it could actually be deleted from the database, all i really need is to keep track of the total amoutn of cables, available, and where they are.

Last edited by unatratnag : October 17th, 2003 at 02:09 PM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > design ideas for quantity and reserved amount of items


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT