Not able to get all the results if i use "get-spdeletedsite" command

Hi everyone,
I am not able to get all the results when I use the below powershell command.
get-spdeletedsite -limit all
It is giving me only one site, but infact we have more than 100 deleted sites.
If I use the normal command like below it is giving the below output
get-spdeletedsite
Can any one tell me, how can I get all the deleted sites ?
Best Regards
Anil Alladi

Hi  Anil,
For the Limit parameter of Get-SPDeletedSite cmdlet, when we specify its value to ALL, it  will return all site collections for the given scope.
For your scenario, the script “Get-SPDeletedSite –Limit ALL” will return all deleted site collections in your SharePoint environment.
If you want to get all deleted site, you can export the result to csv as below:
Get-SPDeletedSite | export-csv out.csv -notypeinformation
Reference:
http://technet.microsoft.com/en-us/library/hh286316(v=office.15).aspx
Best Regards,
Eric
Eric Tao
TechNet Community Support

Similar Messages

  • I am not able to upload all the contacts into icloud and get into my new iphone 6

    Hi I am trying to sync all the contacts in my old iphone 4 to iclud.
    and so not able to sync only my contacts i think i got all my photos synced.
    can any help me in that.

    Hi Kinnera2740,
    On the old phone go into Settings > Mail, Contacts, Calendars.  Are there any email accounts listed here?  Such as Google, Yahoo, Hotmail, etc?
    If so, tap on each of them and check the 'Contacts' option.  If it is turned on, this means that contact syncing is enabled for that account and that your contacts may already be synced to that mail account.
    Also check Settings > iCloud and look for the 'Contacts' option.  Is it enabled?  If so, then it is possible that some contacts could be synced to your iCloud account as well.  You can check to see which contacts are in which account by going to the Contacts app on your old phone and pressing the 'Groups' button in the top left corner.  You may see several groups here.  Uncheck all groups and then check each group one at a time to check and see how many contacts are synced to each account.  You may need to add the same mail accounts to your new phone and enable contact syncing to have the contacts from the mail servers sync down to the new phone. 

  • I get an error message saying "system overload, the audio engine was not able to process all the required data in time (10011)

    i get an error message saying "system overload, the audio engine was not able to process all the required data in time (10011)

    The thing is, that error message has been appearing when playing/recording a track that was running perfectly a few minutes ago and nothing has changed!
    That can mean, that your project is too ambitious for your Mac. Are you using many complicated automations on that track?
    4GB memory is not much, when doing audio processing. GarageBand will need all memory it can get, or will be forced to continually swap pages to your disk, to free RAM, and that can cause this error.
    When this error occurs, it is best to restart the computer. This will free your RAM. Close all other applications that are competing for memory, i.e. other multimedia applications, and Safari.
    Also, make sure, that you have plenty of free disk space. Don't let the free disk space drop below 20G.
    Where is your project located? On an external drive or your internal drive? If it is on an external drive, connect this drive directly, not daisy-chained, or move the project to your internal drive.
    I got up to eat, came back and tried to continue but GarageBand shuts down and displays that message every time I try to run the song. I've also recently run songs with several more tracks than this one and they worked perfectly. Any tips?
    Are your other projects, that worked perfectly, still working?

  • Not able to export all the rows into excel

    Hi All,
    I'm not able to export all the records in discoverer report to excel sheet.
    There are actually 27000 records in discoverer report, when i export them to excel sheet i can see only 16000 records.
    I'm using discoverer plus.
    Any suggestions...please share with me.
    Thanks in advance,

    Hi,
    Do you have parameters on the worksheet? if so then are you selecting same as when you ran it?
    What version are you using ? Plus? Viewer? Desktop?
    You can export the worksheet into CSV instead of XLS and see what you get.
    Also check other formats to see if this missing lines happen in all export methods or just the XLS.

  • Not able to see all the SAP tables from CR 2008

    Hi All,
    1)I am not able to see all the SAP database tables(DEV server) from Database expert menu in CR 2008. Only tables those start with alphabet letters upto A & B are visible. I checked the database connection>right click>options> found no filters as well.
    We are using the CR 2008 trial version with SAP ECC.
    2) When i am trying with Production Server of SAP ECC, I am not able to logon to the SAP from CR 2008. It is giving error message
    as : LOGON FAILED : User USER1 has no RFC AUTHORIZATION for function group SYST
    Please help me to resolve these. Thanks in advance.

    Thank you very much ingo.
    You helped me a lot.
    One more question, when I am trying for SAP database connections say for ex: 10.57.410.70, again and again some times the connection is getting saved in my connections with as new versions/variants like
    10.57.410.70_1 or so. How to overcome this.
    Thanks in advance ingo
    Badari

  • Hi I  newly started using Iphone 6, I am not getting all the applications list under Use Cellular date for to restrict my unwanted apps on cellular data

    Hi I  newly started using Iphone 6, I am not getting all the applications list under Use Cellular date for to restrict my unwanted apps on cellular data
    Please help me out

    Hi Rajesh778484,
    Welcome to the Apple Support Communities!
    I understand that some of your applications are not appearing under Settings > Cellular on your iPhone so that you can restrict or allow use of cellular data. If you have some installed applications on your iPhone that are not showing here, the first troubleshooting step I would suggest would be to reset your iPhone. Please refer to the attached article for information on how to perform a reset. 
    Restart or reset your iPhone, iPad, or iPod touch - Apple Support
    Best regards,
    Joe

  • I have updated my ipad yestarday sicne then i am not able to open any application on my ipad2. some of the application able to open in the page and not able to open all the applications in the second page. Does any one got this type of issue? any sugg?

    i have updated my ipad yestarday sicne then i am not able to open any application on my ipad2. some of the application able to open in the page and not able to open all the applications in the second page. Does any one got this type of issue? any suggestions?

    This problem has been reported a few times. The solution is to install any new App say a free one. This seems to fix whatever has gone wrong.

  • Not able to download all the rows to excel sheet from alv grid display

    Hi experts,
    I am not able to download all the rows which are displayed in alv grid display for some material numbers.
    for some materials i am able to download, i used two ways to download 1) from icon(local file) on grid 2) menu list->export.
    i checked in debugging till selecting the spread sheet pop up window, i am able to see all the data in internal table.
    Can you suggest me what will be the problem....
    thanks in advance,

    hi sandeep,
    sorry for didnt specify clearly.
    note: EX: "asaasdada  in this sentence i said  " this symbol is special character not the text.
    building final internal table code
    CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
        EXPORTING
          capid                 = p_capid
          datuv                 = sy-datum
          ehndl                 = '1'
          mktls                 = 'X'
          mehrs                 = 'X'
          mmory                 = '1'
          mtnrv                 = p_matnr
          stlal                 = '1'
          stpst                 = 0
          svwvo                 = 'X'
          werks                 = p_werks
          vrsvo                 = 'X'
        TABLES
          stb                   = i_stb
        EXCEPTIONS
          alt_not_found         = 1
          call_invalid          = 2
          material_not_found    = 3
          missing_authorization = 4
          no_bom_found          = 5
          no_plant_data         = 6
          no_suitable_bom_found = 7
          conversion_error      = 8
          OTHERS                = 9.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      i_stb1[] = i_stb[].
      IF NOT i_stb1[] IS INITIAL.
        SORT i_stb1 BY idnrk.
        DELETE ADJACENT DUPLICATES FROM i_stb1 COMPARING idnrk.
        SELECT bmatn ematn FROM ampl INTO TABLE i_ampl
          FOR ALL ENTRIES IN i_stb1
          WHERE bmatn = i_stb1-idnrk AND
                datuv LE sy-datum AND                          
                datub GE sy-datum.                              
        SELECT
        matnr
        bwkey
        verpr
        stprs
        bwprh
        FROM mbew
        INTO TABLE i_mbew
        FOR ALL ENTRIES IN i_stb1
        WHERE
            matnr EQ i_stb1-idnrk AND
            bwkey EQ i_stb1-werks.
        IF NOT i_stb1[] IS INITIAL.
          SELECT matnr werks beskz
                 dzeit webaz plifz                              
                 ekgrp                                         
          INTO TABLE i_marc
          FROM marc
          FOR ALL ENTRIES IN i_stb1
          WHERE matnr = i_stb1-idnrk
          AND werks = i_stb1-werks.
          SORT i_marc BY matnr werks.
        ENDIF.
        CLEAR i_ekpo.
        CLEAR i_vend.
        IF NOT i_stb1[] IS INITIAL.
          SELECT ebeln ebelp matnr werks loekz aedat
                 netpr peinh                                   
          INTO TABLE i_ekpo
          FROM ekpo
                FOR ALL ENTRIES IN i_stb1
                WHERE matnr = i_stb1-idnrk
                AND werks = i_stb1-werks.
          SORT i_ekpo BY matnr ASCENDING
                         aedat DESCENDING
                         ebeln DESCENDING
                         ebelp DESCENDING.
          IF NOT i_ekpo IS INITIAL.
            SELECT k~ebeln k~lifnr l~name1
            INTO TABLE i_vend
            FROM ekko AS k INNER JOIN lfa1 AS l
            ON k~lifnr EQ l~lifnr
            FOR ALL ENTRIES IN i_ekpo
            WHERE ebeln = i_ekpo-ebeln.
            SORT i_vend BY ebeln.
          ENDIF.
        ENDIF.
      ENDIF.
      i_ampl1[] = i_ampl[].
      IF NOT i_ampl1[] IS INITIAL.
        SORT i_ampl1 BY ematn.
        DELETE ADJACENT DUPLICATES FROM i_ampl1 COMPARING ematn.
        SELECT matnr mfrpn mfrnr FROM mara INTO TABLE i_mara
          FOR ALL ENTRIES IN i_ampl1
           WHERE matnr = i_ampl1-ematn.
      ENDIF.
      SORT i_ampl BY bmatn.
      IF NOT i_stb[] IS INITIAL.
        SELECT stlty stlnr stlkn stpoz idnrk potx1 potx2
        INTO TABLE i_stpo
        FROM stpo
        FOR ALL ENTRIES IN i_stb
        WHERE stlty = i_stb-stlty
          AND stlnr = i_stb-stlnr
          AND stlkn = i_stb-stlkn
          AND stpoz = i_stb-stpoz
          AND idnrk = i_stb-idnrk.
        SORT i_stpo BY stlty stlnr stlkn stpoz idnrk.
      ENDIF.
      LOOP AT i_stb INTO wa_stb.
        READ TABLE i_marc INTO wa_marc
        WITH KEY     matnr = wa_stb-idnrk
                     werks = wa_stb-werks
                     BINARY SEARCH.
        IF sy-subrc = 0.
          wa_outtab-beskz = wa_marc-beskz.
          wa_outtab-dzeit = wa_marc-dzeit.                      
          wa_outtab-webaz = wa_marc-webaz.                     
          wa_outtab-plifz = wa_marc-plifz.                     
          wa_outtab-ekgrp = wa_marc-ekgrp.                     
        ENDIF.
        READ TABLE i_ekpo INTO wa_ekpo
            WITH KEY matnr = wa_stb-idnrk.
        IF sy-subrc = 0.
          wa_outtab-netpr = wa_ekpo-netpr.                     
          wa_outtab-peinh = wa_ekpo-peinh.                     
          READ TABLE i_vend INTO wa_vend
          WITH KEY ebeln = wa_ekpo-ebeln
                   BINARY SEARCH.
          IF sy-subrc = 0.
            wa_outtab-lifnr = wa_vend-lifnr.
            wa_outtab-name_sup = wa_vend-name1.
          ENDIF.
        ENDIF.
        READ TABLE i_stpo INTO wa_stpo
        WITH KEY stlty = wa_stb-stlty
                 stlnr = wa_stb-stlnr
                 stlkn = wa_stb-stlkn
                 stpoz = wa_stb-stpoz
                 idnrk = wa_stb-idnrk
                 BINARY SEARCH.
        IF sy-subrc = 0.
          wa_outtab-potx1 = wa_stpo-potx1.
          wa_outtab-potx2 = wa_stpo-potx2.
        ENDIF.
        READ TABLE i_mbew INTO wa_mbew
        WITH KEY
        matnr = wa_stb-idnrk
        bwkey = wa_stb-werks.
        IF sy-subrc IS INITIAL.
          MOVE:
          wa_mbew-verpr TO wa_outtab-verpr,
          wa_mbew-stprs TO wa_outtab-stprs,
          wa_mbew-bwprh TO wa_outtab-bwprh.
        ENDIF.
        wa_outtab-matnr = p_matnr.
        wa_outtab-posnr = wa_stb-posnr.
        wa_outtab-stufe = wa_stb-stufe.
        wa_outtab-idnrk = wa_stb-idnrk.
        wa_outtab-ojtxb = wa_stb-ojtxp.
        wa_outtab-menge = wa_stb-menge.
        wa_outtab-meins = wa_stb-meins.
        MOVE: wa_stb-zzitem_draw_no TO wa_outtab-zzitem_draw_no.
        IF wa_stb-upskz = 'X'.
          SELECT * FROM stpu INTO TABLE i_stpu
                   WHERE  stlty = wa_stb-stlty AND
                          stlnr = wa_stb-stlnr AND
                          stlkn = wa_stb-stlkn AND
                          stpoz = wa_stb-stpoz.
        ENDIF.
        LOOP AT i_stpu INTO wa_stpu.
          wa_outtab-upmng = wa_stpu-upmng.
          wa_outtab-ebort = wa_stpu-ebort.
          wa_outtab-uposz = wa_stpu-uposz.
          CONCATENATE v_ebort wa_stpu-ebort      INTO v_ebort
          SEPARATED BY space.
        ENDLOOP.
        MOVE strlen( v_ebort ) TO v_len.
        MOVE: 0 TO x,
          128 TO y.
        DATA : lt_tab TYPE TABLE OF swastrtab.
        DATA : ls_tab LIKE LINE OF lt_tab.
        DATA : lv_ebort TYPE string.
        CLEAR lv_ebort. CLEAR lt_tab.
        MOVE v_ebort TO lv_ebort.
        CALL FUNCTION 'SWA_STRING_SPLIT'
          EXPORTING
            input_string                 = lv_ebort
            max_component_length         = 128
          TABLES
            string_components            = lt_tab
          EXCEPTIONS
            max_component_length_invalid = 1
            OTHERS                       = 2.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        IF lt_tab[] IS NOT INITIAL.
          LOOP AT lt_tab INTO ls_tab.
            CLEAR lv_ebort.
            MOVE: ls_tab-str TO lv_ebort.
            CONDENSE lv_ebort.
            MOVE lv_ebort TO wa_outtab-ebort.
            APPEND wa_outtab TO i_outtab.
            CLEAR:
            wa_outtab-matnr,
            wa_outtab-posnr,
            wa_outtab-zzitem_draw_no,
            wa_outtab-ojtxb,
            wa_outtab-menge,
            wa_outtab-meins,
            wa_outtab-uposz,
            wa_outtab-upmng,
            wa_outtab-verpr,
            wa_outtab-stprs,
            wa_outtab-bwprh,
            wa_outtab-lifnr,
            wa_outtab-name_sup,
            wa_outtab-potx1,
            wa_outtab-potx2,
            wa_outtab-netpr,
            wa_outtab-peinh.
    *        wa_outtab-idnrk.
          ENDLOOP.
        ELSE.
          APPEND wa_outtab TO i_outtab.
        ENDIF.
        CLEAR v_ebort.
        CLEAR: wa_stpu.
        REFRESH: i_stpu.
        LOOP AT i_ampl INTO wa_ampl WHERE bmatn = wa_stb-idnrk.
        READ TABLE i_mara INTO wa_mara WITH TABLE KEY matnr = wa_ampl-ematn.
          IF sy-subrc = 0.
            LOOP AT i_outtab INTO wa_outtab
            WHERE
            idnrk = wa_stb-idnrk AND
            flag NE 'X'.
              wa_outtab-mfrpn = wa_mara-mfrpn.
              wa_outtab-mfrnr = wa_mara-mfrnr.
              SELECT SINGLE name1 FROM lfa1 INTO wa_outtab-name1 WHERE lifnr = wa_mara-mfrnr.
              MOVE 'X' TO wa_outtab-flag.
              MODIFY i_outtab FROM wa_outtab
              TRANSPORTING mfrpn mfrnr name1 flag.
              EXIT.
            ENDLOOP.
            IF sy-subrc <> 0.
              CLEAR:
              wa_outtab-matnr,
              wa_outtab-posnr,
              wa_outtab-zzitem_draw_no,
              wa_outtab-ojtxb,
              wa_outtab-ebort,
    *          wa_outtab-idnrk,
              wa_outtab-menge,
              wa_outtab-meins,
              wa_outtab-uposz,
              wa_outtab-upmng,
              wa_outtab-verpr,
              wa_outtab-stprs,
              wa_outtab-bwprh,
              wa_outtab-lifnr,                                 
              wa_outtab-name_sup,                              
              wa_outtab-potx1,                                 
              wa_outtab-potx2,                                 
              wa_outtab-netpr,                                 
              wa_outtab-peinh.                                 
              wa_outtab-mfrpn = wa_mara-mfrpn.
              wa_outtab-mfrnr = wa_mara-mfrnr.
              SELECT SINGLE name1 FROM lfa1 INTO wa_outtab-name1 WHERE lifnr = wa_mara-mfrnr.
              APPEND wa_outtab TO i_outtab.
            ENDIF.
          ENDIF.
          REFRESH i_stpu.
          CLEAR i_stpu.
        ENDLOOP.    CLEAR: wa_matnr1, wa_mfrnr, wa_outtab.
      ENDLOOP.
    Edited by: srinivasareddy j on Mar 9, 2011 7:16 AM
    Edited by: srinivasareddy j on Mar 9, 2011 7:20 AM

  • Not able to see all the records thru RSA3.

    Hello All,
    I am checking 0VALUATION_TEXT extractor on R/3 using RSA3 Tcode.
    It is showing only 3 records.
    When I am loading this Text Master data through InfoPackage, the records were loaded from R/3 to PSA itself is 6.
    Why I am not able to see all the records in RSA3.
    Kindly Help me out in this.
    Thanks,
    Geetha

    Hi Geetha,
    Check the data, It seems loded data was 3 records for 2 languages.
    In RSA3 it is showing 3 records for EN language.
    Assign points if it helps...
    Regards,
    ARK

  • Well im not able to updated all the events I had in the imovie, HELP

    Well im not able to updated all the events I had in the imovie, HELP

    I have started preparing a small Database application
    using JDBC with Swing.
    I want to dispaly all the Table names which are
    present in the Access Data Source. When i used the
    Standard query for this "Select * from Tab" as in
    SQL, an eror saying that "not able to resolve symbol
    'Tab' ".
    Can anybody please help me out to display the table
    names?That query
    Select * from tabwould work only for Oracle, as far as I know. There is no system table called Tab in Access.
    ***Annie***

  • Users not able to see all the default reports in FDM under analysis

    All,
    Users in FDM are not able to see all the default reports which will be available under Analysis. I have checked the MenuNavigation and MenuNavigationItems under object maintainence in FDM which have "ALL" as the provisioning level. I am not sure where the issue is as the users still not able to see the reports. Please advise if there is something that can be done in workbench.
    Regards

    You can set security on Report folders in workbench.  You would go to the report tab in workbench, and right click on a Folder (Cannot do it on the individual report, it has to be on the folder), and you can assign security levels to the report folder.  There are some in here that default to the admin level but you can override it.
    Regards
    JTF

  • Not able to download all the stubs using the WSDL provided for Contact.

    Hi All,
    I am using wsdl2java to download stubs from the wsdl for contact using axis.
    But i am not able to download all the files from the wsdl.
    I am not able to see ListofContactData.java file in the stubs created,but i a can see in the that in wsdl.
    Anybody can help me in this issue.
    Thanks & Regards
    Amith B N

    Hi Guys..
    please post the solution clearly. I have the same problem and have to complete the development in short span..
    Please mates.. Hope u ppl will help on time.. if possible.. send me the document.
    refer my build.xml which i used for Version 1.0 in the below link.
    Re: wsdl v2.0 vs V1.0
    My mail id : [email protected]
    Regards
    Balaji Tr.

  • HT4623 I still can't update, i get error 3252 every time, after over 500mb is downloaded, not happy to waste all the data i could use for other things

    I still can't update, i get error 3252 every time, after over 500mb is downloaded, not happy to waste all the data i could use for other things.
    is there another way i can download the update? it just never work, tried multiple time

    The most common causes are:
    Your antivirus, firewall or router security is blocking access to Apple's servers - try temporarily disabling them - if you have Kaspersky this is definitely the problem
    At some time in the past you used this computer to jailbreak, unlock or otherwise hack ANY iPhone, iPod Touch or iPad - if this applies to you your hosts file is corrupt and you will have to edit it and remove any lines that contain "gs.apple.com"

  • To get all the objects that are used inside the class

    Hi All,
    All i wanna know is to get all the objects that are used inside the class.
    Ex :
    Class A{
    Emp e;
    public add(Dept d){
    e.deptid = d.deptId;
    in this class i have two objects, one Emp obj and another Dept object.
    I wanna get the details abt this class Emp and Dept by simply parsing the file and by not loading this class in JVM.
    Could any pls hel me out.??
    thx.

    I wanna get the details abt this class Emp and Dept
    by simply parsing the file and by not loading this
    class in JVM.Your problem statement is vague and the constraint is IMO hypothetical.

  • Mysql query not getting all the results, works fine in php

    Hi All,
    I have a slightly big query which works fine in php getting 400 results but in java I get only 14 results when I traverse through resultset. Here is the query
    (select t1.to_uri as inv_to_uri, t1.sip_to as inv_sip_to, t1.sip_callid as inv_callid, t1.time as inv_time, t1.fromtag as inv_fromtag, t1.sip_status as inv_status, t2.to_uri as bye_to_uri, t2.sip_to as bye_sip_to, t2.sip_callid as bye_callid, t2.time as bye_time, t2.fromtag as bye_fromtag, t2.totag as bye_totag, t2.from_uri as bye_from_uri, t2.sip_from as bye_sip_from, sec_to_time(unix_timestamp(t2.time)-unix_timestamp(t1.time)) as length, ifnull(t1.time, t2.time) as ttime , 'outgoing' as call_type from acc t1 left outer join acc t2 on t1.sip_callid=t2.sip_callid and ((t1.totag=t2.totag and t1.fromtag=t2.fromtag) or (t1.totag=t2.fromtag and t1.fromtag=t2.totag)) and t2.sip_method='BYE' where t1.sip_method='INVITE' and (t1.username='manoj' and t1.domain='mantragroup.com') and t1.caller_deleted != '1' ) union (select t1.to_uri as inv_to_uri, t1.sip_to as inv_sip_to, t1.sip_callid as inv_callid, t1.time as inv_time, t1.fromtag as inv_fromtag, t1.sip_status as inv_status, t2.to_uri as bye_to_uri, t2.sip_to as bye_sip_to, t2.sip_callid as bye_callid, t2.time as bye_time, t2.fromtag as bye_fromtag, t2.totag as bye_totag, t2.from_uri as bye_from_uri, t2.sip_from as bye_sip_from, sec_to_time(unix_timestamp(t2.time)-unix_timestamp(t1.time)) as length, ifnull(t1.time, t2.time) as ttime , 'outgoing' as call_type from acc t1 right outer join acc t2 on t1.sip_callid=t2.sip_callid and ((t1.totag=t2.totag and t1.fromtag=t2.fromtag) or (t1.totag=t2.fromtag and t1.fromtag=t2.totag)) and t1.sip_method='INVITE' where t2.sip_method='BYE' and isnull(t1.username) and (t2.username='manoj' and t2.domain='mantragroup.com') and t2.callee_deleted != '1' ) order by ttime DESC limit 100,50
    Also this queru works fine on mysql console getting all 400 results. Please tell me what might be going wrong in Java.
    Thanks for your help and time,
    Manoj.

    How do you know you're doing the same query in PHP, MySQL, and the console?
    What's the code that's executing this?
    There's nothing intrinsically wrong with the query, although it's a bit messy - surely it could be simplified from that?
    Please format queries before posting in future. Also, did you really mean to let us know your company name and the name of a user? Seems a bit indiscrete.
         select
            t1.to_uri as inv_to_uri,
            t1.sip_to as inv_sip_to,
            t1.sip_callid as inv_callid,
            t1.time as inv_time,
            t1.fromtag as inv_fromtag,
            t1.sip_status as inv_status,
            t2.to_uri as bye_to_uri,
            t2.sip_to as bye_sip_to,
            t2.sip_callid as bye_callid,
            t2.time as bye_time,
            t2.fromtag as bye_fromtag,
            t2.totag as bye_totag,
            t2.from_uri as bye_from_uri,
            t2.sip_from as bye_sip_from,
            sec_to_time(unix_timestamp(t2.time)-unix_timestamp(t1.time)) as length,
            ifnull(t1.time, t2.time) as ttime ,
            'outgoing' as call_type
         from
            acc t1
         left outer join
            acc t2
         on
            t1.sip_callid=t2.sip_callid
         and
            (  (t1.totag=t2.totag and t1.fromtag=t2.fromtag)
            or (t1.totag=t2.fromtag and t1.fromtag=t2.totag))
         and
            t2.sip_method='BYE'
         where
            t1.sip_method='INVITE'
         and
            (t1.username='manoj' and t1.domain='mantragroup.com') and t1.caller_deleted != '1'
    union
         select
            t1.to_uri as inv_to_uri,
            t1.sip_to as inv_sip_to,
            t1.sip_callid as inv_callid,
            t1.time as inv_time,
            t1.fromtag as inv_fromtag,
            t1.sip_status as inv_status,
            t2.to_uri as bye_to_uri,
            t2.sip_to as bye_sip_to,
            t2.sip_callid as bye_callid,
            t2.time as bye_time,
            t2.fromtag as bye_fromtag,
            t2.totag as bye_totag,
            t2.from_uri as bye_from_uri,
            t2.sip_from as bye_sip_from,
            sec_to_time(unix_timestamp(t2.time)-unix_timestamp(t1.time)) as length,
            ifnull(t1.time, t2.time) as ttime ,
            'outgoing' as call_type
         from
            acc t1
         right outer join
            acc t2
         on
            t1.sip_callid=t2.sip_callid
         and
            (  (t1.totag=t2.totag and t1.fromtag=t2.fromtag)
            or (t1.totag=t2.fromtag and t1.fromtag=t2.totag))
         and
            t1.sip_method='INVITE'
         where
            t2.sip_method='BYE'
         and
            isnull(t1.username)
         and
            (t2.username='manoj' and t2.domain='mantragroup.com')
         and
            t2.callee_deleted != '1'
    order by ttime DESC limit 100,50

Maybe you are looking for

  • Flex 2.0 - Combo box /TextField Population

    Hi, This is my first post on this forum. I have downloaded a trial version of Flex 2.0, and I am creating a small application. I have a combo box that has a few items( around 6 options), when these items are selected a text box should update with tex

  • Add Days To Date

    Hi Everyone, I have been reading about adding an onchange event to a field in a form. My dilemma is below; I have a form where there is a date field that shows the end date of something. I want to auto populate another field with that same end date p

  • Operating system commands

    Q]     `What do we mean by operating system commands Like we use in the OPEN DATASET STATEMENT OPEN  DATASET <dsn>  FILTER<filt>. Q]      What all system commands are available with M/S & Unix----or rather how to see them?

  • Rounded corners BUT with negative numbers

    In illustrator it's very easy to round the corners of a rectangle. But what if you wanted to get the effect of a rectangle whose corners round inward instead of out. I've tried assigning a negative value to the rounded corner dialog box, but illustra

  • Layers, not lock but can't see other layers

    I was trying a new option I read in photoshop about changing brush size by using control & option to size instead of command; bracket no problem but how do I get back to com;bracer and also what did I do because now when I open up other layers ,like