Solved

20.000 tables or 20.000 fields?

Posted on 2008-09-30
7
131 Views
Last Modified: 2012-05-05
Hello,

I have data in the following format which needs to be place in an access database.
date,open,high,low,close,signal1,equity1,drawdown1,signal2,equity2,drawdown2,etc

I have about 20.000 or more signal values and multiple dates. What is better to do if I need to recall data later from the database:
1. create 1 table per signal? Like date,open,high,low,close,signal1,equity1,drawdown1

2. or, 1 table which will hold all data?

Regards,
Dennis

regards,
Dennis
0
Comment
Question by:Schuttend
  • 3
  • 3
7 Comments
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
Comment Utility
your description is not clear enough to me to comment... could you maybe describe a bit more, with data samples?
0
 

Author Comment

by:Schuttend
Comment Utility
Please find example file attached. Only equity field and drawdown fields are missing....

Regards,
Dennis
Example.txt
0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
Comment Utility
that's the data sample... now could you maybe describe a bit more, what that data is about?
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

Author Comment

by:Schuttend
Comment Utility
data is financial data. The close price is the traded instrument (sp500) . The signals are tradingsignals.
Signal > 0 means buy next day. Signal < 0 means sell next day. Each field with a signal is a different trading system. Following the signal will generate equity. I have 20.000 different tradingsignals divided over 200 csv files. I need to collect them in 1 database to performing further calculation on it and also display graphs of generated equity etc
0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
Comment Utility
I think you should go the following way:

have the table with the values as you have them per file, and add 1 more column to the table, indicating the file the data comes from (it might be the filename itself, or a foreign key value pointing to a table that holds the file names itself), and /or some more relevant data "per file" ...

still the data makes close to no sense to me, basically because I cannot really categorize it, as I was never confronted with trading data...
0
 
LVL 10

Accepted Solution

by:
3_S earned 250 total points
Comment Utility
If I look at the file every line could represent on record in a table.  You could add on field in the record to point to the file it was from.
I would prefer that than have every field in a seperate table.  I you need corresponding value from on line you would have to do tremendous effort with multiple joins to recreate on line of the file.
0
 

Author Closing Comment

by:Schuttend
Comment Utility
Thank you...
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now