Results 1 to 2 of 2

Thread: need help in table design

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2009
    Posts
    135

    need help in table design

    Hello There,
    i need a little help here guys,my problem is how my table looks like..

    I have a range of numbers to insert:

    Min - Max = Value
    1 - 5 = 20
    6 - 10 = 30
    11 - 15 = 40
    etc...

    now,i want it to dynamic,because i make it as a settings in my program to be configurable anytime...example..i will change the max 5 into 7 or maybe 8..by changing it..i will also need to adjust the whole ranges..

    my question is..how can make this flexible if a user changed the ranges..into my code?..
    and also if a user will like to add more range(e.g 16 - 20)..how can i do that?..any idea?..please help...thanks!..

    glen

  2. #2
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Re: need help in table design

    From what you are describing, o at least from what i understand, you can do:
    id - minvalue - maxvalue - finalvalue. That way you can only adjust the ranges that are specific in the id's you want.
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width