Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. sql function fot removing negative sign

sql function fot removing negative sign

Scheduled Pinned Locked Moved Database
databasehelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Thanusree Duth
    wrote on last edited by
    #1

    0:-13:-16 Please help me to remove the negative sign.I have to get output as 0:13:16

    C M 2 Replies Last reply
    0
    • T Thanusree Duth

      0:-13:-16 Please help me to remove the negative sign.I have to get output as 0:13:16

      C Offline
      C Offline
      CitrusTech
      wrote on last edited by
      #2

      Are you asking for something as simple as string functions such as SQL Server's Replace()? Depending on which database you're using, I'd google "your_database string functions"...

      Data Quality Tools and Decision Tree software

      1 Reply Last reply
      0
      • T Thanusree Duth

        0:-13:-16 Please help me to remove the negative sign.I have to get output as 0:13:16

        M Offline
        M Offline
        Mycroft Holmes
        wrote on last edited by
        #3

        So are you still storing your date data as strings? Or have you done the sensible thing and changed it to a datetime format. Sorry I already know the answer otherwise you would not be asking this question. CHANGE YOUR DATE DATA TO DATATIME FORMAT!

        Never underestimate the power of human stupidity RAH

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups