How to get all records created this month?

Ok I'm trying to write a query that would get records that were created this month or later but not in the past.
So today is Nov 16th 2009
I need to look for all records created from 11/2009 and onward (>11/2009)
Any ideas?

Do you have any field like "create_date" on that table ? Here is simple qry
with t as ( select 1 as id,to_date('01-OCT-2009','DD-MON-YYYY') as create_date from dual
UNION
select 2,to_date('11-OCT-2009','DD-MON-YYYY') from dual
UNION
select 3, to_date('02-NOV-2009','DD-MON-YYYY') from dual
UNION
select 4, to_date('01-NOV-2009','DD-MON-YYYY') from dual
UNION
select 5, to_date('13-DEC-2009','DD-MON-YYYY') from dual)
select * From t
where CREATE_DATE >= trunc(sysdate,'MON')Edited by: rkolli on Nov 16, 2009 1:23 PM

Similar Messages

  • Anyone know how I get charged a late this month?

    anyone know how I get charged a late this month?

    Creative Cloud chat support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html

  • How to get all records using Invoke-webrequest?/Why Invoke-webrequest returns only first 2000 Records?

    invoke-webrequest content returning only 2000 records though it has around 4000 records in web api.
    The same url if I give in excel oData Data feed I am getting all the records.
    See the below script
    Script:
    $QueryResult= (Invoke-WebRequest -Uri $ODataURI -UseDefaultCredentials)
    [xml]$xmlResult=$QueryResult.content
    foreach($obj in $xmlResult.feed.entry.content.properties)
    $Name=$obj.Name;
    $IsAvail=$obj.isAvail.'#text';
    $PGroup=$obj.PGroup
    I am exporting the above result as a CSV file and my CSV file contains only 2000 records. 
    But,  $xmlResult.feed.Count --> it Shows 4000 Records.
    The same Odata url if I give in excel oData Data feed I am getting all the 4000 records.
    So Please help me how can I get all the records using power shell.
    Thanks
    A Pathfinder..
    JoSwa
    If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful"
    Best Online Journal

    Hi Jo Swa(K.P.Elayaraja)-MCP,
    Would you please also post code which is used to export the records?
    In addition, to use the cmdlet invoke-RestMethod to work on ODate feeds, please refer to this article:
    Interacting with TechEd NA 2012 Schedule using PowerShell v3
    I hope this helps.

  • How to get all records of 0041 for a given PERNR

    I have to display Most Recent Hire and Original Hire date.
    So I am using this below code:
      0041 - Date Specifications
        rp_provide_from_last p0041 space pn-begda pn-endda.
        IF pnp-sw-found EQ '1'.
          MOVE: p0041-dat01 TO wa_final-dat01,
                p0041-dat03 TO wa_final-dat03,
                p0041-dat02 TO wa_final-dat02.
    But for few PERNRs we are having wrong data and below is the explanation from my functional guy:
    I figured out the above when I ran the report for all employees and noticed some dates were out of sequence.  The reason for the code change is because Payroll has to input NR in the P0041-DAR** field (used in payroll calculations to allow additional contributions to Savings Plans for employees who are near retirement) and it automatically places this future retirement date in P0041-DAT01.
    So if I see at PA0041 for a given few PERNRS, am having couple of records and the last record is for the retirement calculations and hence am getting wrong dates into my display. I need the first record for this kind.
    Thanks
    Kiran

    Hi,
    here is the piece of code using field symbols for accessing dates from pa0041....
      FIELD SYMBOLS
    FIELD-SYMBOLS:<f_dar01> TYPE ANY,
                            <f_dat01> TYPE ANY,
                             <f>       TYPE ANY.
    form read_pa0041 .
      DATA:    l_date               TYPE dardt,
               l_date_type          TYPE datar.
      CLEAR : v_data  ,
              v_date  ,
              v_days  .
      v_cnt = 1.
      DO 12 TIMES.
        CONCATENATE 'p0041-dar' v_cnt INTO v_data.
        CONDENSE v_data NO-GAPS.
        ASSIGN (v_data) TO <f_dar01>.
        IF <f_dar01> = 'U5'.
          CONCATENATE 'p0041-dat' v_cnt INTO v_data.
          CONDENSE v_data NO-GAPS.
          ASSIGN (v_data) TO <f_dat01>.
          v_date = <f_dat01>.
          EXIT.
        ENDIF.
        v_cnt = v_cnt + c_1.
      ENDDO.
    then you can use the date fetched in v_date  as per your requirement..
      IF NOT v_date IS INITIAL.
    I hope u will get some help
    Thanks & Regards
    Ashu SIngh

  • How to get all records from department wise having max salary?

    i have a Employee table which consist
    id | name | dept_id | Salary
    1 A 1 20
    2 B 1 25
    3 C 2 30
    4 D 2 25
    Search max salary department wise with all details like below result.
    id | name | dept_id | Salary
    2 B 1 25
    3 C 2 30

    Could you try this?
    create table employee (id int, name varchar(10), dept_id int, salary int)
    insert into employee values (1,'A',1,20)
    insert into employee values (2,'B',1,25)
    insert into employee values (3,'C',2,30)
    insert into employee values (4,'D',2,25)
    select e.* from employee e inner join
    (select a.dept_id , max (a.salary) as 'max_salary' from employee a
    group by a.dept_id ) b
    on e.dept_id = b.dept_id
    and e.salary = b.max_salary
    order by e.dept_id
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • Using a waveform graph, how to get all recorded data graphed?

    I record data from 6 channels using DAQmx with simulated channels and write to measurement file.  Then using read from measurement file, and waveform graph, I am trying to graph the data that has been recorded.  I am only getting a small amount graphed.  The same graph appears whether I have let the measure and record program run for 1 minute or for ten minutes.  It also displays a time at the end of the graph that is in the future.  What am I doing wrong?  Please help.
    Hillis Pratt, Jr.

    I am attaching the two VIs I have been trying to use.  I started with examples from NI and didn't go far from that.  Any assistance would be appreciated. 
    Attachments:
    Measure and Record Six Voltages with Express1.vi ‏119 KB
    Graph Measurement Files1.vi ‏89 KB

  • How get all record from master and matching record from detail

    hi master
    sir i have master detail table
    i have many record in master table but some record in detail table how i get
    all record from master and matching record from detail
    such as
    select m.accid,m.title,d.dr,d.cr from master m, detail d where m.accid=d.accid
    this query not work that get only related record i need all record from master
    please give me idea
    thanking you
    aamir

    hi master
    sir i have master detail table
    i have many record in master table but some record in
    detail table how i get
    all record from master and matching record from
    detail
    such as
    select m.accid,m.title,d.dr,d.cr from master m,
    detail d where m.accid=d.accid
    this query not work that get only related record i
    need all record from master
    please give me idea
    thanking you
    aamir
    select m.accid,m.title,d.dr,d.cr
    from master m, detail d
    where m.accid=d.accid (+)The outer join operator (+) will get you all the details from master and any details from the detail if they exist, but the master details will still be got even if there are not details.
    Note: Oracle 10g now supports ANSI standard outer joins as in:
    select m.accid,m.title,d.dr,d.cr
    from master m LEFT OUTER JOIN detail d on m.accid=d.accid

  • My dad and I have shared an iTunes account for years and I just created a new apple id but I have no Idea how to get all those purchases to this new account. Help please?

    My dad and I have shared an iTunes account for years and I just created a new apple id but I have no Idea how to get all those purchases to this new account. Help please?

    The old Apple ID (presumably your dads) owns those songs and your new Apple ID does not.  However, your dad can authorize your iD to use the songs by going to Store > Authorize This Computer from your iTunes menu and entering his Apple ID and password.

  • Hierarchical query - How to get all parent records - Duplicate post

    Hi,
    In Oracle, START WITH, CONNECT BY commands will give all the direct and indirect child records. Other way round, is they are command which gives all the parent records till the root? Please let me know. I am working on Oracle 9i Release 2.
    Thanks a lot for your help.
    Edited by: skv on Nov 21, 2008 11:05 AM

    Duplicate post.
    Hierarchical query - How to get all parent records
    Please edit this post heading to duplicate post.
    Regards.
    Satyaki De.

  • I just purchased a new laptop after my old computer broke, im tryna figure out how to get all of my songs from my itunes library on this computer.....any ideas? ps. ive done it b4 i just cant remember how

    I just purchased a new laptop after my old computer broke,im tryna figure out how to get all of my songs from my itunes library on this computer.....any ideas???

    Restore from backup if you have one.
    You can also transfer stuff from your iPod if you have one:
    https://discussions.apple.com/message/11857427#11857427
    If you are in the US or Canada you can download purchased music from the Purchased link in the iTunes store.
    Otherwise if the disk drive is OK in your Old PC you can remove it and put it in a USB drive enclosure and then use it as an external disk on your new PC, then you copy the muisc from there.

  • Not getting all records in pagination

    I am also have a problem getting all records in the report as the post on Apr. 21,2004. My reports pagination stops at 500. When I set the 'max row count' to 100000. The pagination at the bottom of my page disapears. When I leave 'max row count' empty, it only goes from 1-500. No way to view records past the 500th record.
    I see there was a post on Apr. 21, 2004 about the same thing but it did not specify a fix or work around or if I'm missing a setting. (also tried the log off/on but did not help).
    *My pagination Scheme is 'Row Ranges 1-15 16-30 in select list(wiht pagination)'
    *My report has 1000+ records.
    Thanks, Paula

    The actual number of rows supported by the select list depends on how many rows you show on each page. If you go with the default of 15 rows, you would be able to use the select list with close to 5000 rows. If you increase the number of rows per page, the select list will work with even more rows.
    If the select list can't be used, it may make sense to consider using the "row ranges with set pagination" style. Set pagination lets you navigate from one set to the next instead of one page to the next, so you can navigate through your result set a lot quicker.
    However the best option for reports with that many rows would be "row ranges x-y", without showing the total number of rows. The reason is that the report renders a lot faster if you don't have the total number of rows calculated. In order to better be able to find certain records, I would recommend a search field on your report page that lets you filter the result set.
    Hope this helps,
    Marc

  • How to get all INDEXes from a database

    How to get all INDEXes in a database? I need to store them in script file (.SQL). My database version is 10.2.0.3.0.
    Edited by: Iniyavan on Sep 18, 2009 1:39 PM

    --Thanks, Koppelaars. The second query works. But I'm unable to store in spool file. May be it's due to CLOBs in the output. I did the following:
    set head off
    set feedback off
    set linesize 32727
    set pagesize 50000
    spool c:\indexes.sql
    select dbms_metadata.get_ddl('INDEX',INDEX_NAME,'MYSCHEMA')
    from user_indexes;
    spool off
    --In the spool file, I find only this
    CREATE UNIQUE INDEX "MYSCHEMA"."A" ON "MYSCHEMA"."BNK_DEALID" ("DEAL_ID")
    PCTF
    CREATE INDEX "MYSCHEMA"."ACCENT_RAC_REPORT" ON "MYSCHEMA"."ACCENT" ("SCHEME", "VAL
    CREATE INDEX "MYSCHEMA"."ACCENT_REPORT" ON "MYSCHEMA"."ACCENT" ("SCHEME", "APP_REF
    CREATE UNIQUE INDEX "MYSCHEMA"."ACCENT_X" ON "MYSCHEMA"."ACCENT" ("DEAL_ID")
    P
    CREATE UNIQUE INDEX "MYSCHEMA"."ACCNAV_X" ON "MYSCHEMA"."ACCNAV" ("SCHEME", "ACCNA
    --How to get all the DMLs in one SQL file?
    --Nagappan, I'm using WIN.

  • How to get ALL validate-errors while insert xml-file into xml_schema_table

    How to get all validate-errors while using insert into xml_schema when having a xml-instance with more then one error inside ?
    Hi,
    I can validate a xml-file by using isSchemaValid() - function to get the validate-status 0 or 1 .
    To get a error-output about the reason I do validate
    the xml-file against xdb-schema, by insert it into schema_table.
    When more than one validate-errors inside the xml-file,
    the exception shows me the first error only.
    How to get all errors at one time ?
    regards
    Norbert
    ... for example like this matter:
    declare
         xmldoc CLOB;
         vStatus varchar
    begin     
    -- ... create xmldoc by using DBMS_XMLGEN ...
    -- validate by using insert ( I do not need insert ;-) )      
         begin
         -- there is the xml_schema in xdb with defaultTable XML_SCHEMA_DEFAULT_TABLE     
         insert into XML_SCHEMA_DEFAULT_TABLE values (xmltype(xmldoc) ) ;
         vStatus := 'XML-Instance is valid ' ;
         exception
         when others then
         -- it's only the first error while parsing the xml-file :     
              vStatus := 'Instance is NOT valid: '||sqlerrm ;
              dbms_output.put_line( vStatus );      
         end ;
    end ;

    If I am not mistaken, the you probably could google this one while using "Steven Feuerstein Validation" or such. I know I have seen a very decent validation / error handling from Steven about this.

  • How to get multiple records using fn-bea:execute-sql()

    Hi,
    I created Proxy service(ALSB3.0) to get records from DB table. I have used Xquery function(fn-bea:execute-sql()). Using simple SQL query I got single record, but my table having multiple records. Please suggest how to get multiple records using fn-bea:execute-sql() and how to assign them in ALSB variable.
    Regards,
    Nagaraju
    Edited by: user10373980 on Sep 29, 2008 6:11 AM

    Hi,
    Am facing the same issue stated above that I couldnt get all the records in the table that am querying in the Proxyservice.
    For example:
    fn-bea:execute-sql('EsbDataSource', 'student', 'select Name from StudentList' ) is the query that am using to fetch the records from the table called StudentList which contains more than one records like
    Id Name
    01 XXX
    02 YYY
    03 ZZZ
    I tried to assign the result of the above query in a variable and while trying to log the variable, I can see the below
    <student>
    <Name>XXX</Name>
    </student>
    I want to have all the records from my table in xml format but it's not coming up. I get the value only from the first row of my table.
    Please suggest.
    regards,
    Venkat

  • SAPMMC All Settings Gone after running CCCleaner , How to get all settings

    Hello All
    SAPMMC All Settings Gone after running CCCleaner , How to get all settings back .
    I donot know what is SID ( System ID ), Instance etc.
    If this is not relevant to this forum plz let me know which forum ....
    Regards
    Rohit

    Turns out those error messages it gave me were because it didn't sync properly and create a backup. Which is why when I restored from backup it didn't reload my old info. Instead of assuring me that I would have the option to restore my info, it would have been nice had it told me that a backup hadn't been completed and that restoring my phone without it would leave me with nothing.
    Tech support had me use my old SIM card to import my old contacts. This worked, but I've entered contacts since getting the new phone that aren't on my old SIM. And doing so left me with a bunch of re-organizing to do (deleting, combining, entering First and Last name fields...) it took me several hours.
    I didn't get my appointments back, cause my old phone was just a phone, and that info wasn't on the old SIM, but I'm REALLY glad I got my contacts.

Maybe you are looking for

  • Sharing apps with other family members

    My husband and I have a desktop and two iPod touches. We have no problem sharing apps as we are using the same apple id. I turned on home sharing so that I could share a couple of apps that we have purchased with my daughter. We authorized her laptop

  • How to restore lost Finder preferences in 10.6.5?

    Running 10.6.5 on a MacBook Pro 2.4Ghz i5. In each Finder window, I had, over months and years, set up a specific setting according to my needs: Some windows had different background color; Some windows were set to list view, some to icon view; Some

  • Force RGB over HDMI connection??!! (Dell U2414H)

    Since Apple's support refuses to help me, nor do they seem to grasp incredibly basic technical information regarding monitors, I'm turning to you, dear forum. I just bought two brand brand and professional calibrated Dell U2414H monitors to use with

  • My computer isnt recognizing my iphone so i can hard reset it, what do i do?

    i cant turn my phone on, it is currently stuck at the apple logo

  • Authorisation for Payments Run

    Hi , I have a requirement when payments are made using F110, the release of payments should happen only when manager approves the payments. Is there any standard customisation for payment approvals. Kindly help me on this. With Regards Pradeep N