Get the year out of a date

I have a date '12/02/1989'. how do i get the year out of this date.
or take a sysdate and get the year out of it.
Thanks

this?
SQL> ed
Wrote file afiedt.buf
  1  SELECT EXTRACT (YEAR FROM TO_DATE('12/02/1989','mm/dd/yyyy')) year
  2* FROM dual
  3  /
      YEAR
      1989
or this/
SQL> ed
Wrote file afiedt.buf
  1  SELECT to_char( TO_DATE('12/02/1989','mm/dd/yyyy'),'YYYY') year
  2* FROM dual
SQL> /
YEAR
1989too late
Message was edited by:
devmiral

Similar Messages

  • Did anyone else get the free 1 gb of data for 2 years when preordering the iphone6?

    Did anyone else get the free 1 gb of data for 2 years when preordering the iphone6?

    I am on More Everything. Edge is actually not a plan, but an add on for financing a phone while still actually being on the More Everything Plan. Regardless, I am not using Edge.

  • Logic to build report to get the stock on a particular date

    Dear Guru's,
    We are trying to build a report for getting the stock on a particular date. It is not possible to copy MB5B that option is ruled out. We have also tried to get the data from MBEWH but that is also  not helping as the table is not updated for all the periods.
    Please advice
    Thanks,
    Sam

    Dear Sameer,
    You can copy MB5B report and can modify as per your reuirement.
    If you want get stock a paticular date.It is hard to get, why because you have to fetch all the Material documents
    and you have to use MBEW table to get the current date stock and you have to do add/subtract from calculated stock.
    Due to this there will performance issues also.
    So try to copy MB5B and change as per your requirement.
    regards
    Subhash

  • MacPro backed up to Time Machine, added Mac Mini now get "The backup disk image "/Volumes/Data/Jerry Booher's MacBook Pro.sparsebundle" is already in use." error when Mac Pro tries to back up

    MacPro backed up to Time Machine, added Mac Mini now get "The backup disk image “/Volumes/Data/Jerry Booher’s MacBook Pro.sparsebundle” is already in use." error when Mac Pro tries to back up

    It is standard Mountain Lion error due to the networking ability which is comparable to wet string. (actually that was lion.. it dried out some with Mountain Lion.. higher in the hills perhaps!!)
    See C12 and C17
    http://pondini.org/TM/Troubleshooting.html
    But many people are suffering the same issue..
    And the above is even a little out of date.. you might need to do a reset to the TC.
    Welcome to Apple's beta program for everyone.

  • How do i get the dust out of my imac

    how do i get the dust out from the inside of my mac, it get hot?

    If I hadn't done this regularly (once a year) I think it would be appropriate to vacuum the machine from ALL enrty ports first.I've put compressed air (from my compressor) into all the openings of my several iMacs without consequence. My compressor has a regulator on it and I keep the PSI at about 60.  I start with the slot at the top rear of the machine, move to the A/C hole, then the several ports (USB, Headphone, Firewire, etc.) I also blow into the Superdrive slot. Then I Vacuum the memory slot area thoroughly with the memory modules removed. Earlier this spring I actually took the iMac apart and noticed that the fans get a dust buildup inside the impellors themselves. I don't think you could dislodge the buildup without air directed at them in close proximity

  • TS1717 I get the error "unable to load data class info from sync services" and eventually itunes freezes-will anything in this article help?

    I get the error "unable to load data class info from sync services" and eventully itunes freezes.  will this article help me?

    Hello there brigidfromca.
    Messages can always be pretty daunting when we're not sure where to start. I was able to locate the following Knowledge Base article that discusses the very message you're getting:
    iTunes for Windows: "Unable to load data class" or "Unable to load provider data" sync services alert
    http://support.apple.com/kb/TS2690
    It is a pretty thorough document with multiple steps to review, but looks to be great place to start for a resolution for you.
    Thanks for using Apple Support Communities to reach out to us for answers.
    Cheers,
    Pedro D.

  • Howto to get the year timestamp in syslog and logadm files

    5.10 Generic_141414-10 sun4u sparc
    Howto to get the year timestamp in syslog and logadm
    We have to keep logs files for a long time, I was exploring logs in /var/adm/secure and noticed that log files over a year old did not have a year time stamp, they are in this format:
    Nov 12 09:09:16
    And on the face of it. /varlog/syslog is the same, I thought no problem, there will be something in syslog.conf or logadm.conf I change and it will be fixed, but I cannot find any options to change this, how do I get the year in my log files?
    The "date" command does output the year:
    Friday, September 14, 2012  7:57:36 AM

    My guess is that the fields in a message logged by syslog are fixed, so you can't add a field to it.
    The reason for this is simply that there might be other applications parsing your syslog messages, or there might be other systems syslogging to your system, and that would break if you would add fields.
    The easiest workaround is probably to keep better track of your logs by either implementing an annual rotation of them from crontab, or log the date using the "logger" command on a regular basis.
    A third option would be to look at syslog-ng or rsyslog, which is more flexible when it comes to storing logs, and among other things can store them into a SQL db..
    .7/M.

  • Getting the most out of my T400 for light gaming

    So I just got a used T400 to play around with while I'm overseas. It is the model with the P9400 and ATI HD3470. It was an old corporate laptop that was refurbished and sold over ebay. So far it has been great. I know not to expect great performance when gaming but I'm wondering if anyone has any tips and tricks to really get the most out of it. 
    Do you think it would be worth it to open it up and blow it out? Also, the battery is a 9-cell but I'm only getting about 3 hours out of it. I know it is from sitting at a desk for years just plugged in all the time. Is there anything I can do to improve it? Or should I just get a new one?
    Thanks so much!

    Other than upgrading the hardware (you could also uprade to a larger faster hard drive or even SSD)...
    For YouTube (and other web sites that use Flash-based video), install ClickToPlugin Safari extension
    http://hoyois.github.com/safariextensions/clicktoplugin/
    In YouTube, with Safari and ClickToPlugin, HTML5-based version of the video (which is there mostly for mobile devices like iPhone and iPad) often gets played instead of the Flash-based version.  HTML5 video is more efficient, especially on PowerPC Macs.  On my Power Mac G5, playback is noticeable better with the HTML5 content (compared to Flash).  Also, ClickToPlugin prevents Flash-based ads on the same web page from loading, taking more load off the aging G5 processor.
    Create a new user account in System Preferences Accounts pane.  Log out and log in to the new user account (do not use Fast User Switching).  Do the things you normally to on your iMac using the new user account.  If things seem to run better in the new account, you should investigate what is happening in your normal user account.  You may have background processes (that start up automatically when you log in) which may or may not be necessary.  These may come from apps you have installed over time, which you may no longer use regularly.

  • Getting the most out of my 7100i

    I really need someone's help.  I'm not that Blackberry savvy.  I've had my device for about 2 years, and still only use it primarily for the phone and occasional email.  I originally got the phone because my company utilized the direct connect and email alot. I no longer work fot that company, but am still locked into my phone contract.  So, I want to get the most out of my phone, and I don't know all of it's capabilities.  Specifically, I want to know if it has capabilities similar to my Palm z22.  I'm tired of carrying 2 devices.
    Any input/advice/criticism(preferably constructive) would be most appreciated.
    Thanks from a blackberry illiterate.

    Other than upgrading the hardware (you could also uprade to a larger faster hard drive or even SSD)...
    For YouTube (and other web sites that use Flash-based video), install ClickToPlugin Safari extension
    http://hoyois.github.com/safariextensions/clicktoplugin/
    In YouTube, with Safari and ClickToPlugin, HTML5-based version of the video (which is there mostly for mobile devices like iPhone and iPad) often gets played instead of the Flash-based version.  HTML5 video is more efficient, especially on PowerPC Macs.  On my Power Mac G5, playback is noticeable better with the HTML5 content (compared to Flash).  Also, ClickToPlugin prevents Flash-based ads on the same web page from loading, taking more load off the aging G5 processor.
    Create a new user account in System Preferences Accounts pane.  Log out and log in to the new user account (do not use Fast User Switching).  Do the things you normally to on your iMac using the new user account.  If things seem to run better in the new account, you should investigate what is happening in your normal user account.  You may have background processes (that start up automatically when you log in) which may or may not be necessary.  These may come from apps you have installed over time, which you may no longer use regularly.

  • Can i get the filled out response sent to an email address

    can i get the filled out response sent to an email address

    Hi corjul94,
    You can get filled out response to a particular email address. In order to do that you need to first share the form with that user (to whom you want to send the responses). After that you need to go to Options tab and click on 'Email Notifications' and in 'To' enter that email address. Also, make sure that you select the 'Include submitted data 'check box'.

  • Need help!!!! I've got an old mac mini G4 and while adding a cd to itunes, there was a power shortage to the house. Now when I try to reboot I get three beeps and the CD is still stuck in the mac. How do I get the CD out and is that why I am getting beeps

    Need help!!!! I've got an old mac mini G4 and while adding a cd to itunes, there was a power shortage to the house. Now when I try to reboot I get three beeps and the CD is still stuck in the mac. How do I get the CD out and is that why I am getting the three beeps?

    If you can't eject a CD or DVD or open the drive tray
    How do I eject a defective DVD?: Apple Support Communities
    How to eject a CD on a MAC mini with PC keyboard and mouse « FAQforge
    From:
    Mac computers: About startup tones
    3 successive tones, a 5 second pause (repeating): This indicates RAM does not pass a data intregrity check.
    1 long tone while holding down the power button: Indicates an EFI ROM update is in progress on a computer manufactured before 2012.
    3 long tones, 3 short tones, 3 long tones: Indicates EFI ROM corruption is detected and the computer is in EFI ROM recovery mode.

  • I'm relatively new to Mac and want to try and get the most out of the new MacBook Air.   My wife and I have been sharing the same Apple ID. We both have iPhones - she has a 5 and I've got a 4S.   We only have one copy of iTunes and we have been sharing t

    I'm relatively new to Mac and want to try and get the most out of the new MacBook Air.
    My wife and I have been sharing the same Apple ID. We both have iPhones - she has a 5 and I've got a 4S.
    We only have one copy of iTunes and we have been sharing the account. (She doesn't really use the computer for anything beyond writing the odd weekend assignment.)
    Would I be better off setting her up with her own and making her as a separate user on the computer? Would this require much work?
    In recent times with updates, we have a few problems with the duplication of texts and that sort of thing. Both of our texts are stored on the computer and that sort of thing. Also, sometimes texts I send her are sent through to me  from her, if that makes any sense.
    Anyway, I don't really want to overly complicate matters when it comes to accounts etc, but I wanted to know if a fresh Apple ID would be the best thing or even a new user?
    Any tips etc would be greatly appreciated
    Thanks in advance
    MacBook
    I have this question too (0) Reply

    Your question is almost too much a personal one, begging the question "do we (husband and wife) feel comfy sharing one account on the Mac"   maybe thats why nobody answered you.
    It doesnt complicate anything, but it adds steps for switching accounts on the Mac/ purchases etc. of course
    since your question is mostly personal, ..I wont answer THAT part of it, but creating a new account is easy.....messing with switching back and forth is also a personal preference 'issue' as well.   I prefer to keep things simple, but...........you and yours,  I dont know.......
    http://support.apple.com/kb/PH11468

  • How can I get the best out of my battery life?

    There are a variety of things you can do to extend your device battery life, and use your phone for longer periods of time to see you through the day.
    Set your screen to timeout after a period of inactivity. This way your phone is not sitting idle with the screen backlight consuming extra energy. The recommended screen timeout is 30 seconds, but most phones will allow from 15 seconds to 10 minutes.
    Turn off location services (GPS), Wi-Fi and Bluetooth when not using these functions. When they're on, your phone constantly searches for your current location and open networks, which has a big impact on battery life.
    Turn down the screen brightness. For example, on an iPhone 4 the lowest brightness setting gives roughly 6.5 hours of continuous use, whereas the highest setting gives roughly 3.5 hours. You can always adjust the brightness when you're outside so you can still see your screen clearly. Some devices have an auto-brightness setting, where the phone adjusts the screen brightness depending on the light around it.
    Close your applications. On smartphones, returning to the ‘home' screen only minimises your apps – they keep running in the background. Closing your apps fully will save power; for example, on Samsung Galaxy devices hold down the home button for two seconds to see a list of all open apps. You can then swipe these to the left of the screen to exit them completely. On an Apple product, double press the home button to bring up all active applications and exit from there.

    Re: How can I get the best out of my battery life?
    Hi,
    When I make phone calls people on the other end have difficulty hearing me. They describe as they can hardly hear me as if I was speaking through the pillow etc). I am not touching any buttons and obviously it is not mute. This was happening couple of time in June, then every now and then. Recently it happened a few time in 2 weeks. I was trying to check if it was a reception issue but the place I spoke from is my office I make 70% of phone calls from. Can you book time for me in repair shop and address the issue.
    Thank you.
    Sergey Sinitsyn

  • How to get the previous state of my data after issuing coomit method

    How to get the previous state of some date after issuing commit method in entity bean (It should not use any offline storage )

    >
    Is there any way to get the state apart from using
    offline storage ?As I said the caller keeps a copy in memory.
    Naturally if it is no longer in memory then that is a problem.
    >
    and also what do you mean by auditlog?
    You keep track of every change to the database by keeping the old data. There are three ways:
    1. Each table has a version number/delete flag for each record. A record is never updated nor deleted. Instead a new record is created with a new version number and with the new data.
    2. Each table has a duplicate table which has all of the same columns. When the first table is modified the old data is moved to the duplicate table.
    3. A single table is used which has columns for 'table', 'field', 'data' and 'activity' (update, delete). When a change is made in any table then this table is updated. This is generally of limited useability due to the difficulty in recovering the data.
    All of the above can have a user id, timestamp, and/or additional information which is relevant to the data being changed.
    Note that ALL of this is persisted storage.
    I am not sure what this really has to do with "offline storage" unless you are using that term to refer to backed up data which is not readily available.

  • How do you get the video out to TV to work on the iPhone 3GS

    I cannot get the video out to TV to work on my iPhone 3GS with iOS 5.1.1.
    I am using the $40.00 apple composite AV cables and nothing seems to work. With the cables connected to tv input nothing shows up in general settings for video out. Or anywhere else for that matter. I have tried many different TV's, sometimes I get audio but never never ever video . Does anyone else have this problem or better yet the answer?

    Thanks for responding to my question about not being able to get the video out to work on my iphone 3GS. In answer to your question i couldnt get any video to work at all. But, i do know what was wrong now. The whole problem was the brand new $40.00 set of apple composite AV cables i just bought was no good. This afternoon i took a trip to the nearest apple retail outlet (30 miles away) with phone and cables in hand. And after doing a little head scratching of their own they decided to try another set of cables, and low and behold the darn thing worked like a charm.I was very impressed by the service at the apple store even though i didnt buy either product from them. I wonder if there is a bad batch of cables floating around out there because it looks like other people out there are having the same problem, which is why i didnt really suspect the cables. Thanks again for responding.   Micdude001

Maybe you are looking for

  • I need help guys..

    i need help guys.... Project Specification: Develop a software package using HTML, servlet for a company called BookWorm Pte Ltd. This company rents out its books to the general public. This software package allows them to check if books are availabl

  • Condition not picked automatically in VA01

    Gurus, I have created a material.I am using product hierarchy.The PH given in material master is at the third level.I created a the key combination in VK11 with PH first level.I am not able to maintain the key combination for the third level.So when

  • Reg Bill of lading

    Hi all, I have an requirement to grt Bill of lading data(BOL) for a delivery(likp-vbeln). I noticed BOl maintained in LIKP table but no values updated. Can any one let me know where can i fetch the data of BOL? Also i need to know the tables related

  • Upgrade to FCP 2 content media

    I upgraded my system from FCS 1 to 2. When installing FCS1 I decided to put all of the content on the same machine, my MacBook. When upgrading to FCS2 I assigned a separate external hard drive to store all of the content media because it takes up so

  • Views not created in Oracle.

    The Migration process did not create views in the oracle schema. The access source database has 60 queries. There are no errors in the error log about view creation. As I understand, the migration process should convert the queries in access 2000 as