why wont my to_number work to order my data am I doingit wrong?

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

  1. #1

    Default why wont my to_number work to order my data am I doingit wrong?

    This is how I have been trying to do it.
    select
    tsk.taskname as task,
    To_Number(
    DECODE (
    is_number (
    substr(tsk.taskname,Instr(tsk.taskname, '.', 1, 1)+1,Instr(tsk.taskname,
    ' ', 1, 1) - 3)
    )
    ,1, substr(tsk.taskname,Instr(tsk.taskname, '.', 1,
    1)+1,Instr(tsk.taskname, ' ', 1, 1) - 3)
    , 0)
    ) as subtaskorder,

    then later ORDER BY subtaskorder
    the data in tsk.taskname looks something like this

    G1.1 "string name of G1.1 and info" , G1.2 "string name", and so on for quite
    a while G1.19 if i recall then switches to G1.2 "string name"

    in the end i just want them to be in order from 1.1 to 2.19 and not 1.1, 1.10
    so if there is a better way then what im doing I would gladly take that over
    fixing this one.

    thanks for the help.

    cjs35816 Guest

  2. Similar Questions and Discussions

    1. #39542 [NEW]: Search order for include/require wrong in get_include_path
      From: snowy at corporatezoo dot com Operating system: Windows XP PHP version: 5.2.0 PHP Bug Type: Scripting Engine problem...
    2. Wont Work
      Every time I go to Youtube or photobucket yo watch something, it says you need at least flash player 8 or whatever. And I click the link that takes...
    3. cfarguments wrong order
      this is what i am doing... when i email myself i get this: struct AAA1 3 AAB2 1 AAC3 2 Whats up with that???
    4. Table of contents - wrong order
      Vicky, I'm having _exactly_ the same problem you are describing, and it's quite icomprehensible to me. Not that that is any comfort to you! But I...
    5. Making a PDF from multiple files -- Acrobat gets them in wrong order
      Whenever I make a PDF from multiple files using the command in Acrobat 6.0.1, Acrobat puts them the wrong order. When I select the group of files...
  3. #2

    Default Re: why wont my to_number work to order my data am Idoing it wrong?

    I figured it out ho to order it.
    cjs35816 Guest

  4. #3

    Default Re: why wont my to_number work to order my data am Idoing it wrong?

    how*

    cjs35816 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