I'm building a db to store product monthly profit and loss data. Is it
better to have:
(A) each row represents the product and all of its 30 p&l line items,
or
(B) each row represent the p&l line item
So,
tbl_A:
ProductID, Year, Month, Rev1, Rev2, Cost1, Cost2...
tbl_B:
ProductID, Year, Month, PLID, PLamount
Tbl_A rows would contain null values in some fields. Tbl_B would
contain redundant data in fields (ProductID, Year, Month).
So, the question I guess, is what's a better design? Fewer null values
in a row, or less redundancy? 1 1127
John,
How about ---
TblProduct
ProductID
ProductName
TblPLMonth
PLMonthID
PLYear
PLMonth
TblPLMonthDetail
PLMonthDetailID
PLMonthID
ProductID
PLAmount
Note - PLAmount would be entered as a negative number for losses and a positive
number for profits.
Your data entry form would be a form subform where the main form would be based
on TblPLMonth and the subform would be based on TblPLMonthDetail. The
Linkmaster/Linkchild properties would be PLMonthID. The main form would contain
two comboboxes for picking the Year and Month. ProductID in the subform would be
entered via a combobox based on TblProduct.
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications re******@pcdatasheet.com www.pcdatasheet.com
"John" <so*********@hotmail.com> wrote in message
news:90**************************@posting.google.c om... I'm building a db to store product monthly profit and loss data. Is it better to have: (A) each row represents the product and all of its 30 p&l line items, or (B) each row represent the p&l line item
So, tbl_A: ProductID, Year, Month, Rev1, Rev2, Cost1, Cost2...
tbl_B: ProductID, Year, Month, PLID, PLamount Tbl_A rows would contain null values in some fields. Tbl_B would contain redundant data in fields (ProductID, Year, Month).
So, the question I guess, is what's a better design? Fewer null values in a row, or less redundancy? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Michael Lauzon |
last post by:
This is not for a class, I have a group on SourceForge, this is what
one of the Developers is asking; the more advanced you can make it
right off all the better!:
Can someone please create...
|
by: Neal |
last post by:
Patrick Griffiths weighs in on the CSS vs table layout debate in his blog
entry "Tables my ass" - http://www.htmldog.com/ptg/archives/000049.php . A
quite good article.
|
by: 2trax |
last post by:
Hi all,
I am trying to mimic the unix security model (users and groups) in a web
app.
I have thought of two ways of implementing this, but am unsure which would
be better. The first design...
|
by: kimi |
last post by:
I have just started working on a project that is partially complete. It
is an application that is using access to store test results. The test
results are being stored in two Access 2000 databases....
|
by: MLH |
last post by:
If I open an A97 table, resort its key-field to descending order and
attempt to close the table, A97 asks me if I wish to save the table
DESIGN? Now really, I don't think the table design is being...
|
by: Nathan Sokalski |
last post by:
When editing an ASP Table, Visual Studio does not allow me to edit it in
Design View. This makes it harder to add elements, because I must add every
element either by using Design View to create...
|
by: david |
last post by:
I have asked this question before. But it does not work for me. Given radion
buttons in the web form design page. What I did is described as follows.
A panel control is dragged into the design...
|
by: phil-news-nospam |
last post by:
Is there really any advantage to using DIV elements with float style
properies, vs. the old method of TABLE and TR and TD?
I'm finding that by using DIV, it still involves the same number of...
|
by: yanjie.ma |
last post by:
Hi,
I've got a two part question on table and form design (sorry for the
length but it takes a bit to explain). Our sales department uses a
look-up table to help the them select the best...
|
by: csolomon |
last post by:
Hello:
I was wondering if I could get some input on how to address a design
issue, involving my composite table.
I have one portion of my project complete. The following forms and
reports I...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |