How to get data with out having any date/timestamp columns by year wise

hi,
how can i select years wise rows from tables,if that have not any date/timestamp column.

Well Govind it quite depends on what is the data type of that column and the format in which it is stored.
If the data type is varchar2/varchar and all the values are in a uniform format then there is no problem. All you need to use is the to_date function to convert the supplied strings to default date format and then use to_char function to only extract the YY or YYYY or RR or RRRR aspect of the data.
For example: If the column is called 'hire_date' and it's data type is varchar2 and the entries in this column are all in a uniform format, say month,date,year like January,12,1999. What you need to do is convert this string to a default date value using to_date function, like to_date(hire_date,'format_model') In the format model mention the format of the hire_date string. The out put of this function can be fed into to_char to extract the year, like to_char(output_of_to_date,'YYYY')
I hope you got what I meant. Let me know if it was of any use.

Similar Messages

  • How to hide applications with out having to type command+option+H?

    How can you hide applications with out having to type command+option+H?

    Click the middle bubble/button.  The app will "move" in the dock to the far right next to the trashcan.

  • How to get iterator with out dragging the table?

    Hi,
    Kindly help me out in getting the iterator for a view object with out dragging it on to the JSF page.
    Can we create bindings in the binding container with out dragging the table on to page.
    Kindly come up with suggestions.
    Thanks,
    Phani

    if i understud correclty. follow this
    public String getit58Value() {
    try
    if(!this.isEmptyDescr())
    DCBindingContainer dcBindings = (DCBindingContainer)getBindings();
    DCIteratorBinding dcIterator = dcBindings.findIteratorBinding("CrmCntrl2View1Iterator"); // r u meaning something like this. // am accessing without drop in jspx page
    System.out.println(""+dcBindings.getIterBindings());
    Row row = dcIterator.getCurrentRow();
    this.setEmptyDescr(false);
    System.out.println(""+row.getAttribute("BuDesc"));
    return (String)row.getAttribute("BuDesc");
    and another one .
    pagedef file . in bindings.
    we can create bindings as we need.
    but one suggestion. by default adf tak care its bindings . so time to ask what is usecase?

  • How do I recived Photos With Out Having any Back up At All Its A Iphone 4 16G

    Hi i Deleted My Photos From this weekend but i didnt have icloud or any type of back up system on my phone surely there is a way to recive my photos

    ( sorry For Spelling mistakes )
    i asked someone in the police force in my family and they said nothing is every really eraised otherwise pedofiles wouldnt ever get caught so if you can do it on a computer you surely have the tecknoligy to do this with the iphone

  • My Iphone 5s message is showing it has a message but it doesnt. ive cleared out all messages, ive turned it off then on again how do I get rid of it with out having to reset my phone?

    My Iphone 5s message is showing it has a message but it doesnt. ive cleared out all messages, ive turned it off then on again how do I get rid of it with out having to reset my phone?

    just do a reset, you lose no data.
    hold down the home/sleep button together until you see the apple logo and then release.

  • HT1146 I wiped out my mail icon on my desktop. I can't find awat to restore it so I can get to my emails. any suggestions with out having to reload my OS?

    I wiped out my mail icon in my dock, I guess I deleted it totally? I can not locate it anywhere. Does anyone know how to recreate the mail icon so I can get to my incoming mail? With out having to restore my OS?
    Thanks,

    Yes, I think my GF some dragged the mail icon into the trash bin and emptied the trash. because the bin has nothing in it? I think that could be why i can't find anything of a mail folder or icon?
    Thanks,

  • I accidently deleted an app off my iphone, and its not on my computer, how do i get it back with out having to pay for it again

    I accidently deleted an app off my iphone, and its not on my itunes account on my computer, how do i get it back with out having to pay for it again?

    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • I bought a album and it has 4 incomplete  songs on it how do I get the re-download them with out having to pay again   ?

    i bought a album and it has 4 incomplete songs on it, how do i re-download them with out having to pay again

    If your country's iTunes Store allows you to redownload purchased tracks, I'd delete your current copies of the dodgy tracks and try redownloading fresh copies. For instructions, see the following document:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Otherwise, I'd report the problem to the iTunes Store.
    Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
    Find the items that are not playing properly. If you can't see "Report a Problem" next to the items, click the "Report a problem" button. Now click the "Report a Problem" links next to the items.

  • I have lost my itunes and had to download a new one. how do i sync my iphone with out losing any thing

    I have lost my itunes and had to download a new one. how do i sync my iphone with out losing any thing, pics music contacts things like that

    I have lost my itunes and had to download a new one. how do i sync my iphone with out losing any thing, pics music contacts things like that

  • My Iphone is deactivate, I have photos with out back up, How can I open with out loosing my data.

    My Iphone is deactivate, I have photos with out back up, How can I open with out loosing my data.

    Aussienana wrote:
    OK, so I went and explored  what this site said about Mackeeper. But before I delete it can you tell me:
    If we don't need anti virus program and if the one that came with the machine is supposed to do the job then what does that say about the viruses that Mackeeper says it found? Were they not there and the program made them up? Or were they there and Apple didn't deal with them?
    Thanks for all feedback.
    They were not there and MacKeeper made them up. Delete it completely. I have seen it cripple people's Macs.
    Uninstall MacKeeper
    Pete

  • How can i get apps with out using credit card info because i do not have a card ?

    how can i get apps with out using credit card info because i do not have a card ?

    Yo Chris. I've been following your answers to different threads and quite frankly, you're very keen in answering everybody regarding this stupidity that Apple has brought upon its customers. Kudos to you. But the problem is, most of the time, in some devices, your solution doesn't work because the NONE option is not there. The same goes for me.
    Meanwhile, I found a temporary workaround for the iPhone 4s, iPad 2 and iPod Touch 4th Gen.
    Register a free Apple ID from the iCloud Settings.
    Go to Settings>iCloud>Account>Tap Payment Information on the Storage Plan Category.
    Fill in the other boxes and choose "None" on Credit Card Information.
    That's it! Hope I helped those who still couldn't find the "None" Option.
    Must be running IOS 5.0.1 though, else there would be no iCloud.

  • Trying to install Abode CS4 design standard Upgrade version. How can I install this with out having to install all my previous versions?  Thanks Mario

    Trying to install Abode CS4 design standard Upgrade version.
    How can I install this with out having to install all my previous versions?
    Thanks
    Mario

    You simply install it and input the required serials, including one of a previous product when asked for it.
    Download CS4 products
    Mylenium

  • I lost my ipod touch and never set up gps how to set it up with out having my ipod

    i lost my ipod touch and never set up the gps. How do i set it up with out having my ipod touch

    You can't. You are SOL.
    Basic troubleshooting steps  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101

  • I sold my ipad 2 and didn't take out my apple id. how can i log off the ipad with out having it in hand?

    I sold my ipad 2 and didn't take out my apple id. how can i log off the ipad with out having it in hand?

    You can't. But the buyer more than likely restored it because he/she could not use your Apple ID.

  • How to get data out of XML?

    Hi,All.
    I am running SAX (JAXP1.01) in Applet to process XML file. My question is how to get data out of xml format according to the field name (@age,@rank etc)
    and write into string buffer seperated by comma.
    Should I use SAX or DOM? (file size is big)
    My xml as follow :
    <ROOT>
    <FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@team/relay}">
         <ObjectName>Field124</ObjectName>
         <FormattedValue>HUNTER</FormattedValue>
         <Value>HUNTER</Value>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@age}">
         <ObjectName>Field125</ObjectName>
         <FormattedValue> 19</FormattedValue>
         <Value> 19</Value>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@Rank}">
         <ObjectName>Field126</ObjectName>
         <FormattedValue>43</FormattedValue>
         <Value>43</Value>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{results.athrel_name}">
         <ObjectName>Field127</ObjectName>
         <FormattedValue>1-1 NORRIE</FormattedValue>
         <Value>1-1 NORRIE</Value>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@timefield2}">
         <ObjectName>Field128</ObjectName>
         <FormattedValue>1:54.75</FormattedValue>
         <Value>1:54.75</Value>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@timefield1course}">
         <ObjectName>Field129</ObjectName>
         <FormattedValue/>
         <Value/>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@timefield1std}">
         <ObjectName>Field130</ObjectName>
         <FormattedValue/>
         <Value/>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@timefield2course}">
         <ObjectName>Field131</ObjectName>
         <FormattedValue/>
         <Value/>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@timefield2std}">
         <ObjectName>Field132</ObjectName>
         <FormattedValue>QT</FormattedValue>
         <Value>QT</Value>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@points(left)}">
         <ObjectName>Field133</ObjectName>
         <FormattedValue/>
         <Value/>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@pointsdecimal}">
         <ObjectName>Field134</ObjectName>
         <FormattedValue/>
         <Value/>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:decimal" FieldName="{@points(right)}">
         <ObjectName>Field135</ObjectName>
         <FormattedValue>0</FormattedValue>
         <Value>0.00</Value>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@timefield1}">
         <ObjectName>Field136</ObjectName>
         <FormattedValue>1:55.98</FormattedValue>
         <Value>1:55.98</Value>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@Rank}">
         <ObjectName>Field137</ObjectName>
         <FormattedValue>43</FormattedValue>
         <Value>43</Value>
    </FormattedReportObject>
    Repeat...
    </FormattedReportObject>
    </ROOT>
    ------------------------------------------------

    For big files use SAX: quicker and less memory usage.
    The xerces parser from Apache has some examples. Basically what you do is scan the XML, remembering what tag you are and once you find the right tag, read the contents.

Maybe you are looking for