14, February 2012

Help with database schema - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  Databases
Topic: Help with database schema
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author Topic: Help with database schema  (Read 1400 times)
Just another rainy day
*
Posts: 1
10 credits
Members referred : 0


« on: Jul 17, 2009, 11:46:22 am »

here is the problem

things that need to be tracked

Number string
segment of number strings location (this will be how i segment the number string)


other things that need to be tracked
who generated the number string meaning
which stock
which industry
which market
which sector

now finally each number string needs to be tracked if it win or loss and where it won or lost at
IE
did it have a loss in
A specific stock
a specific industry
a specific market
a specific sector

Now what i am thinking is making a table for each segment number
so the table would be named segment_1 or X
and the primary key will be the exact number string segment
because that way there will not be duplicate data

now from that what i think i can do is this
is take that specific segment
in a another huge table
that stores the score of the segment meaning win and loss no change
the stock the segment came from
the industry the segment came from
the market the segment came from


Stock DB Schema

Table Stock_location
Key{symbol} | Market | Indystry | Sector

Table Stock_Data
Symbol | Date | Open | High | Low | Close | Volume | ADJ Close | other data such as day win or day loss or whatever else i want

now i can do the following either way what do u think is best or neither

Table Segment_X (x will be the total number of segments of the number string)
Number String Segment {primary key}

Table Segment_Table
Number String Segment | Win | Loss | No Change | segment location | stock symbol | industry | sector | market

_____________________________________________________________________

Or solution 2 for number string and segmentation tracking

Table Segment_Table
Segment | Segment location | Win | Loss | no score change | stock symbol | industry | sector | market

i indicated where i felt keys needed to be because some of thej data needs to be tracked and that is the best way i could think of  it

so if you have any ideas or better ways please let me nkow
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5779
46271 credits
Members referred : 3



« Reply #1 on: Jul 17, 2009, 12:27:45 pm »

I am not sure what is the question here.

In general I prefer to have separate tables for every entity and then link them with joins

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Just another rainy day
*
Posts: 1
6 credits
Members referred : 0



« Reply #2 on: Dec 23, 2010, 08:39:29 am »

sorry i  cant  understand you query
I feel pretty...
***
Posts: 180
1120 credits
Members referred : 0


« Reply #3 on: Dec 30, 2010, 11:05:59 am »

What do you want in this database and what are you trying to create.
Hunky Junky Monky Man!
**
Posts: 67
438 credits
Members referred : 0


« Reply #4 on: Nov 17, 2011, 11:39:32 pm »

Yes, if you update that customers address in the database, if you run that report that location will no longer be in the report.
Hunky Junky Monky Man!
**
Posts: 67
438 credits
Members referred : 0


« Reply #5 on: Dec 09, 2011, 11:41:06 am »

Database layout, normalisation and large user profile site database schema help MySQL.
Google dot what?
*
Posts: 2
16 credits
Members referred : 0


« Reply #6 on: Dec 21, 2011, 07:11:05 am »

What you want to exactly Huh? Which kind of help you need in database schema ??
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=8938
Tags : sql database help database schema design Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  Databases
Topic: Help with database schema
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Feb 14, 2012, 08:55:06 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.