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

Table Structure help

Hi All,

I am working on a cars investment tracking database and need some help
with structure

You have investors, who pass the money to company the money in turn
purchase cars, sell, and return profit plus capital to investorsy,

Money wise I require tracking by Investory and Also by each car,

For each car, I have various fields in car_details table, which capture
this information e.g. what amount invested, by which investor, what are
the expense, sale price and than profit.

I am now working on tracking by Investor

e.g. Investory A has lended 50,000 $ to company, this money may be used
against 5 cars @ 10,000 each, after three months the cars are sold and
we have 5,000 Profit, and investor is returned 55000. This is the
simplest transaction,

However, the captial may be invested again, the profit may also be
invested, during this time the investory may pump in more money.

I have come up with structure ike this.

Investory Table _ = PrimaryKey, Investory Name
InvestoryDetailsTable = Investory_Foriegn Key, than I have IN, OUT,
INVESTED, PROFIT

This is the detail table and as a first transcation I may have 50000
In, rest all fields set to Zero
Second transacation may be Invested 50000 (in 5 cars), in this case
Invested field will be used
Third tanscation may be Profit ented as 5000 rest of the fields Zero
and so on.

If I want to know the total Captial Due to invesntory I can sum take
Sum of all colum and Do IN - OUT + PROFIT gives me NET DUE

If I want to FREE CAPITAL of Investory at any time of any investnory I
can do In - Out - Invested + Profit.

This is my current stuture, I would like to know

a) Right now there is duplication of entry, that I am entering Lum Sum
Money in the InvestorDetailsTable e.g. 50000 received and I have to do
manual entry in the Cars details table e.g. 10000 each was assigned to
5 different cars, Is there a way I can avoid this
b) Is the above table struture the best way of doing this?

Thanks you for your time. Regards, Irf.

Nov 13 '05 #1
1 1300
ir**@emirates.net.ae wrote:
Hi All,

I am working on a cars investment tracking database and need some help
with structure

You have investors, who pass the money to company the money in turn
purchase cars, sell, and return profit plus capital to investorsy,

Money wise I require tracking by Investory and Also by each car,

For each car, I have various fields in car_details table, which capture
this information e.g. what amount invested, by which investor, what are
the expense, sale price and than profit.

I am now working on tracking by Investor

e.g. Investory A has lended 50,000 $ to company, this money may be used
against 5 cars @ 10,000 each, after three months the cars are sold and
we have 5,000 Profit, and investor is returned 55000. This is the
simplest transaction,

However, the captial may be invested again, the profit may also be
invested, during this time the investory may pump in more money.

I have come up with structure ike this.

Investory Table _ = PrimaryKey, Investory Name
InvestoryDetailsTable = Investory_Foriegn Key, than I have IN, OUT,
INVESTED, PROFIT

This is the detail table and as a first transcation I may have 50000
In, rest all fields set to Zero
Second transacation may be Invested 50000 (in 5 cars), in this case
Invested field will be used
Third tanscation may be Profit ented as 5000 rest of the fields Zero
and so on.

If I want to know the total Captial Due to invesntory I can sum take
Sum of all colum and Do IN - OUT + PROFIT gives me NET DUE

If I want to FREE CAPITAL of Investory at any time of any investnory I
can do In - Out - Invested + Profit.

This is my current stuture, I would like to know

a) Right now there is duplication of entry, that I am entering Lum Sum
Money in the InvestorDetailsTable e.g. 50000 received and I have to do
manual entry in the Cars details table e.g. 10000 each was assigned to
5 different cars, Is there a way I can avoid this
b) Is the above table struture the best way of doing this?

Thanks you for your time. Regards, Irf.

I would suggest you really think this through. You don't seem to have
much in the way of contingencies. Ex: Let's say InvestorA plops down
50K. Is that 50K for specific cars or for cars to be purchased in the
future or is it a partial investment in a set or cars. Let's say 50K
exists and 5 cars are purchased for 8K apiece. That leaves 10K to be
invested. A Lexus comes available for 20K. Another investor has 10K
available along with investorA. So the investment is 10k apiece or 50%
each of the car.

Do you want to assign investors to a car with the percentage each of the
investors? To you want to take a lot/set of cars and assign them all to
a specific investor?

What happens when the cars are sold? Does the investor take the money
or does the investor reinvest the profit back into his account for more
car purchases? How do you keep track of investments that are really
reinvestments? How does that affect a 50K investment vs a 5K
reinvestment as far as taxes go?

What happens if 50K is invested but the cars that will be purchased with
50K are in the negotiating process and aren't available for assignment yet?

This looks like a complicated system that you will be setting up with
lots of paramenters and variables. Think best of the ways you want to
enter the data for usability.
Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Laphan | last post by:
Hi All Wonder if you could help, I have a bog standard table called STOCKPRICES that has served me well for a while, but now I need to change the structure of it and because a number of users...
21
by: Dan | last post by:
Hi, just ran into my first instance of a backend Access97 database not compacting. I'm getting the "MSACCESS.EXE has generated errors.." message on compact. I've narrowed it down to the largest...
5
by: brett valjalo | last post by:
Hey Gang! SORRY ABOUT THE LENGTH! Nice to see some of the same faces around this place from way back when ... Whatta buncha CDMA addicts some o' y'all are ;) Don't get me wrong, I...
13
by: Shannan Casteel via AccessMonster.com | last post by:
I set up two tables (one with the regular claim info and another with ClaimNumber, PartNumber, and QuantityReplaced). The ClaimNumber is an autonumber and the primary key in both tables. I made a...
0
by: m3rajk | last post by:
I've recently become the defacto DBA of two MSSQL databases at work because I am the only one with SQL experience. I have been asked to do some tasks with the databases but this requires and...
2
by: Dave Ekhaus | last post by:
hi i'm new to javascript. i'm hoping to get some help and find out if what i want to do is possible and - assuming it is, get some tips on how to accomplish the task. ok - assume i have a...
2
by: David - Australia | last post by:
G'day from Australia, I'm hoping some bright spark may be able to help me with this one. I'm sure that it can be done, I've just hit a wall with it. So I'm opening it up. I'm storing student...
0
by: remya1000 | last post by:
I have a field called Departments in my database. and I have 3 monitors. So when Page_Load, I need to check number of departments I have in database. And depends upon that number of departments I...
12
by: Michael.Z | last post by:
Anyone who can help: Given a Table.h file I am writing a Table.c file. I keep getting the compile error: previous declaration of Table was here / conflicting types for I think the...
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:
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
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...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
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 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.