Query for back 2nd motnh first day and last day

Any body please provide me the query for back 2nd month first day to back 2nd month last day?
last month first day
TIMESTAMPADD(SQL_TSI_MONTH,-1, TIMESTAMPADD(SQL_TSI_DAY, -(DAY(CURRENT_DATE)-1), CURRENT_DATE))
last month last day
TIMESTAMPADD(SQL_TSI_DAY, -(DAY(CURRENT_DATE)), CURRENT_DATE)
anyone please provide me the queries for previous months like above queries?
2nd back month first day --?
2nd back month last day--?
3rd back month first day --?
3rd back month last day --?

Hi,
Check with this...
Previous month last day -
TIMESTAMPADD(SQL_TSI_DAY, DAYOFMONTH(CURRENT_DATE)*-1, CURRENT_DATE)
Last day of 2nd month -
TIMESTAMPADD(SQL_TSI_MONTH,-1,TIMESTAMPADD(SQL_TSI_DAY, DAYOFMONTH(CURRENT_DATE)*-1, CURRENT_DATE))
Last day of 3rd month -
TIMESTAMPADD(SQL_TSI_MONTH,-2,TIMESTAMPADD(SQL_TSI_DAY, DAYOFMONTH(CURRENT_DATE)*-1, CURRENT_DATE))
(OR)
Previous month last day -
TIMESTAMPADD(SQL_TSI_DAY, DAYOFMONTH(CURRENT_DATE)*-1, CURRENT_DATE)
Last day of 2nd month -
TIMESTAMPADD(SQL_TSI_DAY,DAYOFMONTH(TIMESTAMPADD(SQL_TSI_DAY, DAYOFMONTH(CURRENT_DATE)*-1, CURRENT_DATE))*-1,TIMESTAMPADD(SQL_TSI_DAY, DAYOFMONTH(CURRENT_DATE)*-1, CURRENT_DATE))
Last day of 3rd month -
TIMESTAMPADD(SQL_TSI_DAY, DAYOFMONTH(TIMESTAMPADD(SQL_TSI_DAY,DAYOFMONTH(TIMESTAMPADD(SQL_TSI_DAY, DAYOFMONTH(CURRENT_DATE)*-1, CURRENT_DATE))*-1,TIMESTAMPADD(SQL_TSI_DAY, DAYOFMONTH(CURRENT_DATE)*-1, CURRENT_DATE)))*-1,TIMESTAMPADD(SQL_TSI_DAY,DAYOFMONTH(TIMESTAMPADD(SQL_TSI_DAY, DAYOFMONTH(CURRENT_DATE)*-1, CURRENT_DATE))*-1,TIMESTAMPADD(SQL_TSI_DAY, DAYOFMONTH(CURRENT_DATE)*-1, CURRENT_DATE)))
Regards,
Srikanth

