473,378 Members | 1,415 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,378 software developers and data experts.

Grant Expense Database Design Help

418 256MB
Please forgive me for this is a long request. I am designing a DB to capture expenses related to Federal Grants and to generate appropriate reports.

Each grant starts with a Notice of Grant Award (NOGA) which has 7 parts.
  1. Grant Number
  2. Grant Title
  3. Amendment Number
  4. Revision Number
  5. Fund Information
    1. Apportion Year (AY), could be a single year or multiple year.
    2. Grant Amount associated with each Apportion Year.
      Grant amount has 3 parts:
      1. Total amount
      2. Federal amount (FA)
      3. Local Amount (LA)
    Percentage of FA & LA varies, 80%/20%, 95%/5%, 90%/10% or any other combination
  6. Revenue Budget
    1. Broken down by a string of accounts that is comprised of Account No., Fund No., Class No., Dept ID, Project No.
    2. Current Budget Amount
    3. Change ( + / - ) Budget Amount
    4. Amended Budget Amount
  7. Expense Budget
    1. Same as 6 a. but also includes a field for Project Manager
NOTE: Budget amount does not show the breakdown of percentage for Federal and Local money. In other words it shows 100% of the budget.

Types of expenses
  1. Payroll expenses (26 pay period)
  2. Cost Allocation
  3. Marketing Expenses
  4. Preventive Maintenance
  5. Inventory
  6. Accounts Payables (with PO)
  7. Accounts Payables (without PO)
  8. Adjustments
Expense items vary and will need a separate table to accommodate future type of expenses.

Other Information
A grant may have more than one project
A project may be funded by more than one grant
A project manager may be managing more than one grant and / or more than one project

What is needed?
  1. Report showing expenses for each grant
  2. Report showing expenses for each project
  3. Report to request fund from authority for expenses incurred. This is critical. Somewhere I must store data to include the following information:
    1. Payroll expenses
    2. Marketing expenses
    3. Accounts Payables …etc.
And then a macro will generate a form to request funding for these expenses that will include, Grant No, Fund No., Class, Dept ID, Project, Account etc and the amount expended for each line.

Here is an example
Expand|Select|Wrap|Line Numbers
  1. Grant No.    Fund No     Program No     Payroll    Marketing     Total
  2.        Account No   Dept No   Project No        A/P         Inv
  3.     1   6540   871   999   099   65701    800               200   1000
  4.     1   6540   871   999   099   63350           50    50          100
  5.     2   4705   863   998   033   63740   1500   500               2000
  6.     3   4210   862   968   025   65701    300          50   150    500
Let’s assume for all these Grants the Fed to Local ratio is 80 / 20

A form requesting fund for 80% will need to be generated from these expenses. Let's call it a DRAW Report
Expand|Select|Wrap|Line Numbers
  1. Grant No.   Total  Previous     New
  2.                     Balance   Balance
  3.     1        880     5,000     4,120
  4.     2      1,600    15,000    13,400
  5.     3        400     3,000     2,600
  6. Total      2,880    23,000    20,120
A report that will show all expenses for each project for each grant in 80 / 20 ratio. For example, for the first expense the detailed expense report will show Payroll was $1,000, (Fed 800 / Local 200), Inventory was $250 (Fed 200, / Local 50). Let’s call this Detailed Expense Report.


What I have done so far.
  1. Created separate tables to record, Accounts, Funds, Program, Department, Projects, Project Managers
  2. Created a table to record each NOGA that includes Grant Number, Title etc.
  3. Created 3 sub forms to record, 1) Fund Information (Apportion year, Fed amount, local amount and total amount), 2) Revenue budget, and 3) Expense Budget
  4. Created a form to record each NOGA that contains these 3 sub forms

What I Need Help with
  1. Establishing the relationships to make these tables work
  2. How do I make the Amendment No & Revision No as such that the latest version of the grant becomes available for all calculations and the previous versions stays at the back without being overwritten?
  3. How do I make the percentages an option when entering the fund information (item 5Bi, above)?
  4. How do I record various types of expenses? Do I not need a separate table for this?


