Best way to produce reports if the data model is in RDBMS

we have database available in RDBMS.we will have to create reports out of that database.
Anyone suggest me best way(by considering all the factors) to get the reports if database is in RDBMS.
what are all need to follow in physical layer and what are all need to follow in BMM layer.

Thanks saichand for the response.
Ex: lets say,if there are 25 tables in the database(in RDBMS,there are lot of joins exists between the tables like A->B->C->D->E->F->G->H, in this case if report is from A,E and G then which way i will have to create view in the physical layer)
i have arrraged tables and columns below for better understanding
A B c D E F G
A1(pk) B1(PK) C1(PK) D1(PK) E1(PK) F1(PK) G1(PK)
A2 A1(fk) B1(fk) C1(fk) D1(fk) E1(fk) F1(fk)
A3 B2 C2 D2 E2 F2 G2
from the above tables and columns,if the report should be with A1,E1,E3,G1,G2 fields in that case how to create view in the physical layer.
for each and every report do we need to create seperate view?
can you please elaborate the procedudure in different situations?
Thanks in Advance.
Edited by: user12077461 on Feb 5, 2011 7:59 AM

Similar Messages

  • Best way to generate report on huge data table

    Hi,
    I am using Oracle11g.
    I want to generate reports on transaction tables containing huge amount of data, on which very frequently DMLs are performing in real time.
    i want to keep my report/result in RESULT_CACHE for 15 mins. active. whenever any insert/update runs on main tables the RESULT_CACHE is getting invalidated
    my question is can i control/stop RESULT_CACHE relies on(table_name) invalidating, as Oracle11g invalidating RESULT_CACHE automatically.
    my requirement is to not hit the main table again&again.
    pls help..
    Thanks in advance.
    Vinod

    910575 wrote:
    Hi,
    I am using Oracle11g.
    I want to generate reports on transaction tables containing huge amount of data, on which very frequently DMLs are performing in real time.
    i want to keep my report/result in RESULT_CACHE for 15 mins. active. whenever any insert/update runs on main tables the RESULT_CACHE is getting invalidated
    my question is can i control/stop RESULT_CACHE relies on(table_name) invalidating, as Oracle11g invalidating RESULT_CACHE automatically.
    my requirement is to not hit the main table again&again.
    pls help..
    It sounds as if you're trying to avoid contention on a very busy large table while users are experimenting with relatively small fractions of the total data set. The type of thing you're doing is probably about the best approach - though it sounds as if you are not using global temporary tables which could save you a bit of time and contention when refreshing each private data set.
    Ideally, though, you probably want a front end tool that does client-side caching - i.e. pulls the data into the front-end tool and lets the user rearrange it cosmetically there until the user explicitly requests a new trip to the database. I think Oracle Discoverer has (had) some capability in this area. What's the scale of the work the users are doing - can you give us a few scenarios about how much raw data they will extract and what they want to do with it before they refresh it ?
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    Author: <b><em>Oracle Core</em></b>
    P.S. Oracle does have client-side caching technology - but your ability to use it is dependent on the tools you use. You might want to go over to one of the developer or BI forums to see what they say about this problem; they may give you a different perspective on it.
    Edited by: Jonathan Lewis on Jan 31, 2012 6:55 PM

  • Best way to show Reports

    Hi All !
    I am new to this Java developer forum, and trying to find the Best way to Display Reports from the Data base as cristal Reports,
    Is any easy way to implement this in my Java Project?
    with Regards
    vinoth

    Hi,
    This forum is exclusively for questions related to Sun Java Studio Creator. Could you pls post your question in an appropriate forum.
    Thanks,
    RK.

  • I have a PPC iMac 10.4.11 and will shortly buy a new i Mac.  What is the best way to transfer all my HD date from old to new? Thank you!

    I have a PPC iMac 10.4.11 and will shortly buy a new i Mac.  What is the best way to transfer all my HD date from old to new? Thank you!

    Migrating from PPC Macs to Intel Macs:
    https://discussions.apple.com/docs/DOC-2295
    How to use Migration Assistant:
    http://support.apple.com/kb/HT4413?viewlocale=en_US
    http://support.apple.com/kb/TS1963
    Troubleshooting Firewire target disk mode:
    http://support.apple.com/kb/HT1661

  • My Mum( a pensioner) is wanting to purchase both an iPhone and iPad.  What is the best way for her to manage her data /calls/txt etc. obviously the cost needs to be as low as possible.  Currently does not have WiFi but uses dongle

    My Mum( a pensioner) is wanting to purchase both an iPhone and iPad.  What is the best way for her to manage her data /calls/txt etc. obviously the cost needs to be as low as possible.  Currently does not have WiFi but uses dongle

    My Mum( a pensioner) is wanting to purchase both an iPhone and iPad.  What is the best way for her to manage her data /calls/txt etc. obviously the cost needs to be as low as possible.  Currently does not have WiFi but uses dongle

  • What is the best way to transfer all of my data from my iPod touch 3rd generation to my iPhone 4s?

    I have a 3rd generation iPod touch, and now I am getting an iPhone 4s. What is the best way to transfer all of my data, including paid-for apps and music, from the iPod to the iPhone without losing anything? Can I just do it through iTunes or the iCloud? I have never used iCloud before.

    Follow the directions here:
    http://support.apple.com/kb/HT2109

  • I have a 15' Macbook Pro, mid 2010 running Mavericks. I want to upgrade the hardware by increasing the RAM to 8GB and replacing the HD for a SDD one. What would be the best way to install mavericks on the new HD? I have the original OS X CD.

    I have a 15' Macbook Pro, mid 2010 running Mavericks. I want to upgrade the hardware by increasing the RAM to 8GB and replacing the HD for a SDD one. What would be the best way to install mavericks on the new HD? I have the original OS X CD.
    From what I read, I have 2 choices: 1. to install OSX and then upgrade to Mavericks, but I'm not sure if this would be possible (to upgrade directly from OSX to Mavericks); and 2. to use a software called Super Duper.
    I wouldn't like to have to use a third party software to do this, so the question is: is there a better way to install directly the Mavericks not having to use a third party software?

    Install the new drive in the computer.
    Install the old drive in an external USB or Firewire enclosure.
    Boot the computer from the Recovery HD on the external drive.
    Use Disk Utility to partition and format the new internal drive.
    Clone your external drive to the internal drive.
    How to replace or upgrade a drive in a laptop
    Step One: Repair the Hard Drive and Permissions
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger, Leopard or Snow Leopard.) After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    Step Two: Remove the old drive and install the new drive.  Place the old drive in an external USB enclosure.  You can buy one at OWC who is also a good vendor for drives.
    Step Three: Boot from the Recovery HD on the external drive.  Restart the computer and after the chime press and hold down the OPTION key until the boot manager appears.  Select the icon for the Recovery HD then click on the downward pointing arrow button.
    Step Four: New Hard Drive Preparation
      1. Open Disk Utility from the main menu and click on the Continue button.
      2. After DU loads select your new hard drive (this is the entry with the
          mfgr.'s ID and size) from the left side list. Note the SMART status of
          the drive in DU's status area.  If it does not say "Verified" then the drive
          is failing or has failed and will need replacing.  Otherwise, click on the
          Partition tab in the DU main window.
      3. Under the Volume Scheme heading set the number of partitions from
          the drop down menu to one. Set the format type to Mac OS Extended
          (Journaled.) Click on the Options button, set the partition scheme to
          GUID  then click on the OK button. Click on the Partition button and
          wait until the process has completed.
      4. Select the volume you just created (this is the sub-entry under the
          drive entry) from the left side list. Click on the Erase tab in the DU main
          window.
      5. Set the format type to Mac OS Extended (Journaled.) Click on the
          Options button, check the button for Zero Data and click on OK to
          return to the Erase window.
      6. Click on the Erase button. The format process can take up to several
          hours depending upon the drive size.
    Step Five: Clone the old drive to the new drive
      1. Using Disk Utility still opened.
      2. Select the destination volume from the left side list.
      3. Click on the Restore tab in the DU main window.
      4. Check the box labeled Erase destination.
      5. Select the destination volume from the left side list and drag it to the
          Destination entry field.
      6. Select the source volume from the left side list and drag it to the
          Source entry field.
      7. Double-check you got it right, then click on the Restore button.
    Destination means the new internal drive. Source means the old external drive.
    Step Six: Open the Startup Disk preferences and select the new internal volume.  Click on the Restart button.  You should boot from the new drive.  Eject the external drive and disconnect it from the computer.

  • Report on the dates and the times that software updates went out to partucular machines

    Hello all,
    I need to know if there is a way to report on the dates and times that certain software updates installed on certain machines. I see a report that could be it but it does not show any results. The report that I am talking about is under Software update - Distribution status. When I try to run any of those reports I get no matching records could be found so I guess I have 2 questions.

    Yes, I know this is an old post, I’m just trying to clean them up.
    There is no report that will show you when a SU was installed on a PC. At best you can use the last change date but they is no reliable for several reasons. As for your second question, I’m not sure what report or category you are looking
    at. You will need to provide more details.
    http://www.enhansoft.com/

  • What's the best way to back up to the cloud?

    I am going to be traveling in the on a boat in Europe. Access to wifi could be limited and slow. I want to back up my photos and catalog to the cloud as there is potental to lose laptop and external drive. Since I have a 25 mp camera and will be shooting in Raw allot, there will be some big files as each photo could be around 27 gb.
    All of my files will be in the My pictures folder LR set up when I set up my new catalog. I planned to back up these folders to the cloud, then send just the new folders each time I add them to LR during import. Then I was going to have the catalog BK that is created each time you close LR  (just the data only is in this file) sent to the cloud as well.
    Then if my laptop is lost I can copy the back up catalog (just the data file) and the My Pictures file that has all my photos in folders to a new laptop and restore my catalog. I'm told by Adobe help that this won't work as the connection between the photos and the catalog back up will be lost.
    Is this correct? And if so, what's a better method.

    Thanks Jim, and yes I meant 27 mb.  Will be living on a sail boat so there is potential to lose both the laptop and external drive. The cloud was to be my 3rd copy
    Date: Fri, 20 Dec 2013 16:53:44 -0800
    From: [email protected]
    To: [email protected]
    Subject: What's the best way to back up to the cloud?
        Re: What's the best way to back up to the cloud?
        created by JimHess in Photoshop Lightroom - View the full discussion
    You really have images that are 27 GB each? I suspect you meant 27 MB. But, even then, I think cloud backup might be cumbersome. I would suggest carrying a small external hard drive. I have a 1 TB USB 3 drive that is really fast and very small. No external power supply. Plug it in, and copy the files. That's what I would do.
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5948781#5948781
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5948781#5948781
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5948781#5948781. In the Actions box on the right, click the Stop Email Notifications link.
               Start a new discussion in Photoshop Lightroom at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Best way to back up to the cloud

    So far I have backed up my Mac to iDisk using MobileMe, but since it is going away, and since my MacBook was 4+ years old, I bought a new MacBook pro with lion. What are my choices for backing up to the cloud, since iCloud won't back up my documents with some exceptions?
    Dropbox?
    Something else?
    I also back up to an external HD using time machine.

    Thanks Jim, and yes I meant 27 mb.  Will be living on a sail boat so there is potential to lose both the laptop and external drive. The cloud was to be my 3rd copy
    Date: Fri, 20 Dec 2013 16:53:44 -0800
    From: [email protected]
    To: [email protected]
    Subject: What's the best way to back up to the cloud?
        Re: What's the best way to back up to the cloud?
        created by JimHess in Photoshop Lightroom - View the full discussion
    You really have images that are 27 GB each? I suspect you meant 27 MB. But, even then, I think cloud backup might be cumbersome. I would suggest carrying a small external hard drive. I have a 1 TB USB 3 drive that is really fast and very small. No external power supply. Plug it in, and copy the files. That's what I would do.
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5948781#5948781
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5948781#5948781
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5948781#5948781. In the Actions box on the right, click the Stop Email Notifications link.
               Start a new discussion in Photoshop Lightroom at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • I need the Log Report for the Data which i am uploading from SAP R/3.

    Hi All,
    I am BI 7.0 Platform with Support Patch 20.
    I need the Log Report for the Data which i am uploading from SAP R/3.
    I extract the DATA from R/3 into BI 7.0 DSO where I am mapping the GL Accounts with the FS Item.   In the Transformation i have return a routine on the FS Item InfObject . I am checking the Gl code into Z table for the FS Item .
    I capture the FS item from the Z table then update this FS item to Infobject FS item.
    Now i  need to stop the Data upload if i do not find the GL code in the Z table, and generate report for all GL code for which the FS item is not maintained in the Z table.
    Please suggest.
    Regards
    nilesh

    Hi.
    Add a field that you will use to identify if the GL account of the record was found in the Z table or not. Fx, create ZFOUND with length 1 and no text.
    In your routine, when you do the lookup, populate ZFOUND with X when you found a match (sy-subrc = 0) and leave it blank if you don't find a match. Now create a report filtering on ZFOUND = <blank> and output the GL accounts. Those will be the ones not existing in the Z table, but coming in from your transactions.
    Regards
    Jacob

  • HT1364 I just bought a new PC and now have ample space on my C drive to house my music Library which is currenlty installed on a external drive.  What is the best way to install and move the itunes library to my C Drive?

    I just bought a new PC and now have ample space on my C drive to house my music Library which is currenlty installed on a external drive.  What is the best way to install and move the itunes library to my C Drive?

    If the entire library is on the external drive then simply copy the iTunes folder into <User's Music> on the new computer, then install iTunes. If you've already installed iTunes you will want to remove the empty iTunes folder in <User's Music> first.
    If it turns out you only have the media folder on the external drive then take a look at this post...
    tt2

  • What is the best way to take care of the battery?

    What is the best way to charge and use the battery so it lasts the longest over time? Does wall charger versus USB make a difference? Does topping off versus draining make a difference?
    Thanks!

    My understanding is to charge the battery as soon as you're able to, without letting it drain completely and or often.
    With my digital SLR cameras, it's recommended by engineers that have studied Lithium-ion battery charging to not allow them to drain...or not allow them to fall below 50% capacity. If you charge them when you're able to, you'll extend the life of the battery. I see these results first hand.
    Funny, my sister uses the blackberry type 'smartphones' and she ALWAYS has battery issues. She runs down the battery, then plugs them in for a short time to get a 'quick charge', then proceeds to run the battery down again.
    Next thing you know, her phone won't last the day or half day on a charge.
    So maybe there is something to recharging as soon as you can and not allowing the battery to die on you.

  • The best way i can re write the script ??

    What is the best way that i can rewrite the below query.,
    SELECT 'Brought Forward' AS groupName , End_Status
    ,SUM(Emergency) AS Emergency
    ,SUM(High) AS High
    ,SUM(Medium) AS Medium
    ,SUM(Low) AS Low
    ,SUM(Total) as Total
    FROM
    (     SELECT a.call_id
         ,CASE WHEN (NVL(B.STATUS, NVL(A.STATUS,0))) IN (4,12) THEN 'Resolved'
              WHEN (NVL(B.STATUS, NVL(A.STATUS,0))) IN (0,1,11,7) THEN 'Open Items'
              END AS End_Status
         ,(CASE WHEN Priority = 0 THEN 1 ELSE 0 END) AS Emergency
         ,(CASE WHEN Priority = 1 THEN 1 ELSE 0 END) AS High
         ,(CASE WHEN Priority = 2 THEN 1 ELSE 0 END) AS Medium
         ,(CASE WHEN Priority = 3 THEN 1 ELSE 0 END) AS Low
         ,(CASE WHEN priority = 0 OR priority = 1 OR priority = 2 OR priority = 3 THEN 1 ELSE 0 END) Total
         FROM LCC.VHD_CALLDESK A,
         (SELECT DISTINCT Y.Call_Id,Y.Status
         FROM LCC.VHD_CALLSTATUS Y,
    SELECT P.CALL_ID,MAX(P.Status_Date) as Status_Date
         FROM LCC.VHD_CALLSTATUS P , LCC.VHD_CALLSTATUS R
    WHERE R.STATUS IN (2,14)
    AND P.STATUS IN (0,1,4,7,11,12)
    AND R.UPDUSERID <> 'system'
    AND P.CALL_ID <> R.CALL_ID
    AND TRUNC(P.Status_Date) < '21-May-2008'
    GROUP BY P.Call_ID
    ) Z
         WHERE Y.Call_Id = Z.Call_id
    AND Y.Status_Date = Z.Status_Date) B
         UNION
         SELECT a.call_id
         ,CASE WHEN (NVL(B.STATUS, NVL(A.STATUS,0))) IN (4,12) THEN 'Resolved'
              WHEN (NVL(B.STATUS, NVL(A.STATUS,0))) IN (0,1,11,7) THEN 'Open Items'
              END AS End_Status
         ,(CASE WHEN Priority = 0 THEN 1 ELSE 0 END) AS Emergency
    ,(CASE WHEN Priority = 1 THEN 1 ELSE 0 END) AS High
         ,(CASE WHEN Priority = 2 THEN 1 ELSE 0 END) AS Medium
         ,(CASE WHEN Priority = 3 THEN 1 ELSE 0 END) AS Low
         ,(CASE WHEN priority = 0 OR priority = 1 OR priority = 2 OR priority = 3 THEN 1 ELSE 0 END) Total
         FROM LCC.VHD_CALLDESK_ARCHIVE A,
         (SELECT DISTINCT Y.Call_Id,Y.Status
         FROM LCC.VHD_CALLSTATUS Y,
    SELECT P.CALL_ID,MAX(P.Status_Date) as Status_Date
         FROM LCC.VHD_CALLSTATUS_ARCHIVE P , LCC.VHD_CALLSTATUS_ARCHIVE R
    WHERE R.STATUS IN (2,14)
    AND P.STATUS IN (0,1,4,7,11,12)
    AND R.UPDUSERID <> 'system'
    AND P.CALL_ID <> R.CALL_ID
    AND TRUNC(P.Status_Date) < '21-May-2008'
    GROUP BY P.Call_ID
    ) Z
         WHERE Y.Call_Id = Z.Call_id
    AND Y.Status_Date = Z.Status_Date) B
         WHERE (A.CALL_ID = B.CALL_ID AND TRUNC(A.ENTRY_DATE) < '21-May-2008' )
         UNION
         SELECT A.CALL_ID
         ,CASE WHEN TRUNC(ENTRY_DATE) IS NOT NULL THEN 'Open Items'
              END AS End_Status
         ,(CASE WHEN Priority = 0 THEN 1 ELSE 0 END) AS Emergency
         ,(CASE WHEN Priority = 1 THEN 1 ELSE 0 END) AS High
         ,(CASE WHEN Priority = 2 THEN 1 ELSE 0 END) AS Medium
         ,(CASE WHEN Priority = 3 THEN 1 ELSE 0 END) AS Low
         ,(CASE WHEN priority = 0 OR priority = 1 OR priority = 2 OR priority = 3 THEN 1 ELSE 0 END) Total
    FROM      LCC.VIEW_VHD_CALLDESK_MASTER A,
              (SELECT CALL_ID, STATUS_DATE FROM
                   SELECT CALL_ID, MIN(STATUS_DATE) AS STATUS_DATE FROM LCC.VHD_CALLSTATUS WHERE CALL_ID IN
                   (SELECT CALL_ID FROM LCC.VIEW_VHD_CALLDESK_MASTER WHERE TRUNC(ENTRY_DATE) < '21-May-2008' )
                   GROUP BY CALL_ID)
              WHERE TRUNC(STATUS_DATE) >= '21-May-2008'
              ) B
         WHERE A.CALL_ID = B.CALL_ID
         UNION
         SELECT A.CALL_ID
         ,CASE WHEN TRUNC(ENTRY_DATE) IS NOT NULL THEN 'Open Items'
              END AS End_Status
         ,(CASE WHEN Priority = 0 THEN 1 ELSE 0 END) AS Emergency
         ,(CASE WHEN Priority = 1 THEN 1 ELSE 0 END) AS High
         ,(CASE WHEN Priority = 2 THEN 1 ELSE 0 END) AS Medium
         ,(CASE WHEN Priority = 3 THEN 1 ELSE 0 END) AS Low
         ,(CASE WHEN priority = 0 OR priority = 1 OR priority = 2 OR priority = 3 THEN 1 ELSE 0 END) Total
         FROM LCC.VIEW_VHD_CALLDESK_MASTER A,
              (SELECT CALL_ID, STATUS_DATE FROM
                   SELECT CALL_ID, MIN(STATUS_DATE) AS STATUS_DATE FROM LCC.VHD_CALLSTATUS_ARCHIVE WHERE CALL_ID IN
                   (SELECT CALL_ID FROM LCC.VIEW_VHD_CALLDESK_MASTER WHERE TRUNC(ENTRY_DATE) < '21-May-2008' )
                   GROUP BY CALL_ID)
              WHERE TRUNC(STATUS_DATE) >= '21-Jan-2008'
              ) B
         WHERE A.CALL_ID = B.CALL_ID
         UNION
         SELECT A.CALL_ID
         ,CASE WHEN TRUNC(ENTRY_DATE) IS NOT NULL THEN 'Open Items'
              END AS End_Status
         ,(CASE WHEN Priority = 0 THEN 1 ELSE 0 END) AS Emergency
         ,(CASE WHEN Priority = 1 THEN 1 ELSE 0 END) AS High
         ,(CASE WHEN Priority = 2 THEN 1 ELSE 0 END) AS Medium
         ,(CASE WHEN Priority = 3 THEN 1 ELSE 0 END) AS Low
         ,(CASE WHEN priority = 0 OR priority = 1 OR priority = 2 OR priority = 3 THEN 1 ELSE 0 END) Total
         FROM LCC.VIEW_VHD_CALLDESK_MASTER A
         WHERE TRUNC(ENTRY_DATE) < '21-May-2008'
         AND A.CALL_ID NOT IN
         (SELECT DISTINCT CALL_ID FROM LCC.VHD_CALLSTATUS WHERE TRUNC(STATUS_DATE) >='21-May-2008' UNION
         SELECT DISTINCT CALL_ID FROM LCC.VHD_CALLSTATUS_ARCHIVE WHERE TRUNC(STATUS_DATE)>='21-May-2008' )
         AND A.STATUS IS NULL
         UNION
         SELECT a.call_id
         ,CASE WHEN (NVL(B.STATUS, NVL(A.STATUS,0))) IN (4,12) THEN 'Resolved'
              WHEN (NVL(B.STATUS, NVL(A.STATUS,0))) IN (0,1,11,7) THEN 'Open Items'
              END AS End_Status
         ,(CASE WHEN Priority = 0 THEN 1 ELSE 0 END) AS Emergency
    ,(CASE WHEN Priority = 1 THEN 1 ELSE 0 END) AS High
         ,(CASE WHEN Priority = 2 THEN 1 ELSE 0 END) AS Medium
         ,(CASE WHEN Priority = 3 THEN 1 ELSE 0 END) AS Low
         ,(CASE WHEN priority = 0 OR priority = 1 OR priority = 2 OR priority = 3 THEN 1 ELSE 0 END) Total
         FROM LCC.VHD_CALLDESK_ARCHIVE A,
         (SELECT DISTINCT Y.Call_Id,Y.Status
         FROM LCC.VHD_CALLSTATUS_ARCHIVE Y,
         (SELECT CALL_ID,MAX(Status_Date) as Status_Date
         FROM LCC.VHD_CALLSTATUS_ARCHIVE
         WHERE TRUNC(Status_Date) < '21-May-2008' AND Status IN (0,1,2,4,7,11,12,14) and upduserid <> 'system'
         AND CALL_ID IN
              SELECT CALL_ID FROM LCC.VHD_CALLSTATUS_ARCHIVE WHERE STATUS=1 AND TRUNC(STATUS_DATE) < '21-May-2008' and upduserid <> 'system'
              INTERSECT
              SELECT CALL_ID FROM LCC.VHD_CALLSTATUS_ARCHIVE WHERE STATUS In (2,14) AND TRUNC(STATUS_DATE) < '21-May-2008' and upduserid <> 'system'
         GROUP BY Call_ID) Z
         WHERE Y.Call_Id = Z.Call_id AND Y.Status_Date = Z.Status_Date) B
         WHERE (A.CALL_ID = B.CALL_ID AND TRUNC(A.ENTRY_DATE) < '21-May-2008' and a.status not in (2,14) and a.upduserid <> 'system')
    UNION
    SELECT a.call_id
         ,CASE WHEN (NVL(B.STATUS, NVL(A.STATUS,0))) IN (4,12) THEN 'Resolved'
              WHEN (NVL(B.STATUS, NVL(A.STATUS,0))) IN (0,1,11,7) THEN 'Open Items'
              END AS End_Status
         ,(CASE WHEN Priority = 0 THEN 1 ELSE 0 END) AS Emergency
    ,(CASE WHEN Priority = 1 THEN 1 ELSE 0 END) AS High
         ,(CASE WHEN Priority = 2 THEN 1 ELSE 0 END) AS Medium
         ,(CASE WHEN Priority = 3 THEN 1 ELSE 0 END) AS Low
         ,(CASE WHEN priority = 0 OR priority = 1 OR priority = 2 OR priority = 3 THEN 1 ELSE 0 END) Total
         FROM LCC.VHD_CALLDESK A,
         (SELECT Y.Call_Id,Y.Status
         FROM LCC.VHD_CALLSTATUS Y,
         (SELECT CALL_ID,MAX(Status_Date) as Status_Date
         FROM LCC.VHD_CALLSTATUS
         WHERE TRUNC(Status_Date) < '21-May-2008' AND Status IN (0,1,2,4,7,11,12,14) and upduserid <> 'system'
         AND CALL_ID IN
              SELECT CALL_ID FROM LCC.VHD_CALLSTATUS WHERE STATUS=1 AND TRUNC(STATUS_DATE) < '21-May-2008' and upduserid <> 'system'
              INTERSECT
              SELECT CALL_ID FROM LCC.VHD_CALLSTATUS WHERE STATUS in (2,14) AND TRUNC(STATUS_DATE) < '21-May-2008' and upduserid <> 'system'
         GROUP BY Call_ID) Z
         WHERE Y.Call_Id = Z.Call_id AND Y.Status_Date = Z.Status_Date) B
         WHERE (A.CALL_ID = B.CALL_ID AND TRUNC(A.ENTRY_DATE) < '21-May-2008' and a.status not in (2,14))
         UNION
         SELECT a.call_id
         ,CASE WHEN ENTRY_DATE IS NOT NULL THEN 'Open Items'
              END AS End_Status
         ,(CASE WHEN Priority = 0 THEN 1 ELSE 0 END) AS Emergency
         ,(CASE WHEN Priority = 1 THEN 1 ELSE 0 END) AS High
         ,(CASE WHEN Priority = 2 THEN 1 ELSE 0 END) AS Medium
         ,(CASE WHEN Priority = 3 THEN 1 ELSE 0 END) AS Low
         ,(CASE WHEN priority = 0 OR priority = 1 OR priority = 2 OR priority = 3 THEN 1 ELSE 0 END) Total
         FROM LCC.VHD_CALLDESK A,
         (SELECT Y.Call_Id
         FROM LCC.VHD_CALLSTATUS Y,
         (SELECT CALL_ID,MAX(Status_Date) as Status_Date
         FROM LCC.VHD_CALLSTATUS
         WHERE TRUNC(Status_Date) < '21-May-2008' AND Status IN (0,1,4,7,11,12,13)
         AND CALL_ID NOT IN (SELECT DISTINCT CALL_ID FROM LCC.VHD_CALLSTATUS WHERE TRUNC(Status_Date) < '21-May-2008' AND Status In (2,14) and upduserid <> 'system')
         GROUP BY Call_ID) Z
         WHERE Y.Call_Id = Z.Call_id AND Y.Status_Date = Z.Status_Date
         MINUS
         SELECT Y.Call_Id
         FROM LCC.VHD_CALLSTATUS Y,
         (SELECT CALL_ID,MAX(Status_Date) as Status_Date
         FROM LCC.VHD_CALLSTATUS
         WHERE TRUNC(Status_Date) <'21-May-2008' AND Status IN (0,1,4,7,11,12)
         AND CALL_ID NOT IN (SELECT DISTINCT CALL_ID FROM LCC.VHD_CALLSTATUS WHERE TRUNC(Status_Date) < '21-May-2008' AND Status in (2,14) and upduserid <> 'system')
         GROUP BY Call_ID) Z
         WHERE Y.Call_Id = Z.Call_id AND Y.Status_Date = Z.Status_Date)B
         WHERE A.CALL_ID = B.CALL_ID
    UNION
         SELECT a.call_id
         ,CASE WHEN ENTRY_DATE IS NOT NULL THEN 'Open Items'
              END AS End_Status
         ,(CASE WHEN Priority = 0 THEN 1 ELSE 0 END) AS Emergency
         ,(CASE WHEN Priority = 1 THEN 1 ELSE 0 END) AS High
         ,(CASE WHEN Priority = 2 THEN 1 ELSE 0 END) AS Medium
         ,(CASE WHEN Priority = 3 THEN 1 ELSE 0 END) AS Low
         ,(CASE WHEN priority = 0 OR priority = 1 OR priority = 2 OR priority = 3 THEN 1 ELSE 0 END) Total
         FROM LCC.VHD_CALLDESK_ARCHIVE A,
         (SELECT Y.Call_Id
         FROM LCC.VHD_CALLSTATUS_ARCHIVE Y,
         (SELECT CALL_ID,MAX(Status_Date) as Status_Date
         FROM LCC.VHD_CALLSTATUS_ARCHIVE
         WHERE TRUNC(Status_Date) < '21-May-2008' AND Status IN (0,1,4,7,11,12,13)
         AND CALL_ID NOT IN (SELECT DISTINCT CALL_ID FROM LCC.VHD_CALLSTATUS_ARCHIVE WHERE TRUNC(Status_Date) < '21-May-2008' AND Status in (2,14) and upduserid <> 'system')
         GROUP BY Call_ID) Z
         WHERE Y.Call_Id = Z.Call_id AND Y.Status_Date = Z.Status_Date
         MINUS
         SELECT Y.Call_Id
         FROM LCC.VHD_CALLSTATUS_ARCHIVE Y,
         (SELECT CALL_ID,MAX(Status_Date) as Status_Date
         FROM LCC.VHD_CALLSTATUS_ARCHIVE
         WHERE TRUNC(Status_Date) < '21-May-2008' AND Status IN (0,1,4,7,11,12)
         AND CALL_ID NOT IN (SELECT DISTINCT CALL_ID FROM LCC.VHD_CALLSTATUS_ARCHIVE WHERE TRUNC(Status_Date) < '21-May-2008' AND Status in (2,14) and upduserid <> 'system')
         GROUP BY Call_ID) Z
         WHERE Y.Call_Id = Z.Call_id AND Y.Status_Date = Z.Status_Date)B
         WHERE A.CALL_ID = B.CALL_ID
    WHERE End_Status IS NOT NULL
    group by End_Status
    rk

    What is the best way that i can rewrite the below query.,
    SELECT   'Brought Forward' AS groupname, end_status, SUM (emergency) AS emergency,
             SUM (high)
                   AS high, SUM (medium) AS medium, SUM (low) AS low,
             SUM (total)
                   AS total
        FROM (SELECT a.call_id,
                     CASE
                        WHEN (NVL (b.status, NVL (a.status, 0))) IN (4, 12) THEN 'Resolved'
                        WHEN (NVL (b.status, NVL (a.status, 0))) IN (0, 1, 11, 7) THEN 'Open Items'
                     END
                           AS end_status,
                     (CASE
                         WHEN priority = 0 THEN 1
                         ELSE 0
                      END
                           AS emergency,
                     (CASE
                         WHEN priority = 1 THEN 1
                         ELSE 0
                      END
                           AS high,
                     (CASE
                         WHEN priority = 2 THEN 1
                         ELSE 0
                      END
                     ) AS medium,
                     (CASE
                         WHEN priority = 3 THEN 1
                         ELSE 0
                      END
                     ) AS low,
                     (CASE
                         WHEN    priority = 0
                              OR priority = 1
                              OR priority = 2
                              OR priority = 3 THEN 1
                         ELSE 0
                      END
                     ) total
                FROM lcc.vhd_calldesk a,
                     (SELECT DISTINCT y.call_id, y.status
                                 FROM lcc.vhd_callstatus y,
                                      (SELECT   p.call_id,
                                                MAX (p.status_date)
                                                      AS status_date
                                           FROM lcc.vhd_callstatus p,
                                                lcc.vhd_callstatus r
                                          WHERE r.status IN (2, 14)
                                            AND p.status IN (0, 1, 4, 7, 11, 12)
                                            AND r.upduserid <> 'system'
                                            AND p.call_id <> r.call_id
                                            AND TRUNC (p.status_date) <
                                                                     '21-May-2008'
                                       GROUP BY p.call_id) z
                                WHERE y.call_id = z.call_id
                                  AND y.status_date = z.status_date) b
              UNION
              SELECT a.call_id,
                     CASE
                        WHEN (NVL (b.status, NVL (a.status, 0))) IN (4, 12) THEN 'Resolved'
                        WHEN (NVL (b.status, NVL (a.status, 0))) IN (0, 1, 11, 7) THEN 'Open Items'
                     END
                           AS end_status,
                     (CASE
                         WHEN priority = 0 THEN 1
                         ELSE 0
                      END
                           AS emergency,
                     (CASE
                         WHEN priority = 1 THEN 1
                         ELSE 0
                      END
                           AS high,
                     (CASE
                         WHEN priority = 2 THEN 1
                         ELSE 0
                      END
                     ) AS medium,
                     (CASE
                         WHEN priority = 3 THEN 1
                         ELSE 0
                      END
                     ) AS low,
                     (CASE
                         WHEN    priority = 0
                              OR priority = 1
                              OR priority = 2
                              OR priority = 3 THEN 1
                         ELSE 0
                      END
                     ) total
                FROM lcc.vhd_calldesk_archive a,
                     (SELECT DISTINCT y.call_id, y.status
                                 FROM lcc.vhd_callstatus y,
                                      (SELECT   p.call_id,
                                                MAX (p.status_date)
                                                      AS status_date
                                           FROM lcc.vhd_callstatus_archive p,
                                                lcc.vhd_callstatus_archive r
                                          WHERE r.status IN (2, 14)
                                            AND p.status IN (0, 1, 4, 7, 11, 12)
                                            AND r.upduserid <> 'system'
                                            AND p.call_id <> r.call_id
                                            AND TRUNC (p.status_date) <
                                                                     '21-May-2008'
                                       GROUP BY p.call_id) z
                                WHERE y.call_id = z.call_id
                                  AND y.status_date = z.status_date) b
               WHERE (a.call_id = b.call_id AND TRUNC (a.entry_date) <
                                                                     '21-May-2008'
              UNION
              SELECT a.call_id,
                     CASE
                        WHEN TRUNC (entry_date) IS NOT NULL THEN 'Open Items'
                     END
                           AS end_status,
                     (CASE
                         WHEN priority = 0 THEN 1
                         ELSE 0
                      END
                           AS emergency,
                     (CASE
                         WHEN priority = 1 THEN 1
                         ELSE 0
                      END
                           AS high,
                     (CASE
                         WHEN priority = 2 THEN 1
                         ELSE 0
                      END
                     ) AS medium,
                     (CASE
                         WHEN priority = 3 THEN 1
                         ELSE 0
                      END
                     ) AS low,
                     (CASE
                         WHEN    priority = 0
                              OR priority = 1
                              OR priority = 2
                              OR priority = 3 THEN 1
                         ELSE 0
                      END
                     ) total
                FROM lcc.view_vhd_calldesk_master a,
                     (SELECT call_id, status_date
                        FROM (SELECT   call_id, MIN (status_date) AS status_date
                                  FROM lcc.vhd_callstatus
                                 WHERE call_id IN (
                                            SELECT call_id
                                              FROM lcc.view_vhd_calldesk_master
                                             WHERE TRUNC (entry_date) <
                                                                     '21-May-2008')
                              GROUP BY call_id)
                       WHERE TRUNC (status_date) >= '21-May-2008') b
               WHERE a.call_id = b.call_id
              UNION
              SELECT a.call_id,
                     CASE
                        WHEN TRUNC (entry_date) IS NOT NULL THEN 'Open Items'
                     END
                           AS end_status,
                     (CASE
                         WHEN priority = 0 THEN 1
                         ELSE 0
                      END
                           AS emergency,
                     (CASE
                         WHEN priority = 1 THEN 1
                         ELSE 0
                      END
                           AS high,
                     (CASE
                         WHEN priority = 2 THEN 1
                         ELSE 0
                      END
                     ) AS medium,
                     (CASE
                         WHEN priority = 3 THEN 1
                         ELSE 0
                      END
                     ) AS low,
                     (CASE
                         WHEN    priority = 0
                              OR priority = 1
                              OR priority = 2
                              OR priority = 3 THEN 1
                         ELSE 0
                      END
                     ) total
                FROM lcc.view_vhd_calldesk_master a,
                     (SELECT call_id, status_date
                        FROM (SELECT   call_id, MIN (status_date) AS status_date
                                  FROM lcc.vhd_callstatus_archive
                                 WHERE call_id IN (
                                            SELECT call_id
                                              FROM lcc.view_vhd_calldesk_master
                                             WHERE TRUNC (entry_date) <
                                                                     '21-May-2008')
                              GROUP BY call_id)
                       WHERE TRUNC (status_date) >= '21-Jan-2008') b
               WHERE a.call_id = b.call_id
              UNION
              SELECT a.call_id,
                     CASE
                        WHEN TRUNC (entry_date) IS NOT NULL THEN 'Open Items'
                     END
                           AS end_status,
                     (CASE
                         WHEN priority = 0 THEN 1
                         ELSE 0
                      END
                           AS emergency,
                     (CASE
                         WHEN priority = 1 THEN 1
                         ELSE 0
                      END
                           AS high,
                     (CASE
                         WHEN priority = 2 THEN 1
                         ELSE 0
                      END
                     ) AS medium,
                     (CASE
                         WHEN priority = 3 THEN 1
                         ELSE 0
                      END
                     ) AS low,
                     (CASE
                         WHEN    priority = 0
                              OR priority = 1
                              OR priority = 2
                              OR priority = 3 THEN 1
                         ELSE 0
                      END
                     ) total
                FROM lcc.view_vhd_calldesk_master a
               WHERE TRUNC (entry_date) < '21-May-2008'
                 AND a.call_id NOT IN (SELECT DISTINCT call_id
                                                  FROM lcc.vhd_callstatus
                                                 WHERE TRUNC (status_date) >=
                                                                     '21-May-2008'
                                       UNION
                                       SELECT DISTINCT call_id
                                                  FROM lcc.vhd_callstatus_archive
                                                 WHERE TRUNC (status_date) >=
                                                                     '21-May-2008')
                 AND a.status IS NULL
              UNION
              SELECT a.call_id,
                     CASE
                        WHEN (NVL (b.status, NVL (a.status, 0))) IN (4, 12) THEN 'Resolved'
                        WHEN (NVL (b.status, NVL (a.status, 0))) IN (0, 1, 11, 7) THEN 'Open Items'
                     END
                           AS end_status,
                     (CASE
                         WHEN priority = 0 THEN 1
                         ELSE 0
                      END
                           AS emergency,
                     (CASE
                         WHEN priority = 1 THEN 1
                         ELSE 0
                      END
                           AS high,
                     (CASE
                         WHEN priority = 2 THEN 1
                         ELSE 0
                      END
                     ) AS medium,
                     (CASE
                         WHEN priority = 3 THEN 1
                         ELSE 0
                      END
                     ) AS low,
                     (CASE
                         WHEN    priority = 0
                              OR priority = 1
                              OR priority = 2
                              OR priority = 3 THEN 1
                         ELSE 0
                      END
                     ) total
                FROM lcc.vhd_calldesk_archive a,
                     (SELECT DISTINCT y.call_id, y.status
                                 FROM lcc.vhd_callstatus_archive y,
                                      (SELECT   call_id,
                                                MAX (status_date)
                                                      AS status_date
                                           FROM lcc.vhd_callstatus_archive
                                          WHERE TRUNC (status_date) < '21-May-2008'
                                            AND status IN
                                                      (0, 1, 2, 4, 7, 11, 12, 14)
                                            AND upduserid <> 'system'
                                            AND call_id IN (
                                                   SELECT call_id
                                                     FROM lcc.vhd_callstatus_archive
                                                    WHERE status = 1
                                                      AND TRUNC (status_date) <
                                                                     '21-May-2008'
                                                      AND upduserid <> 'system'
                                                   INTERSECT
                                                   SELECT call_id
                                                     FROM lcc.vhd_callstatus_archive
                                                    WHERE status IN (2, 14)
                                                      AND TRUNC (status_date) <
                                                                     '21-May-2008'
                                                      AND upduserid <> 'system')
                                       GROUP BY call_id) z
                                WHERE y.call_id = z.call_id
                                  AND y.status_date = z.status_date) b
               WHERE (    a.call_id = b.call_id
                      AND TRUNC (a.entry_date) < '21-May-2008'
                      AND a.status NOT IN (2, 14)
                      AND a.upduserid <> 'system'
              UNION
              SELECT a.call_id,
                     CASE
                        WHEN (NVL (b.status, NVL (a.status, 0))) IN (4, 12) THEN 'Resolved'
                        WHEN (NVL (b.status, NVL (a.status, 0))) IN (0, 1, 11, 7) THEN 'Open Items'
                     END
                           AS end_status,
                     (CASE
                         WHEN priority = 0 THEN 1
                         ELSE 0
                      END
                           AS emergency,
                     (CASE
                         WHEN priority = 1 THEN 1
                         ELSE 0
                      END
                           AS high,
                     (CASE
                         WHEN priority = 2 THEN 1
                         ELSE 0
                      END
                     ) AS medium,
                     (CASE
                         WHEN priority = 3 THEN 1
                         ELSE 0
                      END
                     ) AS low,
                     (CASE
                         WHEN    priority = 0
                              OR priority = 1
                              OR priority = 2
                              OR priority = 3 THEN 1
                         ELSE 0
                      END
                     ) total
                FROM lcc.vhd_calldesk a,
                     (SELECT y.call_id, y.status
                        FROM lcc.vhd_callstatus y,
                             (SELECT   call_id, MAX (status_date) AS status_date
                                  FROM lcc.vhd_callstatus
                                 WHERE TRUNC (status_date) < '21-May-2008'
                                   AND status IN (0, 1, 2, 4, 7, 11, 12, 14)
                                   AND upduserid <> 'system'
                                   AND call_id IN (SELECT call_id
                                                     FROM lcc.vhd_callstatus
                                                    WHERE status = 1
                                                      AND TRUNC (status_date) <
                                                                     '21-May-2008'
                                                      AND upduserid <> 'system'
                                                   INTERSECT
                                                   SELECT call_id
                                                     FROM lcc.vhd_callstatus
                                                    WHERE status IN (2, 14)
                                                      AND TRUNC (status_date) <
                                                                     '21-May-2008'
                                                      AND upduserid <> 'system')
                              GROUP BY call_id) z
                       WHERE y.call_id = z.call_id AND y.status_date =
                                                                     z.status_date) b
               WHERE (    a.call_id = b.call_id
                      AND TRUNC (a.entry_date) < '21-May-2008'
                      AND a.status NOT IN (2, 14)
              UNION
              SELECT a.call_id,
                     CASE
                        WHEN entry_date IS NOT NULL THEN 'Open Items'
                     END
                           AS end_status,
                     (CASE
                         WHEN priority = 0 THEN 1
                         ELSE 0
                      END
                           AS emergency,
                     (CASE
                         WHEN priority = 1 THEN 1
                         ELSE 0
                      END
                           AS high,
                     (CASE
                         WHEN priority = 2 THEN 1
                         ELSE 0
                      END
                     ) AS medium,
                     (CASE
                         WHEN priority = 3 THEN 1
                         ELSE 0
                      END
                     ) AS low,
                     (CASE
                         WHEN    priority = 0
                              OR priority = 1
                              OR priority = 2
                              OR priority = 3 THEN 1
                         ELSE 0
                      END
                     ) total
                FROM lcc.vhd_calldesk a,
                     (SELECT y.call_id
                        FROM lcc.vhd_callstatus y,
                             (SELECT   call_id, MAX (status_date) AS status_date
                                  FROM lcc.vhd_callstatus
                                 WHERE TRUNC (status_date) < '21-May-2008'
                                   AND status IN (0, 1, 4, 7, 11, 12, 13)
                                   AND call_id NOT IN (SELECT DISTINCT call_id
                                                                  FROM lcc.vhd_callstatus
                                                                 WHERE TRUNC (
                                                                          status_date
                                                                       ) < '21-May-2008'
                                                                   AND status IN
                                                                          (2, 14)
                                                                   AND upduserid <>
                                                                          'system')
                              GROUP BY call_id) z
                       WHERE y.call_id = z.call_id AND y.status_date =
                                                                     z.status_date
                      MINUS
                      SELECT y.call_id
                        FROM lcc.vhd_callstatus y,
                             (SELECT   call_id, MAX (status_date) AS status_date
                                  FROM lcc.vhd_callstatus
                                 WHERE TRUNC (status_date) < '21-May-2008'
                                   AND status IN (0, 1, 4, 7, 11, 12)
                                   AND call_id NOT IN (SELECT DISTINCT call_id
                                                                  FROM lcc.vhd_callstatus
                                                                 WHERE TRUNC (
                                                                          status_date
                                                                       ) < '21-May-2008'
                                                                   AND status IN
                                                                          (2, 14)
                                                                   AND upduserid <>
                                                                          'system')
                              GROUP BY call_id) z
                       WHERE y.call_id = z.call_id AND y.status_date =
                                                                     z.status_date) b
               WHERE a.call_id = b.call_id
              UNION
              SELECT a.call_id,
                     CASE
                        WHEN entry_date IS NOT NULL THEN 'Open Items'
                     END
                           AS end_status,
                     (CASE
                         WHEN priority = 0 THEN 1
                         ELSE 0
                      END
                           AS emergency,
                     (CASE
                         WHEN priority = 1 THEN 1
                         ELSE 0
                      END
                           AS high,
                     (CASE
                         WHEN priority = 2 THEN 1
                         ELSE 0
                      END
                     ) AS medium,
                     (CASE
                         WHEN priority = 3 THEN 1
                         ELSE 0
                      END
                     ) AS low,
                     (CASE
                         WHEN    priority = 0
                              OR priority = 1
                              OR priority = 2
                              OR priority = 3 THEN 1
                         ELSE 0
                      END
                     ) total
                FROM lcc.vhd_calldesk_archive a,
                     (SELECT y.call_id
                        FROM lcc.vhd_callstatus_archive y,
                             (SELECT   call_id, MAX (status_date) AS status_date
                                  FROM lcc.vhd_callstatus_archive
                                 WHERE TRUNC (status_date) < '21-May-2008'
                                   AND status IN (0, 1, 4, 7, 11, 12, 13)
                                   AND call_id NOT IN (
                                          SELECT DISTINCT call_id
                                                     FROM lcc.vhd_callstatus_archive
                                                    WHERE TRUNC (status_date) <
                                                                     '21-May-2008'
                                                      AND status IN (2, 14)
                                                      AND upduserid <> 'system')
                              GROUP BY call_id) z
                       WHERE y.call_id = z.call_id AND y.status_date =
                                                                     z.status_date
                      MINUS
                      SELECT y.call_id
                        FROM lcc.vhd_callstatus_archive y,
                             (SELECT   call_id, MAX (status_date) AS status_date
                                  FROM lcc.vhd_callstatus_archive
                                 WHERE TRUNC (status_date) < '21-May-2008'
                                   AND status IN (0, 1, 4, 7, 11, 12)
                                   AND call_id NOT IN (
                                          SELECT DISTINCT call_id
                                                     FROM lcc.vhd_callstatus_archive
                                                    WHERE TRUNC (status_date) <
                                                                     '21-May-2008'
                                                      AND status IN (2, 14)
                                                      AND upduserid <> 'system')
                              GROUP BY call_id) z
                       WHERE y.call_id = z.call_id AND y.status_date =
                                                                     z.status_date) b
               WHERE a.call_id = b.call_id)
       WHERE end_status IS NOT NULL
    GROUP BY end_status                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

  • I own CS4, upgraded to CS5, then joined CS6, CC... and now I installed CC14. Which will be the best way to delete or uninstall the programs I don't need keeping only CC14 without running into issues? I have an Alienware Area 51 PC running Windows 7.

    I own CS4, upgraded to CS5, then joined CS6, CC... and now I installed CC14. Which will be the best way to delete or uninstall the programs I don't need keeping only CC14 without running into issues? I have an Alienware Area 51 PC running Windows 7.

    Which will be the best way to delete or uninstall the programs I don't need keeping only CC14 without running into issues?
    There is none. Whatever you do to get rid of the older versions will inevitably do damage to shared components and other stuff of the new versions as well. That's just how it is with this approach... Uninstall the older versions, run the cleaner tool then reinstall CC 2014.
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    Mylenium

Maybe you are looking for

  • Passing data to another page loaded in the same window

    How to pass data from a page to another when new page loading takes place ? I use : window.htmlLoader.load( new air.URLRequest("app:/" + htmlfilename)); I tried : window.htmlLoader.addEventListener(air.Event.CHANGE, passmonitor) but it doesn't work !

  • Service entry sheet creation from PO without selecting line item of PO?

    Dear SAPIENTS, While creating service entry sheet for one frame work order (PO) i do not want to select line item of PO. I want all the service of PO line item should come automatically in single service entry sheet number. At present whenm i enter t

  • Photo pixelating in iMovie

    I extensively have tried to resolve the following issue via apple web site searches, two phone conversations with apple, and many, many varialbe of "self tests" to mini dv, idvd, quicktime, etc. Tired directly dragging photos into iMovie, different e

  • BI - Administration Cockpit

    Hi 1)Can BI Admin Cockpit be used with NW2004s 3.x methodology (I mean we are on NW2004s SP-10 however we have used 3.x methodology for all cubes/queries and no DTP or transformations) 2)Can BI Admin cockpit be configured  directly in production or t

  • Tell me if my idea is wrong

    Hi ; I'm work in simple web application and MySQL DB, and create managed-bean that hold data from DB (session and request) and I need some ideas my first idea : I make class and all method in this class public static that method check if the array em