16f36 subtable relationships
Sign Up |  Live StatsLive Stats    Articles 37,330| Comments 177,255| Members 19,411, Newest Mongaloidicspasm| Online 471
Home Contact
 (Forgotten?): 
    Sikhism
    For best SPN experience, use Firefox Internet Browser!


                                                                   Your Banner Here!    




Click Here to Register/Sign Up Daily Hukamnama Member Blogs Downloads Website Navigation Help Fonts Tags

subtable relationships

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 500 USD, Received: 115 USD (23%)
Please Donate...
     
Related Topics...
Thread Thread Starter Forum Replies Last Post
one-to-many relationships scubadiver Information Technology 12 28-Jul-2006 08:08 AM
relationships Ronnie Information Technology 5 15-Nov-2005 14:11 PM
relationships Ronnie Information Technology 1 13-Nov-2005 17:33 PM
relationships Ronnie Information Technology 2 13-Nov-2005 17:33 PM
many to many relationships Ronnie Information Technology 1 12-Nov-2005 22:39 PM


Tags
subtable, relationships
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:27 AM
Mark Cline's Avatar Mark Cline
Guest
 
Posts: n/a
   
   
subtable relationships

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
I think I have a situation where a series of subtables 4 deep is necessary.
I am having trouble relating each of the tables so that data contained in a
subtable does not repeat itself when a particular entry in the table above it
repeats itself. I will describe what I want and any recommendations on
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/12244-subtable-relationships.html
better options or a solution are welcome.

The database is going to be used to keep track of quality control audits.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12244
Different QA techs input the audits they complete, the location they complete
them in, and what failures they noticed. The innermost table has product
information, failure code, and quantity failed. The next table up has audit
type, # inspected, and # passed. The next table up has line and shift. The
top table identifies the date and the QA tech. I would prefer to not create
a new user input column on any table because it would be a meaningless
quantity.

How can I fix the situation? Thanks in advance...


Got anything to share on This Topic? Why not share your immediate thoughts/reaction with us! Login Now! or Sign Up Today! to share your views... Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Jul-2006, 08:27 AM
Sprinks's Avatar Sprinks
Guest
 
Posts: n/a
   
   
RE: subtable relationships

Mark,

If a given audit pertains to a specific line & shift, I think you can
simplify your structure. I see 2 one-to-many relationships--between Audits
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12244
and AuditProducts, and AuditProducts & Failures.

Audits
-----------------
AuditID AutoNumber (PK)
AuditTypeID Integer (FK to AuditTypes)
AuditDate Date/Time
QATechID Integer (FK to QATechs)
LineID Integer (FK to Lines)
Shift Integer (1,2,3 or FK to Shifts)

AuditProducts (many side with Audits)
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12244
------------------
AuditProductID AutoNumber (PK)
AuditID Integer (FK to Audits)
ProductID Integer (FK to Products)
NumberInspected Integer

Failures (or AuditProductFailures) -- Many side of AuditProducts relationship
-----------------------
FailureID AutoNumber (PK)
AuditProductID Integer (FK to AuditProducts)
FailureType Integer (FK to FailureTypes)
QtyFailed Integer
Note Text or Memo

Qty passed can be calculated from the number inspected less the total of all
that failed.

This structure is similar to the Customers->Orders->OrderDetails
relationships modeled in the sample Northwind DB (Help, Sample Databases).
To model it on a form, you need a subform within a subform placed on a main
form based on Audits.

Hope that helps.
Sprinks



Does an audit consist of one or many different product id's? In other
words, is there a one-to-many relationship between Audits and Products?

"Mark Cline" wrote:

> I think I have a situation where a series of subtables 4 deep is necessary.
> I am having trouble relating each of the tables so that data contained in a
> subtable does not repeat itself when a particular entry in the table above it
> repeats itself. I will describe what I want and any recommendations on
> better options or a solution are welcome.
>
> The database is going to be used to keep track of quality control audits.
> Different QA techs input the audits they complete, the location they complete
> them in, and what failures they noticed. The innermost table has product
> information, failure code, and quantity failed. The next table up has audit
> type, # inspected, and # passed. The next table up has line and shift. The
> top table identifies the date and the QA tech. I would prefer to not create
> a new user input column on any table because it would be a meaningless
> quantity.
>
> How can I fix the situation? Thanks in advance...

Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:27 AM
Mark Cline's Avatar Mark Cline
Guest
 
Posts: n/a
   
   
RE: subtable relationships

Thank you very much, this is exactly what I needed to fix my problem.

"Sprinks" wrote:

Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12244
> Mark,
>
> If a given audit pertains to a specific line & shift, I think you can
> simplify your structure. I see 2 one-to-many relationships--between Audits
> and AuditProducts, and AuditProducts & Failures.
>
> Audits
> -----------------
> AuditID AutoNumber (PK)
> AuditTypeID Integer (FK to AuditTypes)
> AuditDate Date/Time
> QATechID Integer (FK to QATechs)
> LineID Integer (FK to Lines)
> Shift Integer (1,2,3 or FK to Shifts)
>
> AuditProducts (many side with Audits)
> ------------------
> AuditProductID AutoNumber (PK)
> AuditID Integer (FK to Audits)
> ProductID Integer (FK to Products)
> NumberInspected Integer
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12244
>
> Failures (or AuditProductFailures) -- Many side of AuditProducts relationship
> -----------------------
> FailureID AutoNumber (PK)
> AuditProductID Integer (FK to AuditProducts)
> FailureType Integer (FK to FailureTypes)
> QtyFailed Integer
> Note Text or Memo
>
> Qty passed can be calculated from the number inspected less the total of all
> that failed.
>
> This structure is similar to the Customers->Orders->OrderDetails
> relationships modeled in the sample Northwind DB (Help, Sample Databases).
> To model it on a form, you need a subform within a subform placed on a main
> form based on Audits.
>
> Hope that helps.
> Sprinks
>
>
>
> Does an audit consist of one or many different product id's? In other
> words, is there a one-to-many relationship between Audits and Products?
>
> "Mark Cline" wrote:
>
> > I think I have a situation where a series of subtables 4 deep is necessary.
> > I am having trouble relating each of the tables so that data contained in a
> > subtable does not repeat itself when a particular entry in the table above it
> > repeats itself. I will describe what I want and any recommendations on
> > better options or a solution are welcome.
> >
> > The database is going to be used to keep track of quality control audits.
> > Different QA techs input the audits they complete, the location they complete
> > them in, and what failures they noticed. The innermost table has product
> > information, failure code, and quantity failed. The next table up has audit
> > type, # inspected, and # passed. The next table up has line and shift. The
> > top table identifies the date and the QA tech. I would prefer to not create
> > a new user input column on any table because it would be a meaningless
> > quantity.
> >
> > How can I fix the situation? Thanks in advance...

