Help with PowerShell to delete a date range of Calendar meetings

I'm trying to delete all Calendar items within a date range, from a mailbox. But first I'd like to just make sure my date filter is actually working.
Here is what i HAVE working:
Search-Mailbox ME -SearchQuery "Received:01/01/2010..03/18/2010" -EstimateResultOnly
This works, it gives me a count of all things in my mailbox
Search-Mailbox ME -SearchQuery kind:meetings -EstimateResultOnly
This works, it gives me a count of all Meetings in my Calendar.
I reallly need now to get the date range to work in conjunction with the kind:meetings.
How can I do that?

Hi,
The results include the deleted meetings. I test it in my lab.
So the command to delete Calendar meetings with a date range is this:
Search-Mailbox "username" -SearchQuery "Received:01/01/2010..3/18/2015 kind:meetings" –EstimateResultOnly -DeleteContent
Best Regards.
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
Lynn-Li
TechNet Community Support

Similar Messages

  • I delete a date from my calendar and it goes away for a few seconds but then it comes right back. Help, I delete a date from my calendar and it goes away for a few seconds but then it comes right back. Help

    When I tried to delete a date from my calendar it disappears for a second but then it comes right back. I tried to edit the same appointment but the calendar will not edit.

    Try a Reset...
    Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
    If no joy... Try a Restore...
    1: Connect the device to your computer and open iTunes.
    2: If the device appears in iTunes, select and click Restore on the Summary pane.
    3: If the device doesn't appear in iTunes, try using the steps in this article to force the device into recovery mode.
    From Here
    Unresponsive iPad
    http://support.apple.com/kb/TS3281

  • Help with replicating/updating vendor master data

    Hi,
    Currently, we run the bbp_vendor_sync program to do the replication. It does the job of both bbpgetvd (new vendor creation) and bbpupdvd (update existing vendor).
    But the problem is, we have two number ranges for vendors. One is Numeric and other one is Alpha.
    Group -->AB     From 0010000000     to 0699999999
    Group -->AZ     From A     to ZZZZZZZZZZ
    The vendor synchronization program can consider only one number range at a time i.e.
    either Numeric or Alpha. So, we have to switch the active number range
    and run the program twice., first for numeric and then for alpha.
    In order to avoid this, I'm looking at implementing bbp_transdata_prep which I was told would take care of this issue.
    I looked around for documentation/sample code for bbp_transdata badi and couldnt find any on SAP help site or SDN.
    Wondering if someone can help with the documentation/sample code and difficuly level of implementing this BADI.
    Any help would be highly appreciated and suitable points would be awarded for your help.
    Also, if there is another way to solve this issue without implementing transdata badi, pls. let me know.
    TIA,
    Seyed

    Hi
    <u>Please go through this -></u>
    http://help.sap.com/saphelp_srm50/helpdata/en/56/54f137a5e6740ae10000009b38f8cf/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/62/fb7d3cb7f58910e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/42/d3b671ba67136fe10000000a1553f7/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/bb/6c0e3b02616a42e10000000a11402f/frameset.htm
    <b><u>Sample BADI Implementation
    BADI Definition - BBP_TRANSDATA_PREP
    Purpose -> Impl. for BBP_TRANSDATA_PREP, Delete Invalid Mail Addresses</u></b>
    <u>PREPARE_REPLICATION_DATA method -></u>
    method IF_EX_BBP_TRANSDATA_PREP~PREPARE_REPLICATION_DATA.
      FIELD-SYMBOLS: <LFS_ADR6> TYPE ADR6.
      LOOP AT CT_ADR6 ASSIGNING <LFS_ADR6>.
        IF <LFS_ADR6>-SMTP_ADDR NS '@'.
          DELETE CT_ADR6.
        ENDIF.
      ENDLOOP.
    endmethod.
    <u>PREPARE_UPDATE_DATA method -></u>
    method IF_EX_BBP_TRANSDATA_PREP~PREPARE_UPDATE_DATA.
      FIELD-SYMBOLS: <LFS_ADR6> TYPE ADR6.
      LOOP AT CT_ADR6 ASSIGNING <LFS_ADR6>.
        IF <LFS_ADR6>-SMTP_ADDR NS '@'.
          DELETE CT_ADR6.
        ENDIF.
      ENDLOOP.
    endmethod.
    Hope this will help.
    Regards
    - Atul

  • Help with new hard drive and data recovery

    I have a macbook pro 13" from early 2011...last week the hard drive crashed and after a few hours at the genius bar had to got  tekserv to recover my data and get a new hard drive and update to 8GB of Ram.  When I got my macbook back I was given an external hard drive that had everything from my old hard drive saved by the users on the old hard drive.  I was hoping I could just transfer the user over to the new hard drive but since I had to restart the computer as a new computer I am not able to just reassign my old profile as the new one on this laptop.  Maybe I've done something wrong but at this point I transferred all my documents over, moved my music and pictures over but I have a few things I can't figure out that I'm hoping someone can help with.
    1. Do emails that were in my mail program from both gmail and my verizon.net program get saved somewhere or do I have to just assume those were lost?
    2. my iTunes library is now there but none of my playlists are there.  Should those have been saved somewhere in my iTunes folder that I should see them?  I'm concerned about syncing my iPhone or iPads to iTunes without those there.
    thanks for the help.

    Here's the spec page on your PB.  http://www.everymac.com/systems/apple/powerbook_g4/stats/powerbook_g4_1.25_15.ht ml  It came with OS 10.2.7 installed. The max OS is Leopard 10.5.x
    Tiger install DVDs are in short supply. Tiger is no longer available at the Apple Store but may be available for $129 by calling Apple Phone Sales @ 1-800-MY-APPLE (1-800-692-7753). For other sources, do a Google search for MA453Z/A (10.4.6), MA190Z/A (10.4.3) and M9639Z/A (10.4). Also look on eBay. Be sure & buy a retail version (black with silver X) and not a model specific version (gray) (See http://discussions.apple.com/thread.jspa?threadID=1976068 Can I use another Mac's system restore disc on my Mac?.
    Also check these web stores: http://www.lacomputercompany.com/cgi-bin/rpcart/index.cgi?command=dispitem&type= sku&sku=19521  http://www.allmac.com/shop/index.php?cPath=5_10003
    After you install the base 10.4.x, update to the final Tiger version 10.4.11. Here's the link for the 10.4.11 combo update http://support.apple.com/kb/TA24901?viewlocale=en_US
    Look at this link Mac OS X v10.4 Tiger Installing Software Support Page
    http://www.apple.com/support/tiger/install/
    You can also download the Tiger Installation and Setup Guide
    http://manuals.info.apple.com/en/Tiger_Install_Setup_Guide.pdf
     Cheers, Tom

  • Need help on How to delete duplicate data

    Hi All
    I need your help in finding the best way to delete duplicate data from a table.
    Table is like
    create table table1 (col1 varchar2(10), col2 varchar2(20), col3 varchar2(30));
    Insert into table1 ('ABC', 'DEF','FGH');
    Insert into table1 ('ABC', 'DEF','FGH');
    Insert into table1 ('ABC', 'DEF','FGH');
    Insert into table1 ('ABC', 'DEF','FGH');
    Now I want a sql statement which will delete the duplicate rows and leaves 1 row of that data in the table. ie.in the above example delete 3 rows of duplicate data and leave a row of that data in the table. My oracle version is 8i.
    Appreciate your help in advance.

    Either of these will work, the best approach will depend on how big the table is, and how many duplicates there are.
    SQL> SELECT * FROM table1;
    COL1       COL2                 COL3
    ABC        DEF                  FGH
    ABC        DEF                  FGH
    ABC        DEF                  FGH
    ABC        DEF                  FGH
    ABC        DEF                  IJK
    BCD        EFG                  HIJ
    BCD        EFG                  HIJ
    SQL> DELETE FROM table1 o
      2  WHERE rowid <> (SELECT MAX(rowid)
      3                  FROM table1 i
      4                  WHERE o.col1 = i.col1 and
      5                        o.col2 = i.col2 and
      6                        o.col3 = i.col3);
    4 rows deleted.
    SQL> SELECT * FROM table1;
    COL1       COL2                 COL3
    ABC        DEF                  FGH
    ABC        DEF                  IJK
    BCD        EFG                  HIJ
    SQL> ROLLBACK;
    Rollback complete.
    SQL> CREATE TABLE table1_tmp AS
      2  SELECT DISTINCT * FROM table1;
    Table created.
    SQL> TRUNCATE TABLE table1;
    Table truncated.
    SQL> INSERT INTO table1
      2  SELECT * FROM table1_tmp;
    3 rows created.
    SQL> SELECT * FROM table1;
    COL1       COL2                 COL3
    ABC        DEF                  FGH
    ABC        DEF                  IJK
    BCD        EFG                  HIJThere are other approaches as well (e.g. see the EXCEPTIONS INTO clause of the ALTER TABLE command), but these are the most straightforward.
    HTH
    John

  • Help with texts being deleted?

    My options were set that texts should be saved for 15 days. This morning all of my texts were deleted except saved texts. I figured maybe it just deleted all texts after 15 days maybe instead of deleting texts over 15 days old, so I set it on the "forever" setting, that they would never be deleted. I've gotten more texts today and they all disappeared again. I haven't changed any other options that should be at all related to my text options, and I don't know what to do? One of the texts actually deleted itself as soon as it came so I couldn't even read it. I have no idea what's going on. Phone is very new, only had it about two weeks.

    This is happening due to memory constraints on your device. In BlackBerry when the device couldn't find enough free space for its work it clear out your text messages and call logs. You can check the amount of free space on your handheld from options -> Status -> free space (given in bytes).
    For viewing details database sizes check the following - options -> Status -> click Menu button and select Database size. It’s recommended that you move your picture from device memory to Media card. Keep calendar items for pas 15 days and also keep messages for lower date range.
    tanzim                                                                                  
    If your query is resolved then please click on “Accept as Solution”
    Click on the LIKE on the bottom right if the post deserves credit

  • Need help with representing 2 bits of data in a column

    I Need help representing only 2 bits of data in a column in order to save space.
    Is that possible?

    CommitMan wrote:
    I Need help representing only 2 bits of data in a column in order to save space.
    Is that possible?Yes - using Assembler....
    If you need to count bits to save space, then you must be on 70's, or early 80's, hardware. So using Assembler should not be a problem. Let me guess.. a 8051 microcontroller from the 1980?
    Here's what the 8051 code and memory optimisation manual says:
    >
    The simplest and best way to get dramatic improvements
    in efficiency is to look for all variables that will have only
    binary values (0 and not 0), and define them as type 'bit‘:
    bit myVar;With bit variables, the full set of 8051 bit-level assembler
    instructions can be used to generate very fast and
    compact code. For example, the following C code:
    myVar = ~myVar;
    if (!myVar)
    }Generates only two lines of assembler:
    B200    CPL myVar
    200006  JB myvar,?C0002This example uses only 5 flash bytes and 8 CPU cycles.
    When you use bit variables, you can implement a
    nontrivial line of C code with just one assembler
    instruction.
    >
    <i>PS. Yes, the above is really from a manual for a real 80s microcontroller. And yes, I'm poking fun at your question as saving bits were a problem in the 80s and prior. It should not be a problem in the 21st century information system and database.</i>

  • Problem with customer exit variable on date range

    Hi All,
    I have customer exit variable on date range. In the selection screen it has to give the week range  as a default (05/21/2009 to 05/27/2009).
    Earlier its working fine and from yesterday onwards it is not working properly. yesday onwards default date range was not displaying in selection screen.
    Wht would be the problem.
    Thanks in Advance

    Hi Ashish,
    I checked every thing what u told earlier. Every thing is fine.
    And another thing is
    I have routine in infopackage level. Since day before yesterday it was working fine and yesterday onwards it was not working.
    Eg: budat will take the data based on routine for the week. But yesterday onwards it is not picking up the data.however I have the data in datasource for the week.
    Wht would be the problem. I debuged the code and its working fine.
    Sekhar

  • Help with powershell

    Hi,
    I'm new with powershell. I have a simple txt file with one line and numerisk value.
    I need a script that runs every day and change this value with -1.
    exp. The value is always in line 1
    old value - 20140115
    shuld be after script run: 20140114
    so I need replace the "old value" with "old value-1)
    Robert

    Hello Thanks for respond, unfortunately
    this script is not working for me, see below what i got.
    PS C:\> { (Get-Content -Path $file -ErrorAction Stop) -1 |
    >> Out-File $file -Force -ErrorAction Stop}catch{ Write-Error "$_"
    >> }
    >>
    Unexpected token 'catch' in expression or statement.
    At line:2 char:46
    + Out-File $file -Force -ErrorAction Stop}catch <<<< { Write-Error "$_"
        + CategoryInfo          : ParserError: (catch:String) [], ParentContainsErrorRecordException
        + FullyQualifiedErrorId : UnexpectedToken
    PS C:\>

  • Split date range without Calendar table

    Hi guys!
    Is there any way to split date ranges (to days / hours / minutes) in one table without using Calendar table (without joining 2 tables)?
    Reason I'm asking this is because we have a huge Fact table (500+ million records) and joining small Calendar table and this huge Fact table takes considerable amount of time.
    So far we tried:
    Join 2 tables (Fact and Calendar)
    Cross Applying Calendar and table-valued function (that returns necessary measures from Fact table)
    and both approaches took few minutes for 1 day to complete.
    Most successful test we had so far was using CLR and executing table-valued functions in parallel for different 15 minute periods. This way we were able to get the results in 3-4 seconds.
    Anyway, is there any effective pure T-SQL way to accomplish this?
    Thanks in advance,
    Miljan

    Try using a temporary table rather than table variable.. You can have a CI on the date column.
    or
    declare @PeriodStart datetime2(0) = '2013-01-05 00:00:00'
    declare @PeriodEnd datetime2(0) = '2013-01-05 02:00:00'
    select T.PeriodStart, T.PeriodEnd, count(Column1)as count1, sum(Column2)as sum1
    from Fact F with(nolock)WHERE F.[Start]>= '19000101' AND <=@PeriodStartand F.[End] >= @PeriodEnd and F.[End] <='20200101'
    group by T.PeriodStart, T.PeriodEnd
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Show date range in Calendar

    Hello,
    I have created a calendar using the calendar widget available in APEX 4.1
    This is SQL based and also has a input form to create a new event by clicking on a particular date.
    select id,activity,code,location,date_from from cal_activity a,cal_activity_type t where a.type_id = t.type_id order by code,activity
    The calendar works fine when I try to create/update an event.
    However the date range is not visible for events that last longer than one day.
    The event end_date is being captured.Then why is it that the calendar shows only sysdate events and not the ones before and after?
    Here is the link to the application :-
    https://apex.oraclecorp.com/pls/apex/f?p=17137:1:317233609286701:::::
    Could someone kindly explain what I might be missing here?
    Thanks and Regards,
    Priya Jetley
    Edited by: user637618 on Feb 13, 2012 1:35 AM

    According to CRM Support
    CRM Support wrote:the ability to block off a multi-day appointment in the Weekly and Monthly Calendar Views is not currently available on our product. However, we have submitted this functionality to our engineers as an enhancement request. At this time we are unable to provide an estimated time of implementation while this request is being analyzed and processed.
    Simple things seem hard for the Siebel guys.
    Edited by: nsidev on Aug 14, 2009 7:11 AM
    Edited by: nsidev on Aug 14, 2009 7:12 AM

  • Help with Powershell - moving files to folders based on date

    I have spent about a week on this task, and I know I am nowhere near an expert on Powershell, I am running into a wall.
    Here is what I want to accomplish - I have a folder with 1000's of files going back three years. I want to write a PS script that will move all the files older than three months into archive folders based on the file creation date. I need two levels, Year
    and inside the year, month.
    Here is what I have so far
    $location = "C:\scripts\Test1"
    cd $location
    dir | ?{$_.psiscontainer -eq $false}| %{$a="$($_.creationtime.year.ToString())";mkdir -ea 0 $a;mv $_ $a}
    $locationYear = "C:\Scripts\Test1\$a"
    cd $locationYear
    dir | ?{$_.psiscontainer -eq $false}| %{$b="$($_.creationtime.month.ToString())";mkdir -ea 0 $b;mv $_ $b}
    I know its basic, but it is working so far, except the folder month is in numeral format, 3 not 03. This is a requirement from our development team.
    Any help would be appreciated, Thanks! 

    JVR- thank you as well, I keep getting strange results. It looks like it makes the folders for 2014 but then starts erroring - it should be looking in the scripts/pdf folder, not the scripts folder.
    Move-Item : Cannot find path 'C:\scripts\2014-05-23 - XXXXX - report.pdf' because it does not exist.
    At C:\scripts\scriptomovetocreationdatefolderNEW.ps1:6 char:3
    +         Move-Item $_ $newdir
    +         ~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (C:\scripts\2014...62 - report.pdf:String) [Move-Item], ItemNotFoundException
        + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.MoveItemCommand
    $location = "C:\scripts\pdfs"
    dir $location -File | 
    ForEach-Object{
    $Fldr='{0}\{1}\{2:D2}' -f $location, $_.CreationTime.Year,$_.CreationTime.Month
    $newdir=$dir=New-Item $fldr -ItemType Directory -force
    Move-Item $_ $newdir

  • Looking for help with PowerShell script to delete folders in a Document Library

    I'd like to create a PowerShell script to delete old folders in a Document library that are over 30 days old. Has anyone created something like this?
    Orange County District Attorney

    Hello Sid:
    I am trying to do the same and Iam running the script to delete the subfolders inside a folder  but I have some errors. 
    Could you please take a look?
    _______Script________
    $web = Get-SPWeb -Identity https://myportal.mydomain.com
    $list = $web.GetList("ar_mailingactivity")
    $query =  New-Object Microsoft.SharePoint.SPQuery 
    $camlQuery = '<Where><And><Eq><FieldRef Name="ContentType" /><Value Type="Computed">Folder</Value></Eq><Leq><FieldRef Name="Created" /><Value Type="DateTime"><Today OffsetDays="-30" /></Value></Leq></And></Where>'
    $query.Query = $camlQuery
    $items = $list.GetItems($query)
    for ($intIndex = $items.Count - 1; $intIndex -gt -1; $intIndex--)
       $items.Delete($intIndex);
    ________Errors_______
    Unable to index into an object of type System.Management.Automation.PSMethod.
    At C:\Script.ps1:2 char:22
    + $list =$webGetList <<<< "ar_mailingactivity"]
    + CategoryInfo
    :InvalidOperation: (ar_mailingactivity:String) [], RuntimeException
    + FullyQualifiedErrorID
    :CannotIndex
    You cannot call a method on  a null-valued expression.
    At c:\Script.ps1:6 char:24
    + $items = $list.GetItems <<<< ($query)
    + CategoryInfo
    :InvalidOperation: (GetItems:String) [], RuntimeException
    + FullyQualifiedErrorID
    :InvokeMethodOnNull

  • Icloud help with restoring to an earlier date

    I plugged my Iphone 4S into my computer and it said i could update to the new IOS 7 so i did.
    When i completed the download my phone had completely lost all pictures, videos ect along with all text message history and so on.
    All i had was my contacts.
    I therefore tried to restore back to an earlier date but that didnt seem to work.
    So i decided to restore my phone as i read that may work, then once done that sign into icloud and get it back that way.
    Well once i restored my phone all my itunes was wiped and it now says i have 12.8gb of space when before (when all my stuff was there) i only had 7 or 8.
    Therefore i am worried now that EVERYTHING has been truly deleted, even from my itunes and icloud.
    Is there any way i can get this back?
    I am willing to hear any help possible. Thanks

    It sounds as if you either didn't backup to iTunes before updating, or you clicked "Restore iPhone" instead of Update.  Either way, you can try to restore again from iCloud (https://support.apple.com/kb/ph12521), and if nessecary choose to Show the older backups available from iCloud.  Or learn more about how to keep a backup of your device so this doesn't happen again. 
    Choosing an iOS backup method (Should I use iTunes or iCloud to back up my iOS device?)

  • Need help with query that can look data back please help.

    hi guys i have a table like such
    CREATE TABLE "FGL"
        "FGL_GRNT_CODE" VARCHAR2(60),
        "FGL_FUND_CODE" VARCHAR2(60),
        "FGL_ACCT_CODE" VARCHAR2(60),
        "FGL_ORGN_CODE" VARCHAR2(60),
        "FGL_PROG_CODE" VARCHAR2(60),
        "FGL_GRNT_YEAR" VARCHAR2(60),
        "FGL_PERIOD"    VARCHAR2(60),
        "FGL_BUDGET"    VARCHAR2(60)
      )and i have a data like such
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','11','1','400');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','10','1','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','1','0');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','14','200');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','10','14','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','10','2','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7470','4730','02','10','2','200');I bascially need to get the total of the budget column. however its not as simple as it sound(well atleast not for me.) the totals carry over to the new period. youll noticed the you have a period column. basically what im saying is that
    fgl_grant_year 10 period 1 = for account 7600 its $100 and $100 for period 2 you see 100 dollars again this is not to be added this is the carried over balance. which remains $100.
    so im trying to write a query that basically does the following.
    im given a period for the sake of this example lets say period 1 i get nothing else. I have to find the greates grant year grab the amount for period 14(which is the total from the previous year) and add it to the amount of the current period. in this case period 1 grnt_year 11
    so the expected outcome should be $700
    240055     240055     7240     4730     02     10     14     200
    240055     240055     7600     4730     02     10     14     100
    240055     240055     7600     4730     02     11     1     400keep in mind that im not given a year just a period.
    any help that you guys can offer would be immensely appreciated. I have been trying to get this to work for over 3 days now.
    finally broke down and put together this post
    Edited by: mlov83 on Sep 14, 2011 8:48 PM

    Frank
    wondering if you can help me modify this sql statement that you provided me with .
    table values have been modified a bit.
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','11','00','400');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','1','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','1','0');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','11','1','400');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('360055','360055','7200','4730','02','10','1','400');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('360055','360055','7600','4730','02','10','1','400');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','14','200');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','10','14','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','14','200');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','2','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','11','2','600');i need to take one more thing into consideration. if the greatest year has a value on period 00 i need to ignore the period 14 and the current period total would be
    the current period +(current period - greatest year 00)
    hope that makes sense so in other words with the new data above. if i was querying period two of grant year 11. i would end up with $800
    because the greatest year is 11 it contains a period 0 with amount of $400 so my total should be
    period 2 amount $ 600
    period 0 amount $ 400 - period 2 amount of $600 = 200
    600+200 = $800
    if i query period 1 of grant 360055 i would just end up with 800 of grnt year 10.
    i have tried to modify that query you supplied to me with no luck. I have tried for several day but im embarrased to say i just can get it to do what im trying to do .
    can you please help me out.
    Miguel