Similar Messages

  • Anybody got a better work flow for backing up multiple shoot day projects?

    Many of my projects are shot over multiple days. I import media at the end of each day and back up the event to another drive before deleting media from cameras/cards. So on day 2 I have one of three work flows for updating my back-ups.
    1. If I'm feeling lucky. I delete the previous back-up project from the back-up drive. And then make a new copy of the original event and add the date to the title after the word copy.
    2. I make a new copy of the event to the backup drive and date it. When it's done copying and been verified I delete the back-up event from the same back-up drive.
    3. I've just started copying new clips from the original media folder in the original event to the back-up project. It's more work keeping track of all the newly added media files and there is more chance of making an ommision.
    Anybody got a better work flow for backing up multiple shoot day projects?

    What you need:
    You will need two identical external drives and a copy of Carbon Copy Cloner. CCC is free. The drives could be USB 2 if all you are doing is backing up. If you plan on editing with the drive(s), you'll want firewire. Each needs to be large enough to contain the raw card contents for the duration of your gig.
    The Process:
    At the end of the first day's recording, connect the two drives to your computer (if firewire, daisy chain them / if USB, you'll need two USB 2.0 ports)
    On the first hard drive (Drive 1) create a folder - call it BigDealLecture
    Inside of BigDealLecture, create a folder and use the nameing convention  "BDL_Date_card number for that day" - so if you used 2 cards today, you should create BDL_2012-02-15_01 and BDL_2012-02-15_02
    Attach your card reader or camera to the system.
    Lock the cards so they can not be erased
    Insert Card 1 into the reader
    Select ALL contents of the card and copy them to the folder you created for the first card for today
    When it is complete, eject the card, insert card 2, copy its contents to the folder for card 2
    eject the card
    Launch CCC and do a clone of Drive 1 to Drive 2. You can set it to do a complete block by block clone or an incremental backup. Either will work.
    When finished cloning, test a random sample of the clips on both drives to make sure they work.
    When satisfied the copies work, put Drive 2 in the hotel safe.
    Put the Drive 1 in a place where you can grab it if there is an emergency in the night and erase the cards to get ready for the next day.
    Take Drive 1 with you to the lecture site the next day.
    Rinse and repeat daily.
    When the conference is over, send one of the drives via FedEx or some other same day service to your office. Pack the second drive in your bags for the trip home.
    A note: If you have enough downtime durning the conference between obligations, you can do the transfer from the cards to Drive 1 on site and do the clone when you get back to your room. Don't unlock and erase the cards until you are satisfied the copy/clone process was without incident.
    Have fun.
    x

  • Query for geetiing no.of working days

    Hi All,
    How can we write a query for geetiing no.of working days in Oracle Apps.
    Basically we need to mention no.of working days in the Work-Flow Form but not the no.of days.
    So how can we write a query for getting no.of working days.and Where can we get the tables?
    Is there any need of calendar in WIP(Work in Process) Module?
    Can any one please help me out.
    Thanks in Advance,
    Dhana

    Hi,
    Please see if these documents help.
    Note: 43276.1 - Calculating the Number of Working Days
    Note: 1018913.102 - How to Find Number of Days - Valid Working Days - Between Two Dates
    Regards,
    Hussein

  • When I cull through my images in the filmstrip everytime I use my right arrow and rate a photo it jumps back to the first thumbnail and i have to arrow all the way back to where I left off.  Is this a setting issue

    When I cull through my images in the filmstrip everytime I use my right arrow and rate a photo it jumps back to the first thumbnail and i have to arrow all the way back to where I left off.  Is this a setting issue

    Art,
    I am trying to follow your very precise steps, and in my case (PSE11 also, Win7), the focus stays on the edited picture after I return from the editor to the Organizer. I am pretty sure that in the previous post describing your situation, I was able to reproduce the problem, but I don't remember on which version. I just tried in 'Folders' view mode to edit in a selected folder, then I clicked 'All media' so that no folder was selected. Same result in both cases.
    Even if you prefer to work in folders view, you could take advantage of the ability to use 'albums'. It's a misleading word to describe a selection, a 'collection' of pictures, which you can sort as you want. It's a kind of  'playlist' like with music items. In the organizer, you can select a folder and create an album (even a temporary one) just by choosing 'create instant album'. Suppose you have made an album from a folder or a selection of highlighted pictures to edit. You can order them in date order, import batch or 'custom' order'. Since PSE12 you can also sort them in filename order. You should never lose the 'focus' on your last edited picture when coming back from the editor to the organizer. If the purpose of that album is only to help in organizing an editing session, you simply delete the album (the playlist) if you don't want to keep the list afterward.
    I hope someone will be able to confirm how that can happen...
    Edit;
    I have just read Brian's post.
    That may be the difference...

  • Do I still need to use the old mobile me backup system for backing up a mac desktop and if I delete it will it affect the memory of my system which has now Maverics

    Do I still need to use the old mobile me backup system for backing up all my data and having it able to get at in case of a crash, or can the icloud reset everything? Because I can not find any structured refrence, as to how it would be done. I am updated to Maverics. Also does the icloud continue if I uninstall the backup to free up space?

    MobileMe was discontinued in 2012 and all the data stored on it was deleted, and iCloud can't make backups of Macs.
    What I recommend you to make backups is to get an external drive and use Time Machine or an application like Carbon Copy Cloner. With this, you can access to your data everywhere and safely, and then, if you want, use a cloud storage service like CrashPlan. You can keep on using iCloud without backups

  • First Name and Last Name goes missing while doing a Request Download for BP

    Hi Friends,
    We started doing a request download for some of the BP's from ECC to CRM. For some BP's the download was working fine but for some BP's the first name and last name are missing. Kindly suggest how do we correct these BP's and how can we restrict this issue not to happen while doing a request download. The object with which we are doing the download is CUSTOMER_MAIN.
    Regards,
    Jan.

    Check if first and last name exist in the Bdoc in SMW01. If it is missing in the BDoc,  that means it is not transferred in BAPI structure to CRM.
    You can check modules CRS_SEND_TO_SERVER on R/3 side, to check the BAPI structures , for presence of first and last names. Then in CRM, you can de-register the queue in txn:SMQR, debug the queue entry , and put a breakpoint in mapper module(which you can find from txn. R3AC1) to check for the incoming BAPI data.

  • Alternative for first-child and last-child

    Hi all,
    I am looking to style a ListView with rounded corners (similar to iOS), but so far, I have not been able to find a way to do this without first-child and last-child pseudoselectors, which are not supported in JavaFX, according to http://docs.oracle.com/javafx/2/api/javafx/scene/doc-files/cssref.html.
    Simply setting rounded corners on a ListView causes the ListCells to pop out, unless I set rounded corners on them as well. But I only want to to this on the top and bottom child.
    Does anyone have a workaround for this ?

    Can't you solve it by setting a border on the top and the bottom of your listview?

  • History - turn on columns "First Visited" and "Last Visited" replacing/instead of "Visit Date"?

    Sometime before Firefox 3.x, in the History window -- it would show you columns of "First Visited" and "Last Visited".
    Now you only get "Visit Date" which is equivalent to "Last Visited".
    * Question -- anyone know how to bring back the "First Visited" column to the History window?
    * I looked in about:config and couldn't find anything.
    * I searched for a Addon and didn't find a current one. (There used to be an Addon called Extended History Manager that would show that column but an administrator disabled the download page for it.)
    * Anyone know how to bring back the "First Visited" column?
    Having that column by default in the Mozilla suite browser. (pre Firefox) was awesome! And at least in Firefox 1 and 2 you could use Extended History Manager Addon. I miss "First Visited"! :(

    Hi Fractalogic, this support forums doesn't work very well as a suggestion box because of the volume of posts and the audience reading it. You can try the following to get more visibility on the proposal:
    * Help > Submit Feedback
    * Filing a request for enhancement on https://bugzilla.mozilla.org/
    You might also try recruiting any developer that created a useful history-related add-on to incorporate this feature.

  • Different Footer on First page and last pages

    Hi
    I am trying to display Continue on first page and middle pages and Total Amount on last page on a multipage PO. I can display different footer page for first page and last page but the middle pages don't have a footer. How to do this if possible. There are so many threads here but not one gives the exact steps.
    first page header footer
    Add Page Break
    2nd page header footer
    Add Section Break => Next Page
    <?start@last-page-first:body?><?end body?>
    last page footer
    Please help
    Thanks

    Did you miss this ?
    http://winrichman.blogspot.com/search/label/different%20page%20header
    http://winrichman.blogspot.com/search/label/element%20in%20header
    http://winrichman.blogspot.com/search/label/diff%20header

  • Getting  approver first name and last name

    Hi,
    Im using Multi Approval sub process for sending Approval request to multiple approvers, im unable to get the first name and last name of the approver who had responded to it.

    Hello,
    The <ref>Actual_Approver</ref> should bring you back the accountId for the actual approver for that item. Depending on how your setup is you should be able to take that information and call out to your resource and bring back that user's specific attributes. Granted your internal accountId, and your resource account Id are probably not the same so you might have to do some massaging, but you can get what you need....There should be a way to do it internally also..references the fullname attibute..but off the top of my head I can't think of a way to do that.
    Hope this helps.

  • JPDK : first name and last name

    hi
    Using JPDK, I would like to build a portlet that displays the Portal user's first name and last name. (This information was provide when I created the Portal user.)
    Seems to me that this should not be difficult, but I don't know what API I'm supposed to use.
    Suggestions anyone?
    tnx
    -Jan

    hi
    In 9iAS r2, Oracle Portal uses Oracle Internet Directory to store data about a Portal user.
    Would it be "good practice" to use the information returned from ProviderUser.getName() to query OID for the first name and last name?
    If not, what is the "intended way" to do this?
    tnx
    -Jan

  • Function module(first name and last name as a parameter with table)

    hi,
    i just want to know how i match input value in function module with the self created ztable first name and last name as a parameter in function module(import).
    regards
    Ankur

    thanks for your help actually i am concatename first_name last_name into full_name
    import parameter
    FIRST_NAME like ZANKUR-FNAME first name
    LAST_NAME like ZANKUR-LNAME last name
    export parameter
    full_name like zankur full name
    excaption
    error if name not matched
    source code
    concatename first_name last_name into full_name

  • Function Module to get pernr number based on first name and last name

    Hi All,
    What is the Function Module to get pernr number based on first name and last name.
    Could you please help me.
    T@R.
    Vidya

    hi Vidya,
    you can get perner from PA0002 based on firs name and last name.
    use select query and get perner.

  • In which table I can get the Contact full name(First name and Last name)

    Hi,
    In  which table, I can get the field for Contact Person Full  name. In many tables Iam seeing FIRST NAME and LAST NAME as two fields.
    Regards
    Babu.

    You can use FM "CRM_BUPA_DESCRIPTION_READ".
    regard,
    vijay.

  • First name and last name order in contact list

    Actually, my contact list is displayed with the last name before the first name, but everything is fine in Address Book settings (I choosed "First name, Last name" option), and I checked that first name and last name has not been reversed for some reasons between two fields, the first name is right in place, as is the last name.
    So changing this is AddressBook has no effect.
    I tried disabling Chax, without success.
    It could be possible this problem occured when I enabled Microsoft Exchange address book synchronization, (iSync reported 500+ changes in AB database, I did it anyway and noticed no problems in data after synchronization (I still have a backup :-))
    One more thing , the displayed name in the iChat menu extra is correct.
    So, what could possibly change this behavior I did not already check ?
    Powerbook Aluminium 15" 1,2GHz | iPod | iPod Shuffle | iSight | MX900   Mac OS X (10.4.6)  

    Hi Yann,
    If you add details to the Address card in iChat as you add a Buddy then you need the first set of instructions I posted.
    You nee this menu in iChat http://www.flickr.com/photos/90943061@N00/135575605/
    In the second section of this menu you can sort the list.
    <hr>
    Ahhh. I see what you mean.
    iChat does in fact always display First Name, Last Name as you say.
    Adding a Buddy with the names in the reverse order to display as you want in iChat your Address book gets messed up as it is not consistent with those contacts that are not iChat Buddies.
    The only work around I can see is to change all the Address Book entries to match a reverse entry in iChat and then use the Address Book option to display Last Name, First name to show them the 'correct' Fist name, Last name and have them in Last name, First name in iChat.
    11:06 PM Wednesday; April 26, 2006

Maybe you are looking for

  • HT5621 What do you do when you've lost access to your e-mail and your apple ID and have no way to reset them? (with the find my iPhone feature enabled)

    Hi I've lost access to my e-mail and my apple ID. No way to reset them. It's a hotmail email address and Microsoft is refusing to reset it even after I provided all the necessary proof of ownership. 2 problems: I can't switch to a new apple id and lo

  • How i got PE8 and windows 7 64 bit to work for me

    First off, i have an ati video card, so if your issue is with your nvidia card there is help in the link i'm going to point you to, but i didn't have to try that out. When i would run pe8 on windows 7 64 the display wouldn't work at all, and the prog

  • MAIL cannot update your mailboxes---error in MAIL 2.1

    "MAIL cannot update your mailboxes---" Have 26 Gb of space left and found the fix to delete the Envelope Index file. I moved Envelope Index to the DT and relaunched MAIL. It seemed to import 1200 items, then it just goes to colored wheel of death. Ha

  • HVDVD_TS

    I have a problem. After editing a film and exporting to DVD studio Pro, I burned the files to DVD. The file on the DVD is HVDVD_TS, it won't play in my Imac G5 isignt or any DVD player, but will play in my Macbook Pro (why is this)and a friends brand

  • Problem with analytic function

    Hi , I have table with fields : ID ,BUG_ID ,COMMENT_TEXT sample values are ID BUG_ID COMMENT_TEXT 1 2 test1 2 3 test1 3 2 test2 4 5 test1 5 5 test2 6 2 test3 and I am using following script to get the output like : BUG_ID CMNT_TEXT1 COMNT_TEXT2 CMNT_