A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

About dummy values for a tables



 
 
Thread Tools Display Modes
  #1  
Old June 10th, 2009, 10:30 PM posted to microsoft.public.access
Squik27
external usenet poster
 
Posts: 25
Default About dummy values for a tables

How good of a design is to dummy values for a table.
i work for a ESL school and I have two different kinds of products. One are
material s such books and dictionaries which pretty much are the same and
weekly and monthly tuition costs. The tables looks like this:

tbl_Products:
Level
ProductDesc
UnitPrice
QtyInStock

tbl_SaleDetails:
SaleID
ProductID
Quantity
DiscountAmount

tbl_Sale:
SaleID
Date
StudentID
Descrip

I'm thinking of using a flag field in tbl_Products that will tell me if the
item is a tuition.
The other way is to add the following table:

tbl_TuitionPayment:
SaleID
CourseID
Amount
Discount

My idea is that a student makes a tuition payment towards a course. I can
have the tuition listed as a products, but i don't think it model what really
is; for example a tuition payment doesn't have a QtyInStock.
but When I want to get all the sales together in one report i'll have to
UNION tbl_SaleDetails and tbl_Tuition, they are compatible.

Thank you for any ideas
  #2  
Old June 11th, 2009, 12:00 AM posted to microsoft.public.access
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default About dummy values for a tables

Would not Tuition in the ProductDesc field do it?

"Squik27" wrote:

How good of a design is to dummy values for a table.
i work for a ESL school and I have two different kinds of products. One are
material s such books and dictionaries which pretty much are the same and
weekly and monthly tuition costs. The tables looks like this:

tbl_Products:
Level
ProductDesc
UnitPrice
QtyInStock

tbl_SaleDetails:
SaleID
ProductID
Quantity
DiscountAmount

tbl_Sale:
SaleID
Date
StudentID
Descrip

I'm thinking of using a flag field in tbl_Products that will tell me if the
item is a tuition.
The other way is to add the following table:

tbl_TuitionPayment:
SaleID
CourseID
Amount
Discount

My idea is that a student makes a tuition payment towards a course. I can
have the tuition listed as a products, but i don't think it model what really
is; for example a tuition payment doesn't have a QtyInStock.
but When I want to get all the sales together in one report i'll have to
UNION tbl_SaleDetails and tbl_Tuition, they are compatible.

Thank you for any ideas

  #3  
Old June 11th, 2009, 12:11 AM posted to microsoft.public.access
Squik27
external usenet poster
 
Posts: 25
Default About dummy values for a tables



"KARL DEWEY" wrote:

Would not Tuition in the ProductDesc field do it?

"Squik27" wrote:

How good of a design is to dummy values for a table.
i work for a ESL school and I have two different kinds of products. One are
material s such books and dictionaries which pretty much are the same and
weekly and monthly tuition costs. The tables looks like this:

tbl_Products:
Level
ProductDesc
UnitPrice
QtyInStock

tbl_SaleDetails:
SaleID
ProductID
Quantity
DiscountAmount

tbl_Sale:
SaleID
Date
StudentID
Descrip

I'm thinking of using a flag field in tbl_Products that will tell me if the
item is a tuition.
The other way is to add the following table:

tbl_TuitionPayment:
SaleID
CourseID
Amount
Discount

My idea is that a student makes a tuition payment towards a course. I can
have the tuition listed as a products, but i don't think it model what really
is; for example a tuition payment doesn't have a QtyInStock.
but When I want to get all the sales together in one report i'll have to
UNION tbl_SaleDetails and tbl_Tuition, they are compatible.

Thank you for any ideas


Actually I just did it that way. I don't expect many of this TUITION
entries, but I depend on them actually being there. If they are modify then
my code won't continue I'll have to throw an error if it gets changed. I'm
not fond of not doing it they way it would represent reality unless i get a
counter argument.
 




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:43 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.