Reply With Quote
  #4 (permalink)  
Old 28-Jul-2006, 08:27 AM
Sprinks's Avatar Sprinks
Guest
 
Posts: n/a
   
   
RE: subtable relationships

  Donate Today!  
My pleasure. One additional thought--if the audit refers to only a single
product, you could move the ProductID and NumberInspected into the Audits
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12244
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12244
table, with a single one-to-many relationship remaining between Audits and
Failures.

Sprinks

"Mark Cline" wrote:

> Thank you very much, this is exactly what I needed to fix my problem.
>
> "Sprinks" wrote:
>
> > Mark,
> >
> > If a given audit pertains to a specific line & shift, I think you can
> > simplify your structure. I see 2 one-to-many relationships--between Audits
> > and AuditProducts, and AuditProducts & Failures.
> >
> > Audits
> > -----------------
> > AuditID AutoNumber (PK)
> > AuditTypeID Integer (FK to AuditTypes)
> > AuditDate Date/Time
> > QATechID Integer (FK to QATechs)
> > LineID Integer (FK to Lines)
> > Shift Integer (1,2,3 or FK to Shifts)
> >
> > AuditProducts (many side with Audits)
> > ------------------
> > AuditProductID AutoNumber (PK)
> > AuditID Integer (FK to Audits)
> > ProductID Integer (FK to Products)
> > NumberInspected Integer
> >
> > Failures (or AuditProductFailures) -- Many side of AuditProducts relationship
> > -----------------------
> > FailureID AutoNumber (PK)
> > AuditProductID Integer (FK to AuditProducts)
> > FailureType Integer (FK to FailureTypes)
> > QtyFailed Integer
> > Note Text or Memo
> >
> > Qty passed can be calculated from the number inspected less the total of all
> > that failed.
> >
> > This structure is similar to the Customers->Orders->OrderDetails
> > relationships modeled in the sample Northwind DB (Help, Sample Databases).
> > To model it on a form, you need a subform within a subform placed on a main
> > form based on Audits.
> >
> > Hope that helps.
> > Sprinks
> >
> >
> >
> > Does an audit consist of one or many different product id's? In other
> > words, is there a one-to-many relationship between Audits and Products?
> >
> > "Mark Cline" wrote:
> >
> > > I think I have a situation where a series of subtables 4 deep is necessary.
> > > I am having trouble relating each of the tables so that data contained in a
> > > subtable does not repeat itself when a particular entry in the table above it
> > > repeats itself. I will describe what I want and any recommendations on
> > > better options or a solution are welcome.
> > >
> > > The database is going to be used to keep track of quality control audits.
> > > Different QA techs input the audits they complete, the location they complete
> > > them in, and what failures they noticed. The innermost table has product
> > > information, failure code, and quantity failed. The next table up has audit
> > > type, # inspected, and # passed. The next table up has line and shift. The
> > > top table identifies the date and the QA tech. I would prefer to not create
> > > a new user input column on any table because it would be a meaningless
> > > quantity.
> > >
> > > How can I fix the situation? Thanks in advance...

Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
Display Modes

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Active Discussions
Occultism - Rejection in...
Today 11:05 AM
56 Replies, 2,552 Views
Do you believe in...
Today 10:22 AM
195 Replies, 4,045 Views
Black Sikhs?
Today 06:33 AM
20 Replies, 5,761 Views
Man Driving Without...
Today 05:06 AM
5 Replies, 121 Views
Request for assistance...
Today 04:24 AM
8 Replies, 76 Views
Losing My Religion: Why...
Today 03:03 AM
13 Replies, 326 Views
Health Exercise And...
Today 02:10 AM
1 Replies, 80 Views
Sikh Spokesman (ਪੰਜਾਬੀ...
Today 02:10 AM
176 Replies, 4,506 Views
How Religions Change...
Today 02:07 AM
1 Replies, 100 Views
Keeping Amrit Vela
Today 01:57 AM
11 Replies, 893 Views
Rozana Reports (ਪੰਜਾਬੀ...
Today 01:52 AM
313 Replies, 7,578 Views
How does Sikhi help you...
Yesterday 22:54 PM
22 Replies, 895 Views
Panjabi
By Ishna
Yesterday 17:56 PM
12 Replies, 265 Views
Parkash Guru Amar Das ji...
Yesterday 17:07 PM
3 Replies, 63 Views
Serious challenges to...
Yesterday 16:49 PM
0 Replies, 121 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.3
All times are GMT +6.5. The time now is 11:33 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.48275 seconds with 32 queries
0