Maybe you are looking for

  • How do i decide what files iCloud does and does not upload/store?

    Hello, I am in the process of uploading my music to the iCloud. This includes music from the iMatch facility that I am subscribed to as well as other music that I need to upload because it's not available in the ITunes store. I have a question? How d

  • Blue screen of death when La Cie external firewire drive connected

    I tested a LaCie external firewire drive on my iMac and it worked fine. I packed it up well and posted it to a friend who gets the blue screen of death when the LaCie is connected to her iMac. She's not even trying to boot from it. My iMac is 9.1  an

  • MacPro 2,1 Videocard Upgrade Requirements for Final Cut Pro X ?

    I bought Final Cut Pro X in June, had no problem to install it on my MacPro 2,1 with processor 2 x 3 GHz Quad-Core Intel Xeon, RAM 4 GB and Graphic Card and  ATI Radeon X1900 XT 512 MB running under Mac OS Snow Leopard. Recently I upgraded RAM to 8 G

  • Is it possible to add other templates to the print module?

    If so, how? And is it possible to make a "package." In other words a template with multiple pages. For instance drop in one image and have it auto populate say 1 8x10 2 5x7 4 4x6 and 16 wallets on 81/2" x 11" sheets. Would be really great if you didn

  • Extension warning dialog box

    i get a warning when i delete, add or change a file's extension. it is driving me crazy. I know when i have performed this action, is there a way to shut off the warning?