Last one year data

I have a date field (upd_date) in my table (table1) and i need to retrieve the count of the records which contains the last one years's data alone.. Using the upd_date field as reference.
Thanks...

user10871298 wrote:
I have a date field (upd_date) in my table (table1) and i need to retrieve the count of the records which contains the last one years's data alone.. Using the upd_date field as reference.
Thanks...So whats the problem in that?
You can just
select count(*)
  from table1
where upd_date between to_date('01-01-2009','dd-mm-rrrr') and to_date('31-12-2009','dd-mm-rrrr')Or if you dont want to make the date static you can
select count(*)
  from table1
where upd_date between add_months(trunc(sysdate,'year'),-12) and trunc(sysdate,'year')-1Edited by: Karthick_Arp on Mar 22, 2010 10:57 PM

Similar Messages

  • List of transactions executed in the last one year along with the count

    Hi all,
    I want to find the list of transactions executed in the last one year in my IDES system. Also, i want to find how many times these transactions got executed in the last one year.
    I already saw, ST03 and ST03N tcodes. But im not able to see the correct result there.
    Could anyone tell me whether SM21 or ST03N tcode will be useful for finding the total number of transactions get executed in the last one year and the number of times these got executed..
    If anyone of this useful for my exact requirement, then what are all the correct inputs need to be passed to these transaction?
    When i see the MONI table, i find that it gets stored with some cluster key. How the data from this table will be usefiul for my requirement?
    Or, is there any standard reports available for finding this count?
    Thanks,
    Shanthi

    Hi Michael,
    Thanks for ur reply.
    I have few more clarifications in this.
    When i click the "Standard" transaction profile, it shows a list of dialog pgms and the number of steps. But this count is different from the count which i get it from "Early Watch".
    For example, the "Standard" didn't display the SE38 transaction code for a specific week which i selected. Whereas, "Early watch" displays the SE38 transaction.
    So, which count is correct actually?. What do "standard" and "Early watch" represent?
    Also, i executed a Z transaction today(13.03.2009). But im not able to select today (No application server is avaliable to select for today's date). So how can i check what are all the transactions executed today and how many times this Z transaction executed today, from this transaction.
    Please help me...
    Thanks,
    Shanthi

  • How to Identify incoming and outgoing IDOC in the system for last one year.

    Dear All,
    How to Identify incoming and outgoing IDOC in the system for last one year.
    Regards
    Ashok

    Dear Anindya,
    I used WE05 the result by giving direction outbound.Then on created field i put the value date.I m getting the output in the no of idoc number.
    This is only the way to identify?
    Thnx
    Ashok
    Edited by: ashok singh on Oct 22, 2009 8:40 AM

  • Find aging of concurrent jobs execution for last one year in R12

    DB:11.2.0.3.0
    EBS: 12.1.3
    O/S: Red Hat Linux
    Hi all,
    Could anyone please share the resolution for the below question in R12 ?
    1)      Considering only 3 weeks of data is maintained in FND tables, which means we cannot use fnd_concurrent_requests to get list of jobs submitted in last one year. Is there any other way what we can get to find out aging of jobs execution for last one year?
    Thanks for your time!
    Regards,

    Locking this thread - Pl continue the discussion in your original post - Identifying customizations in R12
    Unless you have backups of the deleted data, this is not possible

  • I lost some of my contacts which was updated during last one year

    i lost some of my contacts which was updated during last one year when reset the Iphone 4s it took the data from december 2012

    No I have not checked to see if the netbook is still authorized. Where do I go to do that? In the Account info? If so, you cannot view which computers are authorized. And I'm sure it is, I usually don't mess with that part of it. It was just weird that I connected it to my Mac, and then after disconnecting it, a few of the apps just disappeared. And as I mentioned before, the "apps" portion in iTunes when I connect the Touch to the netbook is grayed out and I cannot even back up the apps from it to iTunes. When I clicked on Sync apps, it asked me if I was sure and says "are you sure you want to sync this ipod to this music library, all application will be replaced with the apps in this music library"
    I found that odd because my iPhone does that, the iPod Touch should not. (I've owned an older model Touch, which it did not do this) It should allow me to backup all apps from it to iTunes.
    That's the one thing I hate about the iPod Touches and iPhones being connected to iTunes. You constantly have to "sync" to backup, I like to manually do that on my own app by app.

  • I am using iPhone 4 from the last one year and went dead and got it replaced by paying Rs.12500/- to Nyasa Sion Koliwada Mumbai Service Provider but now again after 38days the problem has started, what do i do? Is this is the quality & service we boost?

    I am using iPhone 4 from the last one year and went dead and got it replaced by paying Rs.12500/- to Nyasa Sion Koliwada Mumbai Service Provider but now again after 38days the problem has started, what do i do? Is this is the quality & service we boost? On visiting the store we get only one reply you may write to Apple directely. we have the similar kind of problem with iPad which is being used by my wife Mr.Neelam Vij and paid Rs.16000/- to get it replaced within a year & 6months use. so in totality we have paid Rs.28500/- + Rs. 3000/- diagnostic charges.
    1. iPhone 4 , 32 GB Black with Sr. No. 88******A4T
    2. iPad 2, 16GB White with Sr. No.DL*******KPH
    Moreover, we have no information to contact whom. even the replace set has a warranty of only three month which further confirm that Apple itself is not confident wheather product will last after replacement for more then three month. Such kind of happening do not encourage anyone to recomend this product to anyone. Would appriciate a faster response to our problem if someone from Apple is going to read this email.
    Thanks & Regards
    A K Vij
    <Personal Information Edited by Host>

    http://support.apple.com/kb/he57?viewlocale=de_de
    India
    (91) 1800 4250 744
    www.apple.com/in/support/
    hope it helps

  • Last 3 years data

    Hi Experts,
    I am new for OBIEE and i have small requirement
    I have a report with (year,Prod,sales) and there is prompt for year when i am selecting the year from prompt it as to show last 3 years data also. (if i select 2012 it as to show 2010,2011,2012 data in the report)
    Regards,
    Rafi

    As I am new for OBI could you please elaborate the steps how we reach this and i facing problem in calling Presentation variable in column
    Steps I implemented
    1>     Created prompt on Year and created presentation variable also for that year prompt*(P_year)*
    2>     In answers I created report with 3 columns *(YEAR,PROD,SALES)*
    3>     In Year -->add filter --> ADD presentation variables--> in variable expr i gave P_year
    But I Strucked here could you please help in this part to reach my requirement or please post any related links or documents.
    Regards,
    Rafi
    Edited by: Rafi.B on Jul 31, 2012 2:43 PM

  • Dublicate the database with one year data

    Hi DBA's
    I need to create the duplicate database instance. But only one year data from the source instance to target instance, source instance is having 3 years data.
    is it possible to do so? and which method i have to follow to create a Duplicate instance?
    One year data is having in size nearly 1 TB .
    Regards,
    SG

    Please see this thread for similar discussion -- ebs cloning version 11.5.10.2
    Thanks,
    Hussein

  • How to find the objects created in last one year

    Hi Experts,
    How to find the objects created in last one year.
    Thanks in Advance,
    Iff

    hi
    just go through this table.
    <b>TADIR</b>  object as 'PROG'
    in this you can also provide the authors name in AUTHOR field
    and
    <b>TRDIRT</b>
    reward points if it helps,
    regards,

  • Last 5 years data through LO

    Hi,
    What is the process in LO extraction to load last five years data. Is archiving session would be useful to achieve the requirement?
    Thanks in advance
    krish

    Hi ,
    For Lo extraction  we have to follow the same procedure only .Plz follow the below procedure.
    1)Activate the datasource via Tcode : RSA5.
    2) Check whether the datasource is activated or not via the Tcode : RSA6.
    3)Replicate the DS into the bw.
    4)Empty the setup table by using the Tcode : LBWG
    5) Fill the setup table by using the Tcode : OLI*BW
    6) create the DATATARGET IN THE BI .
    7) Create the transformation between the DS and DT
    8)Run the infopackage
    9)Run the DTP.
    Hope u got it,
    Assign points,
    Thanx & Regards,
    RaviChandra

  • To display the WBS elements for last one year

    Hi All,
        Im displaying the details of all active employees. I need to display the WBS elements of all active employees for the last one year alone. Can anybody help me out to get this...
    Regards,
    Surya

    Hi,
    select all the PERNRs with
    BEGDA and ENDA as per ur req
    to check if they are active or not
    use the FM
    HR_BEN_US_CHK_TERMINATION
    then take all the active PERNRs and use
    them to query PRPS table with
    OBJNR = activePERNR

  • C mod Coding to display last five years data ( fiscal year )

    Hi All,
    Requirement is end uesr will enter fiscal year ie Interval example From 2001 To 2003 or end uesr will enter enter only From 2001 and To will be left  balnk.In Report my structure will be fixed ie I need to display data for last  Five years.If end user will enter only one year then data should appear for One year and all other columns should be blank.
    Please let me know what type of  variables to be created and cmod coding.
    Regards
    Albaik

    Hi alba,
    Pls find here with the code
    case I_VNAM.
    when 'ZPRYRPER'.
    if I_STEP = '2'.
    loop at i_t_var_range into temp.
    append temp.
    endloop.
    read table temp with key vnam = '0S_FPER'.
    if sy-subrc eq 0.
    move temp-low to l1_period.
    move temp-high to l_period.
    endif.
    if l_period-gjahr = 0000.
    l_period-gjahr = 2020.
    endif.
    if l1_period-gjahr = 0001.
    l1_period-gjahr = 1990.
    endif.
    CLEAR E_T_RANGE_WA.
    l1_period-buper = '001'.
    l_period-gjahr = l_period-gjahr - 1.
    l1_period-gjahr = l_period-gjahr.
    E_T_RANGE_WA-SIGN = 'I'.
    E_T_RANGE_WA-OPT = 'BT'.
    E_T_RANGE_WA-HIGH = L_PERIOD.
    E_T_RANGE_WA-LOW = L1_PERIOD.
    APPEND E_T_RANGE_WA TO E_T_RANGE.
    endif.
    Hope it helps
    Regards,
    Marasa.

  • How to find vendor who does not have transactions for last one year

    HI all,
    We have around 20000 vendors, i want to find out who does not have any transactions for last 1 year.  Any valuable suggestions on this?
    Thanks and regards
    Ramarao

    HI,
    Actually above one mehtod is very painful method. Is there any method by writing ABAP query and any other short cut method
    Thanks and regards
    Ram

  • Reg:db02 last 2 years data

    Hi All,
    i want to see the tablespace growth analysis for particular tables.i can see only for last year in db02.I want to see it for the 2010 too.kindly let  me know what can be done to this
    System details:Database:oracle9.2.0.8 with Solaris 5.9
    ecc5.0
    Regards
    Ram

    Hello Rramky,
    Check this link : http://avdeo.com/2011/01/07/checking-database-growth-trend/
    But it will work only if autoextend mode is off for tables.
    Regards,
    Amit Barnawal

  • Loading data of last three years via initial load

    Hi All,
    We are having one requirement. We have to load data of last three years from source to target via initial load.
    most of the table(s) are not having timestamp column.
    Please suggest some process to get this done.
    Thanks
    Kamlesh

    This question doesn't seem to have anything to do with GoldenGate, does it? Assuming the source & target are both the same DB vendor (ie, both Oracle), then there is no reason to use GG for the initial load. (But trying to figure out how to get the last 3 years data without timestamps will be an interesting challenge, in any case. Not sure which forum is best to answer that question.)

Maybe you are looking for

  • DVD buring with a LaCie

    I had bought a DVD burner for my wifes iBook which I have used off and on with it no problem. Its a LaCie FireWire DVD+- 16x4x12 4 x dvd+R double layer. We have had a few updates on the OS and now we are at 10.4.8. and sometime before this it had sto

  • SCM - APO Vs F&R

    Dear Colleagues, I am looking for a document on Cons and Pros regarding the SCM APO Vs Forecasting and Replenishment (F&R) module. Did anyone implement (F&R) over APO? And why? Regards, Fred

  • Active workflows in the system

    Hi all, Is there any way I can find all the active workflow in the system at table level?? Kr Vithal

  • LMS Staging Environment Flash Error

    Recently at my company we experimented with using a flash video to launch a webhelp program in our LMS. We are getting the following error: "The following application (flash file) is trying to communicate with this Internet-enabled location (LMS stag

  • My Personal Settings will not stay set

    Hi all - Upon booting up one fine morning, I discovered all my personal settings had reverted to default - "blue" appearance, mouse tracking speed, touch-pad click settings, screensaver (not desktop pic or hotcorners, though). In addition, general wo