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. Explanation for the Query PLZZZZZ

Explanation for the Query PLZZZZZ

Scheduled Pinned Locked Moved Database
javadatabasetutorial
4 Posts 2 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.
  • H Offline
    H Offline
    harsha_mec345
    wrote on last edited by
    #1

    Hi all i hav a query for which i got the result but i am not able to understand the query.... here's the query... select sal,to_char((to_date(sal,'j')),'jsp') from emp; Result: 3250 Three Thousand Two Hundred and Fifty. I just need the explanation of to_date and to_char command formats..... if possible can any one giv one example each on those two commands.. Thanks in Advance... Byee

    M 1 Reply Last reply
    0
    • H harsha_mec345

      Hi all i hav a query for which i got the result but i am not able to understand the query.... here's the query... select sal,to_char((to_date(sal,'j')),'jsp') from emp; Result: 3250 Three Thousand Two Hundred and Fifty. I just need the explanation of to_date and to_char command formats..... if possible can any one giv one example each on those two commands.. Thanks in Advance... Byee

      M Offline
      M Offline
      Muhammad Shahid Farooq
      wrote on last edited by
      #2

      TO_CHAR and TO_DATE are built-in functions in Oracle. TO_CHAR = Convert number to string TO_DATE = Convert string to date

      H 1 Reply Last reply
      0
      • M Muhammad Shahid Farooq

        TO_CHAR and TO_DATE are built-in functions in Oracle. TO_CHAR = Convert number to string TO_DATE = Convert string to date

        H Offline
        H Offline
        harsha_mec345
        wrote on last edited by
        #3

        i got ur point but how the given value is getting converted into words....

        M 1 Reply Last reply
        0
        • H harsha_mec345

          i got ur point but how the given value is getting converted into words....

          M Offline
          M Offline
          Muhammad Shahid Farooq
          wrote on last edited by
          #4

          Visit the following links, this will help you: http://www.techonthenet.com/oracle/functions/to_char.php[^] http://www.techonthenet.com/oracle/functions/to_date.php[^] http://download-uk.oracle.com/docs/cd/B10501_01/server.920/a96540/functions134a.htm[^] http://download-uk.oracle.com/docs/cd/B10501_01/server.920/a96540/functions137a.htm[^]

          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