Updating Sort Order on a field?

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Updating Sort Order on a field?

    Hi

    i have a customer table. i am displaying them in sorted order. but now i
    have added 1 field call SortID.
    now when ever if i add a new entry ...i want to sort it and i want to assign
    the sorted it for that.

    ex:

    aaaa > 1
    bbb > 2
    ccc > 3

    if i add aaa1 ..then its sort has to become 2 and goes one....

    how to update this...using and update command....

    thx in adv.

    vkunirs Guest

  2. Similar Questions and Discussions

    1. PHP Sort order definitions
      I couldn't seem to find this in the docs or the web doing a quick search... When doing a sort($aRay, $flag) what is the definition for how the...
    2. strange sort order
      Hi, I have a file that appears to be somewhat sorted, but is not sorted according to the traditional unix sort. I'll give some examples, and if...
    3. Updating records in order (into an order)
      I'm storing questions for a user-defined quiz. I can store them in the order they are entered without any problem. But... The user needs to have...
    4. no sort order for clients?
      Hi everybody I'm running a filemaker database wich is used by serveral persone, simple sharing, no fmp-Sserver behind. At some point I make use...
    5. Sort order
      Hi, I've a table with some rows. With 'select * from tab order by sp1' I've got the following: sp1 --- a1 a2
  3. #2

    Default Re: Updating Sort Order on a field?

    What are you doing with this SortID field that you can't do with whatever field contains aaaa, aaa1, etc?
    Dan Bracuk Guest

  4. #3

    Default Re: Updating Sort Order on a field?

    Your method is likely doomed to failure, and you will probably end up spending
    an inordinate amount of resources attempting to "re-sort" your data. Like Dan
    is implying, if you can determine what the sort order is from information in
    the other columns of the table, why on earth do you need a SortID column?

    Phil

    paross1 Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139