473,386 Members | 1,743 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to Restructure Database for New Requirements

124 100+
There is a table called tblFundBalance, with a Currency field called ExpendedFunds, where users have been entering spent funds through a user form. Now I am being tasked with creating different categories of funds for different contracts that the money comes from. This will also impact a number of front end objects such as entry forms and reports. I will still need the total expended funds from all contracts to go into the ExpendedFunds field in tblFundBalance, but will also need a way to enter individual funds for the different contracts,summing them up and putting the total in
[tblFundBalance].[ExpendedFunds]. One idea is to create a Contract table with a one to many relationship to tblFundBalance. This table would have four fields, ID (autonumber), RTID (FK to tblFundBalance), ContractName (Text) and Spent (currency). Another possible option is to create new fields in tblFundbalance, but that would not be very normalized. For now there will only be two contracts but there will be more in the future. Any advice on this is welcome.
Oct 10 '13 #1
4 1121
NeoPa
32,556 Expert Mod 16PB
It seems to me the only way to store this in a normalised way is to have a table that stores funds expended for each category and/or contract. Total expended funds could only ever be worked out as a sum of the relevant records.
Storing that calculable data again anywhere else is not a normalised design.
Oct 10 '13 #2
BikeToWork
124 100+
I don't see any way to do this in a normalized fashion. The data entry form for entering Expended Amounts in Fund Balances is a continuous subform, so there is no way to put another subform inside it. Also, the Expended Amount needs to be the sum of the categories of fund sources, so that is using a field for a calculated value.
Oct 11 '13 #3
NeoPa
32,556 Expert Mod 16PB
The data entry form for entering Expended Amounts in Fund Balances is a continuous subform, so there is no way to put another subform inside it.
Even if that is true, it only means it won't work with that design. In those circumstances it seems clear that isn't an appropriate design. There are many ways to crack an egg. Subforms isn't the only option available to you.
Also, the Expended Amount needs to be the sum of the categories of fund sources, so that is using a field for a calculated value.
I keep reading this but I haven't managed to work out what your point is :-(
Oct 13 '13 #4
zmbd
5,501 Expert Mod 4TB
Without your business model, it's hard to help you out.

However, as a stab in the dark:

tbl_customer - obvious
tbl_accounts - maybe not as obvious; however, should be that hard to figure out.
tbl_investments - names of funds, stocks, commodities, etc... available
tbl_investmentclass - help to classify the investments as stocks, bonds, commodities, mutual funds, etc...
tbl_ledger - this is where the tbl_accounts, tbl_investments come together along with the date and the amounts.

Now this way, no matter how many different funds or types of investments you need to add, these all go into tbl_investments and classified via tbl_investmentclass. The investments should just show up in your combobox/listbox if you use the tbl_investments as the rowsource for the control.

Queries to pull information by account, crosstabs to help you group when needed, etc...
Oct 13 '13 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

34
by: yensao | last post by:
Hi, I have a hard time to understand difference and similarities between Relational database model and the Object-Oriented model. Can somebody help me with this? Thank you in advance. ...
19
by: Steve Jorgensen | last post by:
I've run across this issue several times of late, and I've never come up with a satisfactory answer to the best way to handle this schema issue. You have a large section of schema in which a...
5
by: Rajat Tandon | last post by:
Hello Everybody, Please guide me so that I can fulfill this challenging assisnment ... I have been asked to "Restructure a Windows application" from scratch in 2 months. The existing...
0
by: vj_dba | last post by:
Hi group, What are the requirements need to be taken from the customer for creation of the DB2 database in Unix based operating system. Need of more specific technical details with respect to...
5
by: Slant | last post by:
Here's a question that most will have different answers to. I'm just dying to find a solution that seems halfway automated!! There really are two seperate issues which might be answered by the...
1
by: Fred Chateau | last post by:
I have several Web sites that I am operating as either public anonymous sites or private Windows authenticated sites. Is aspnetdb.mdf being used for anything by the .NET 2.0 Framework? Is it...
1
by: lexman | last post by:
Hello, How do you deploy a vb.net application with a SQL express database? My vb.net programming book offers a single paragraph that amounts to "Select publish, choose options in wizard, job...
10
by: Paul H | last post by:
I am trying to get the spec for a database. The trouble is the client frequently blurts out industry jargon, speaks insanely quickly and is easily sidetracked. They are currently using around 30...
11
by: JB | last post by:
I'm writing a data driven app, its all just about finished but i havent decided how to store the data. I'm looking at some form of database. Requirements: Easy to Distribute, hopefully just some...
4
ADezii
by: ADezii | last post by:
On several occasions, we've come across situations in which our Members have inherited secured, legacy Databases and were told to either eliminate the security mechanism on these Databases or...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
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 using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.