How can I get the year of a datetime field

I have a fieild datetime, I need to display only the year in yyyy format

I tried
TO_DATE (start_time, yyyy), but it does not work...
Help, please...
SQL> -- generating sample data:
SQL> with t as (
  2  select systimestamp dtcol from dual
  3  )
  4  --
  5  -- actual query:
  6  --
  7  select dtcol
  8  ,      extract (year from dtcol)
  9  ,      to_char(dtcol, 'MON')
 10  from   t;

DTCOL                                                                       EXTRACT(YEARFROMDTCOL) TO_CHAR(DTCO
--------------------------------------------------------------------------- ---------------------- ------------
30-06-10 01:42:28,328000 +02:00                                                               2010 JUN

1 row selected.

http://download.Oracle.com/docs/CD/E11882_01/server.112/e10592/functions057.htm#SQLRF00639

And if you want to visit the site more underestimated never, then please by all means favorite:
http://Tahiti.Oracle.com

;)

Tags: Database

Similar Questions

  • How can I get the lisences to the Avast I never received?

    Original title : Registration

    How can I get the lisences to the Avast that I've ever received so I can install it cause my avast stopped working and I paid for 2 years?

    This forum is about the discussion about Microsoft Security Essentials. To the question about Avast, it is best to contact their support:

    http://support.avast.com/

  • How can I get the Basic for Windows Media Player codec pack?

    original title: green screen recently started in windows media player for Vista 64-bit.

    It works very well for some videos (like those recorded uncompressed, or some codecs) but a single codec that I save it as coming out of Sony Vegas (Windows Media video V11) goes green screen with playback of the sound. How can I get the basic for 64-bit Windows Media Player codec pack? It worked perfectly for several years now on this machine. Suddenly, it does not work. Last time that I used it very well if a few months ago.

    Hi, MisterMark67,

    What changes have been made recently to the computer?

    Have you tried a system restore to a time before this problem?

    Here are answers to some common questions about codecs.

    http://Windows.Microsoft.com/en-us/Windows-Vista/codecs-frequently-asked-questions

    Windows Vista Codecs Pack base 10.04 (32-bit & 64-bit codecs)

    http://www.x64bitdownload.com/downloads/t-64-bit-Windows-Vista-codecs-pack-basic-download-wmzypreu.html

  • How can I get the update for bios on my Pavillion m9500y UEFI

    System model NC683AA-ABA m9500y

    I installed Win 7 and need W8 but W8 Advisor said that I need the Bios which supports UEFI followed by the v2.3.1 Errata B and has the authority of Certification Microsoft Windows in the UEFI signatures database.

    So, how can I get the new BIOS?

    Dan

    Thanks for your reply.

    You're right, MS Win 8 update Advisor said that I had to have this update to install W8.

    However, secure boot will not work without it. So, since you say that HP does not BIOS update more than a year, it means that this PC does not have a secure boot. Built in obsolescence.  I hope just as malware ladies keep looking for rootkit stuff and do not rely on MS to keep safe.

    Dan

  • How can I get the game controller that you want to correlate to the keyboard commands?

    How can I get the game controller that you want to correlate to the keyboard commands?

    You may need to use the profiling software that comes with any game controller you are using.

    Some software controller has a library of game titles with default button/key configurations that

    You can change in the software according to your desires.

    -The software will need to navigate you to the games executable ( .exe ) from in the profiling software, which allows for the profile that you create in order to be recognized when you load the game in question.

    You can create orders, or simply assign a key combination, of a particular button on the controller

    and save the profile.

    -If the controller does not have a profiling software available for download, you may be stuck

    with some default orders can work with this controller and as a monopoly$ insinuated oft

    the controller XBOX games PC as a default configuration, a few years ago, it could mean

    your controller can be very useful if it is not programmed to emulate the XBOX controller.

    -If your controller is programmed to emulate the XBOX controller (like many recent controllers)

    It should be just a matter of changing the configuration in game controller options.

  • lost the cd to acrobat reader 9.5.5, how can I get the serial number before I recreate the image on the pc, what is?

    A few years, our company purchased Acrobat Reader 9.5.5 Pro for one of our employees. This employee is no longer with us, so we want to clean up the pc and re-purpose it. Unfortunately, we have more drive, in that the program has come. So the question is, how can we get the serial number for the program so that we can reinstall it once the pc is under image?

    Acrobat Reader is free. Acrobat Pro or Acrobat Standard costs money. The problem with serial number is delicate. If it is a payment business with a license so you can connect to your account a retrieve serial number. If it has been registered to the user and he registered the software on a corporate email account, you can probably log on the account and retrieve serial number (I don't know if it's legal, then you can check with your corporate lawyer). If is a an installation an installation of volume then check with the company you bought your contract in volume of might be the best route.

    If you have any of these options at your disposal, you can contact the customer service with proof of purchase in hand. No one will take the word of someone call on a phone, even if they do not tell the truth.

    Please be aware that Acrobat 9.5.5 will not work with several modern operating systems it's quite long in the tooth. You may be able to get some, but not all of the features to work.

  • When I try to log in to Photoshop it keeps asking me for a 'unlock code' so I can't get into my pictures. How can I get the unlock code

    When I try to log in to Photoshop, it keeps asking me for a 'unlock code' so I'm unable to access my photos how can I get the unlock code

    Thank you for your response to my query. I have the Album Starter Edition 3.2. It's a box of product registration keeps coming back when I try to log in. This starter edition has been downloaded as a trial as I have used for some years now without difficulty until I have to register and pay for the privilege of using it. I tried to register, but registration box disappears. I'm sorry to be vague, but I'm not as into it as you and still trying to familiarize themselves with computer terminology and everything very confusing sometimes. Even the delay in responding to your response to my query is due to not being able to navigate the Web site to know how to respond.

    SORRY, but I hope you can help

  • I don't have serial number to activate the software acrobat X 1 pro. How can I get the number?

    I don't have serial number to activate the software acrobat X 1 pro. How can I get the number?

    Hey johnt92241602,

    I have checked with your account and could see that you have purchased an annual subscription for one year.

    There is no need for a serial number to activate Acrobat subscription.

    After you install Acrobat XI pro, all you need is to log in to adobe.com with your Adobe ID and password to activate the software.

    Kind regards

    Ana Maria

  • How can I get the free update to CS6?

    How can I get the free update to CS6 promised when I bought CS 5.5 student edition?  I bought 5.5 right before 6 is out and part of the package was that the upgrade was free when 6 is out.

    I don't know if a promotion that has been designated two years ago is still in force today, but you can check with Adobe Support by chat or phone and find out.  If the upgrade is still valid then they should be able to direct to the acquisition.

    Here is a link to a page with options to help make contact:

    http://www.Adobe.com/support/download-install/supportinfo/

  • How can I get the messages appear when sent even if my phone is locked. I only get messages across when I activate the phone

    How can I get the messages appear when sent even if my phone is locked. I only get messages across when I activate the phone

    Settings > Notifications > Messages > display on the lock screen

  • How can I get the iMovie video files in the photo library?

    How can I get the video files of "iMovie - bibliotek.imovielibrary" in the photo library?

    Is to select your library from the libraries pane and choose my brackets at the top of the screen. Then select the clips you want and share file on the desktop. Then import in photos.

  • My update to Apple Watch has suspended how can I get the update?

    My update to Apple Watch has suspended, how can I get the update?

    What do you mean by "break"?

  • How can I get the AirPort Express 1 utility generation? I lost mine.

    How can I get the AirPort Express, the utility of 1st generation? I lost mine.

    Open the App Store on your device, then press Search at the bottom of the screen.

    Then type: airport utility in the search field of the screen top.

  • How can I get the update iOS 9.3.5?

    How can I get the update iOS 9.3.5?

    Settings > general > software update

  • FireFox is no longer crash recovery of open tabs. Management of tab has changed. How can I get the old behavior?

    All my old tabs are missing after a crash. I chose "view my tabs, windows and last time ', like the start option. Many unwanted changes in tab management happened recently. For example when I close a tab in a window of the two tab, I see a blank screen (see picture). Preview display seems to be broken (see attachment). How can I get the old behaviour back?

    After researching the issue, it seems that the problem was a problem of NoScript configuration. After restoring NoScript to the default values, the tab number disappeared.

    Thanks for your help.

    MELL-

    (~ J99) Also note

    mellpell said

    Looks like it's a known problem with Image Tweek:
    http://forums.mozillazine.org/viewtopic.php?p=14029673#p14029673
    https://github.com/CAFxX/ImageTweak/issues/37
    https://github.com/CAFxX/ImageTweak/issues/40

Maybe you are looking for

  • 0 x 80070424

    Hi I am also a Windows Update error code 0 x 80070424 on my Windows XP. Can someone help me please.

  • HP Media Smart Server / EX-490 connection problems

    I installed an HP Media Smart Server / EX-490 (w / 4 embedded HD). With the help of a Win 7 machine networked to another machine Win - 7. Had he hung on several months ago. He left and I tried to get it online several times, without luck. Have discon

  • Copy a table with its index of Oracle 12 to another instance oracle 12

    HelloI m using 64 bit Win8I have a huge table T1 (about 200 million) on user storage space and its index is on different tablespaces on DB1I built an other empty DB2 with the same names of storage spaces. I d like copy the table T1 of DB1 with all it

  • Oracle Business Intelligence (BI) Forum

    Hi allI want to learn Oracle Business Intelligence.I'm looking on the forum and I found:1. soft people Business Intelligence2. EBS Business Intelligence.Which of the above is the Hyperion?Thank you very muchMK

  • FTP site is asking to specify a password

    Hello:I tried to get help from adobe chat today, but they wouldn't help... Sahasranshu told me that I have to go on the forums to ask.I am trying to enter ftp.adobe.comFor some reason any and it has been a few months I have last access, it's to ask a