About dummy values for a tables

S

Squik27

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top