Any help is much appreciated. Thanks.
Apr 14 '09 #1
7 3144
NeoPa
32,556 Expert Mod 16PB
When I get home I will look at the database and see if I can get to grips with the problem as a start.
Apr 15 '09 #2
MNNovice
418 256MB
NeoPa:

Many thanks.
Apr 15 '09 #3
NeoPa
32,556 Expert Mod 16PB
I don't know why I have two different versions of the database.

I need to know which one to proceed with. Please let me know ASAP.
Apr 15 '09 #4
NeoPa
32,556 Expert Mod 16PB
I have attached a picture of the windows used to control the relationships between tables. The second is shown after clicking Join Type... on the first one.
  1. Enforce referential Integrity - Ensures the main table is not able to take values which don't have a matching record in the lookup table.
  2. Cascade Update Related Fields - If you change the key of one of the lookup table records, all records in the main table that refer to that lookup record, are changed automatically to reflect the new value.
  3. Cascade Delete Related Fields - If you delete one of the lookup table records, all records in the main table that refer to that lookup record, are also deleted.
With Referential integrity set, a Type 2 link (as you have) makes sense only if you envisage tblNOGA records with unset values for the lookup field. They would be Nulls. If this is expected then this setup is good. Otherwise (There will always be a value as well as a lookup record for every tblNOGA record), a Type 1 is probably a better option.
Attached Images
File Type: jpg NOGALink.jpg (17.0 KB, 286 views)
Apr 15 '09 #5
MNNovice
418 256MB
NeoPa:

Thanks. M
Apr 15 '09 #6
NeoPa
32,556 Expert Mod 16PB
As a general rule, I would always recommend using Type 2 rather than Type 3 Joins.

It's just clearer to my way of thinking. Especially never mix them, where some are Type 2s while others are Type 3s. Checking details is so much harder as things are not done consistently.

From what I've seen so far though, this is reasonably well done, with consideration of the issues evident. A good start.
Apr 15 '09 #7
MNNovice
418 256MB
NeoPa:

Thanks for the tips I will try to follow. Thanks.
Apr 16 '09 #8

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

Similar topics

4
by: Amardeep Verma | last post by:
Hi, I have a quick question. Which role/privileges are required before a user can give the statement "GRANT ALL PRIVILEGES"? Thanking you in Advance Have a nice day
1
by: kong | last post by:
I created a package using pl/sql. In this package i have a dblink to another Database, call it DB2. Meanwhile, Server2 has a DBlink to another Database, call it DB3. Within my package, i have a...
0
by: Charles Cantrell | last post by:
I have recently set up mySQL on a Mandrake release of Linux (Version 7 of Mandrake, I believe), using the binary 4.0.13 standard release. The set up and start up all were normal, as far as I...
0
by: Charles Cantrell | last post by:
I have recently set up mySQL on a Mandrake release of Linux (Version 7 of Mandrake, I believe), using the binary 4.0.13 standard release. The set up and start up all were normal, as far as I...
4
by: tlyczko | last post by:
Hello, I have read about currency calculations, etc. in this newsgroup, and I understand that currency math will be sufficiently accurate for what I need to do for a mileage/expense report. ...
6
by: john_woo | last post by:
Hi, db2 GRANT all on a_table_name to user me is for a table, I'm wondering possible to grant all on all_tables to user me, without listing all tables' names? -- Thanks John
5
Deathwing
by: Deathwing | last post by:
Hi everyone one I'm playing around with trying to make an expense calculator. I would like it so that the user can keep enter expenses until they have no more expenses. Then I would like for the...
9
Deathwing
by: Deathwing | last post by:
Hey everyone, I have written a code that figures out a users total montly expenses. I have it working except for the fact that it does not add up their cumulative entries. For example, the code ask...
0
by: unixNAB | last post by:
MySQL 5.0.x Hello, I'm trying to work out but the MySQL reference guide to the grant syntax is a little off, it says... so i wanted to do something like grant all on %_log.* to .......;...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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
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: 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 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.