Report category for this selection

u201CPeriodu201D selection dates:
-     Codes 1, 2, D, F, I, K
u201CSelection Criteria:
-     Payroll Area
-      Person ID
-     Personnel Number (multiple selection)
-     Employment Status equal to 1 or 3
I want to have the above as part of my selection screen.
Which selection criteria do I need to use.
I dont need any other fields than specified above.
Thanks
Kiran
Edited by: kiran dasari on Jun 19, 2009 11:27 PM

Created my own Z category as I didnt find an appropriate one.
Thanks
Kiran

Similar Messages

  • Creating a New Report Category for PNP

    Hi,
    Could anyone please help me in knowing the different steps involved while creating a custom and new report category for PNP LDB?
    Thanks,
    Sandeep.

    Hi create a program or use an existing program, which has logical database pnp.
    go to se38-> prog name->change-> goto->attributes-> HR report category->create report category->new entries.
    check and uncheck what all fields you require for your report
    now save the settings.
    This will serve your purpose. reward points will be appriciated.
    Regards,
    Quavi

  • Getting message : The result set for this selection was empty on sm20

    Hi,
       I assigned below parameters in rz10 :
    rsau/user_selection                                 1
    rsau/max_diskspace/per_day                  1950M
    rsau/max_diskspace/per_file                 650M
    rsau/enable                                               1
       I activated security audit profile in sm19 also.But when iam going to sm20 for analysis of security audit log iam not getting report iam getting this message  :     The result set for this selection was empty.
    Gudie me for the same.
    Thanku

    Hi,
    The result set for this selection was empty.
    I think your configuration is OK except one thing...
    Check in SM19, if you have selected "Filter Active" check box in "Filter 1 and Filter 2" screen and Also "Audit Classess".
    Even though security audit is enabled in SM19, without selecting filter it will not log the events and give you the above message.
    Regards.
    Rajesh Narkhede

  • No data Exists for this selection in PSA.

    Hi Guys,
    I received an Error message with loading of 2lis_03_bf datasource..
    Error message when processing in the Business Warehouse
    Diagnosis
    An error occurred in the SAP BW when processing the data. The error is documented in an error message.
    System response
    A caller 01, 02 or equal to or greater than 20 contains an error meesage.
    Further analysis:
    The error message(s) was (were) sent by:
    PSA Table
    DETAILS Tab: Processing (data packet): Errors occurred
                       : Data Package 6 ( ? Records ) : Errors occurred
                       : Update PSA ( 0 Records posted ) : Errors occurred
                       : No data exists for this selection in PSA
    For DataPacket 6 (Records sent :21572 - Records Received : 0) 
    All other datapackets are updated fine with almost 10,00,000 records..Any help on this ,guys..
    Manythanks
    Arun

    Hi,
    While the load was in progress some one might have deleted the data in PSA or there might be a PSA deletion job running or there might be a PSA deletion chiain which includes this table. Check all these to find out how it got deleted.
    In order to load the data again you can do a reload and probably it works fine this time.
    Anup.

  • I cannot make a simple purchase of a $.99 of Beethoven's 9 symphony 4th Movement. When I click on the orchestra, a pop-up states "connecting - loading" and nothing happens. When I click on "View iTunes" for this selection, nothing happens.

    I cannot make a simple purchase of a $.99 of Beethoven's 9 symphony 4th Movement. When I click on the orchestra, a pop-up states "connecting - loading" and nothing happens. When I click on "View iTunes" for this selection, nothing happens.

    AlexCarey, I've been having issues purchasing recently and place a number of calls to the support team. On Oct. 5th, and on my own decision, I went into my itunes profile and re-entered my credit card expiration date and security code. (Notice, it is not displayed for safety measures.) Today, I received an email from Apple support verifying if I made changes made to my account. For the heck of it, I logged back into itunes; click "Buy". It's working again after three days of failure. However, diagnosis still displays "Secure link to itunes store failed". Very confusing state of affairs, lately. See my post on "Itunes dilemma"

  • How to create report category for PNPCE ldb in ECC 6.0

    Hi Experts,
    How to create report category for the LDB pnpce in ECC6.0
    Thanks in Advance,
    Regards,
    IFF

    Self-Answered.

  • Report class for a selection criteria

    Hi,
    Can anyone explain how a report class is defined for a selection criteria in ABAP HR .
    Thanks in advance,
    Ry

    This is the process to solve your problem. It seems report categories are also reffered to as report classes, so upon completion you assign the report category and the limitations are then put into action.
    Create customer report class, 000000##:
    IMG u2192 Personnel Management u2192 Human Resources Information
    System u2192 Reporting u2192 Adjusting the Standard Selection Screen u2192
    Create Report Categories.
    Select New Entries and enter the number of your report class and the
    name. Deactivate the For Logical Database PNPCE field.
    Select the Matchcode allowed and Sort allowed indicators and allow
    the entry of a date interval for the data and person selection period.
    Save your entries and create a transport request. Return to the
    Overview screen.
    Select your new report class and select Allowable Selection Criteria in
    the dialog structure, on the Overview screen. Choose New Entries. Use
    the possible entries help, F4, to select the specified selection fields and
    select the field for output on the first page. Save your entries.
    Regards
    Tatenda

  • What category for this wiki data?

    INTRODUCTION:
    Flash-based systems are appearing at a fast pace. This wiki presents one way to employ flash drives in
    an arch-based "LIVE" arrangement.
    It is important to note that the system must operate from "IDE" in order that the flash drives utilized
    are recognized as "TRUE IDE" devices thus permitting full "UDMA" operability. In addition, an
    adapter having "UDMA READY" must be used to interface the Compact Flash (CF) to the IDE 80-
    wire interface cable. The CF card(s) must also be "UDMA" rated.
    The system herein described has no HDD's and can be described as "DISCLESS".
    Two CF/IDE interfaces are utilized. When employing CF/IDE adapters, only one such device is usable
    on a given IDE 80-wire cable at a time. A "slave" device can be provided on the adapter but it cannot
    be connected simultaneously with a "master" CF card on the same cable.
    The present 2.6 kernels include provisions which eliminate the application of 80-wire cable parameters
    to IDE busses such that normal boots using standard kernels prevent "TRUE IDE" operation of the CF
    card(s).....thus, the operations are limited to UDMA 2 mode even if the UDMA RATING is much
    higher.
    Therefore, the requirement for "IDE" operation of the system is imperative and applies to the
    remainder of this "DISCLESS SYSTEM"description.
    SYSTEM DETAILS:
    Both the the primary and secondary IDE busses are utilized. The primary buss IDE cable has the
    "boot" CF card and the secondary buss IDE cable has a cachedir CF card, each having an adapter and
    connected via normal 80-wire cable. The operation of these adapters is powered by the 4-pin power
    connector of the type provided to power the floppy disk peripheral device.
    Some of the detailed results of performance outlined in this wiki apply to my system and its capabilities
    with respect to speed and veratility. (1600mhz cpu and 3GB ram).
    The system being described is arch-linux based, with larch "Live" system elements and Faunos
    elements added. It utilizes pacman and aufs for its basic operational utility.
    SYSTEM PHILOSOPHY:
    Operate as much as possible in ram.
    The primary CF card contains the boot Faunos system. It is squashfs compressed and has ~600 arch-
    linux packages, includes pacman, aufs and PacTrac capability. It executes in ram as a r/o source.
    The secondary CF card is used as a local cachedir to archive any and all upgrades to the operating
    system. As such it enables storage of downloaded packages for use at users discretion. When loaded
    into the system via pacman/aufs, the packages are decompressed into ram and operate therein, entirely
    in ram.
    Downloading packages into the cachedir permits the storage of several versions of a given
    package...the original package is NOT OVERWRITTEN, thus flash device life is unaffected. Also,
    the user can revert back to a previous version and it will be INSTALLED INTO RAM.!
    SYSTEM CONSEQUENCES:
    The need to "SAVE SESSION" via the Faunos system is reduced or eliminated at the users discretion
    thus providing fastest reboot time.
    "REBOOT" of the system without "SAVE SESSION" removes any and all packages added via the
    use of the cachedir archive.
    Adding packages in this manner allows checkout of new package impact on the system without
    interfering with the basic boot system.
    Power savings are obvious!
    Downloading via mirrors (many throttled) takes much time! The power required to download
    into HDD is nearly fully eliminated with no increase in delays (actual speed of CF is 40+MB/sec
    for UDMA 4/5).
    INSTALL from cachedir is at 40+MB/sec with UDMA 4,5.
    System cache in /var/cache/pacman/pkg is not utilized.
    PacTrac in Faunos provides a complete log of installed programs (including those installed to
    ram by cachedir) and the last installed version as well as a listing of installable programs via
    pacman. This program is inherent in Faunos boot flash device.
    Additional elements of video, graphics and text can be include in the cachedir . For example, a
    1GB .avi. This video file can be entered in ram via tmpfs and the player via pacman into
    ram...then execution and data are all in ram. The tmpfs video file can be deleted and another
    video file inserted...ad infinitum! All is readonly for the flash drives after initial install of the
    video file(s) to cachedir. A text file to provide a paste of pacman install commands for cachedir
    package groups is also an aid to users if incorporated in the cachedir.
    Larch systems would provide a similar capability except for the PacTrac that Faunos provides.
    The cachedir appears in the system as a media diak.
    All USB functions are available and a USB/HDD adapter permits access to external HDD data
    and storage. Also, external CD/DVD devices are similarly available although DVD play is not
    clean. Best is to put .vob in files of the cachedir.
    Moore's law applies to flash devices!!!!!!!!!
    INSTALLATION:
    This wiki is based on demonstrating the "LIVE" flash drive capabilities introduced by UDMA capable
    flash devices with archlinux based operational capabilities. Therefore, an arch-based installation is
    required. In this wiki, that is Faunos which is flash-installed, based on archlinux packages and Larch-
    derived install parameters. A 2GB compact flash drive is recommended with adapter, either for HDD
    use or a USB adapter, preferably a 2.0 unit.
    Faunos is soon to be released in "STABLE" version. It is maintained by RAYMANO at
    faunos.com.
    The download of faunos is installed via...."dd if=(faunos downnload.img) of=/dev/sdx".......
    The....of=/dev/sdx....is important.....do not use ...of=/dev/sda1 for example......
    If you download the usb.img. Do not change the name of the download to ....faunos.img... because
    the download has that file within it and will only address that file.
    When the flash drive is first ready to be booted, do not boot on it until you have re-sized the linux
    partition from 1GB to ~1500MB . Do so with gparted as root. Provide linux swap at this time if
    you desire.
    When ready to boot, install in primary HDD slot with adapter and set bios to recognize the flash
    drive. Some flash units do not have a label, they appear as brackets [        ] but are fully functional
    as boot devices.
    After reaching the Desktop, the internet parameters are established in WICD.
    Editing of /etc files is then accomplished as desired. Reboot and save session.
    The system can then be shut down to allow install of the CF/IDE in the secondary IDE cable.
    CONFIGURATION CHANGES FOR UDMA CF/IDE:
    At this point, a change is necessary in the boot CF/IDE device in the primary IDE slot to enable IDE
    MODE OF SYSTEM OPERATION.
        1.  Boot into Faunos.
        2.  Select "log out"
        3.  Select "end session"
        4.  "log-in" as root with root password.
        5.   With "archlinux" desktop displayed, select kwrite editor.
        6.  Go to /lib/initcpio/hooks/larch/
        7.  change: ....................line (96):
                                ....for d in /dev-sd[a-z][0-9]* ; do
           to................for d in/dev [hs]d[a-z][0-9]*; do
        1.  Edit /usr/share/larch/initcpio/mkinitcpio.conf...... as follows;
        2.  hooks="base udev fbsplash ide scsi usb larch1 larch2 larch3_aufs splashy"
        3.  Select "STORAGE DEVICES" and open the "livesys/livecd" device,
        4.  Delete file "faunos.img" to trash bin.
        5.  Perform the following to generate a new "faunos.img"
                in terminal as root: .....mkinitcpio -c mkinitcpio.conf -g faunos.img.....
            Install the faunos.img thus generated into "livesys/livecd" in the place of the original
            faunos.img.
            6. Reboot and "SAVE SESSION".
    TROUBLESHOOTING:
    The performance of the CF/IDE devices can be verified by use of hdparm.
    All devices in "STORAGE DEVICES" are identified as "media".
    See FaunOS forums for advice on boot problems or system related issues.
    CACHEDIR PARAMETERS;
    Loading of the cachedir via pacman is accomplished with the following command in terminal:
                                .....pacman –cachedir /media/disk -Sw (package name) ,,,,,,,
    This places the named -i686.pkg.tar.gz in the cachedir. The locale of the downloaded package may be
    a previously established folder, in which case the /media/disk/folderID is used in the command.
    Other files of interest may also be loaded from HDD via a primary IDE install or a flash drive via USB
    or an install via USB/HDD source. Additionally, pacman Syuw is usable:
                       ............pacman –cachedir /media/disk/upgrade -Syuw.........
    This assumes the generated "upgrade" folder.
    Subsequent installs to cachedir do not overwrite existing packages, but make new entries.
    Installing the package(s) is done with the following pacman command:
                            ........pacman -Ud /media/disk/upgrade/*-i686.pkg.tar.gz...
    This example assumes the -Syuw case of installing all packages. They can be individually installed as
    desired.
    Packages installed via pacman/aufs are in ram by default. w00t!!
    MORE RESOURCES:
    Full disclosures of problems and solutions is provided in the FaunOS forums which has over a
    hundred registered users. This forum also includes a Larch forum hosted by Gradgrind.
    I have practiced in SANDBOX but am unaware of whether that material is reproduced in any category.
    How does a user generate several pages of data in a published wiki?  It does not seem apparent...much ado about editing existing wikis but no data on how to make a new one...correct me if I am wrong, please.

    On third thought, it certainly adds a dimension providing power savings as well as utilizing an alternate archlinux install method which eliminates the hassle in getting a DE and loads much without causing an uproar with already installed operating systems.
    Basically, it is FaunOS with Larch elements and both are archlinux based.  The best way to introduce archlinux is with such a LIVE install.  Raymano has demonstrated to many users the easy install of the program.
    It does require adjustment of the install partition at this writing.  Items needing attention are the wicd , rc.conf and rc.local as well as setting up alsa.  These are required in all arch installs and the install of any discless items is not required.
    To utilize the methods I have incorporated requires more skills...most linux users could maneuver through that should they want to utilize discless operation.  I would imagine that many could use existing CF cards even if not UDMA rated to produce a usable discless system but at a slower operating speed.  Power is minimized.
    Summary statement: A Live install of FaunOS is a [u good alternative /u] starting point for new users and it opens the door to discless operation in desktop systems.  (Laptops are a different breed and may have some advantages if dual CF adapters allow both CF units to perform simultaneously).
    Just a thought.......or two.....
    EDIT:  The final release of Faunos is in the works..at present in test phase and posts regarding it are in testing mode rc4.  The next two weeks or so should provide the stable release of the latest FaunOS Live download as reported on the Forum.
    EDIT:  Installed an Adata 266x 8GB CF in the cachedir slot today.  It runs 45+ mb/s in hdparm.  I have 1.3GB of packages installed in it, r/o in the system when installed to ram via pacman/aufs.
    Last edited by lilsirecho (2008-03-11 23:51:03)

  • Unable to show all fields from a table\view within a SSRS Report Model for user selection

    I recently added a new view with a simple SELECT (with 3 fields) statement to our existing Report Model DSV. I then went ahead to the report model (.smdl) file proceeded with the auto-generation of the new attributes which of course ran with no issues.
    I was seeing the three new fields as attributes. But when I went within the existing Perspective to add the newly added fields so that the users see them, one of the field is missing. It is just a VARCHAR field. What would it cause this field to not show up
    within a Perspective?
    Any help is greatly appreciated.Thanks,
    Nimesh
    NM

    Hi NM,
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.
    Thank you for your understanding and support.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • XML Publisher Report  - Possible for multi-select LOV parameters?

    I am new to using BI Publisher for generating reports out of E-Business Suite. I am looking for assistance with 2 questions below
    1. I have created an LOV parameter based on a value set, is it possible to allow the user to select one, all, or a subset?
    2. Is there a way to model an "IN" statement in the XML where using the parameter?
    Thank you.

    With whatever i could make out is you are trying to change a discovere report to xml; publisher report isnt it?
    To answe to your question, directly it is not possible to have In clause but you could use some smart logic like lexical parameters etc to achieve similar things.I guess you cannot do in in EBS Reports too.

  • How to reduce the cost for this select script

    Hi,
    "select id from order where cmd like 'Error ID %'"
    This s my script. And the order table has morethan *5lakhs* records, when i select id for the above condition, my sql script cost is - *2200*,and cpu_cost is -- *235660697* i got this above information thro' plan_table, could anyone plz give suggestion to reduce the cost. (fyi -- cmd field has index with not null constraint).
    Thanks.

    user13294228 wrote:
    "select id from order where cmd like 'Error ID %'"
    This s my script. And the order table has morethan *5lakhs* records, when i select id for the above condition, my sql script cost is - *2200*,and cpu_cost is -- *235660697* i got this above information thro' plan_table, could anyone plz give suggestion to reduce the cost. (fyi -- cmd field has index with not null constraint).What does these cost numbers mean? Do you know what it means and what measurement unit is used for these costs? Will a cost of 2000 be fine? 1500? What specific number will make you sit back and think that the cost is now acceptable?
    Or instead, do you not think it is more important to rather look at what the query does and why.. and then determine if there are methods to do that better and faster?
    So let's look at what the query does. It uses a a LIKE predicate. This means that if an index is available, it cannot be used to find a specific indexed value... as the query is not sure what the value is. All that the query knows is what the first couple of characters are for the value.
    So how would an index be used? Have you looked at the execution plan? Do you understand why the CBO made the decision it did?
    Now - how do you expect the CBO to find the relevant rows any faster? The index benefits the query how? As the CBO cannot put the index to any better use than what it is already doing, what other options are there? Can alternative indexing or data structures be considered? Can parallel processing be used?
    These questions are intended to make you analyse the problem - and understand the problem. That is always the 1st step.. solving the problem only comes after this 1st step.

  • Repeat report pages for 'ALL' selection

    On a report Im building Ive placed a dropdown list of selections that get used to filter out the data on the report.  Someone who uses the report wants to select something that will generate (N) seperate reports as if they had selected each item in
    the list and ran the report.  In other words, instead of one big report...generate what appears to be all the separate reports based on the items in the dropdown list.  Is there way to loop or repeat the whole report for each item in a list?  

    Hi shiftbit,
    Based on my understanding, you want to display the separate reports on each page based on the selected values from parameters.
    In Reporting Services, a list automatically provides a container, we can use a list to display grouped data with multiple views. For your requirement, we can embed the tablix in a list, then add page breaks for the list. Please refer to steps below:
    1. Specify the group expressions for a list on General page like below:
    2. On Page Breaks page, select “Between each instance of a group option”.3. Select the values from drop-down list
    of parameters, then preview the report.
    Reference:
    Lists (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Can't figure out the correct syntax for this select statement

    Hello,
    The following statement works great and gives the desired results:
    prompt
    prompt Using WITH t
    prompt
    with t as
       select a.proj_id,
              a.proj_start,
              a.proj_end,
              case when (
                         select min(a.proj_start)
                           from v b
                          where (a.proj_start  = b.proj_end)
                            and (a.proj_id    != b.proj_id)
                        is not null then 0 else 1
              end as flag
         from v a
        order by a.proj_start
    select proj_id,
           proj_start,
           proj_end,
           flag,
           -- the following select statement is what I am having a hard time
           -- "duplicating" without using the WITH clause
            select sum(t2.flag)
              from t t2
             where t2.proj_end <= t.proj_end
           ) s
      from t;As an academic exercise I wanted to rewrite the above statement without using the WITH clause, I tried this (among dozens of other tries - I've hit a mental block and can't figure it out):
    prompt
    prompt without with
    prompt
    select c.proj_id,
           c.proj_start,
           c.proj_end,
           c.flag,
           -- This is what I've tried as the equivalent statement but, it is
           -- syntactically incorrect.  What's the correct syntax for what this
           -- statement is intended ?
            select sum(t2.flag)
              from c t2
             where t2.proj_end <= c.proj_end
           ) as proj_grp
      from (
            select a.proj_id,
                   a.proj_start,
                   a.proj_end,
                   case when (
                              select min(a.proj_start)
                                from v b
                               where (a.proj_start  = b.proj_end)
                                 and (a.proj_id    != b.proj_id)
                             is not null then 0 else 1
                   end as flag
              from v a
             order by a.proj_start
           ) c;Thank you for helping, much appreciated.
    John.
    PS: The DDL for the table v used by the above statements is:
    drop table v;
    create table v (
    proj_id         number,
    proj_start      date,
    proj_end        date
    insert into v values
           ( 1, to_date('01-JAN-2005', 'dd-mon-yyyy'),
                to_date('02-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           ( 2, to_date('02-JAN-2005', 'dd-mon-yyyy'),
                to_date('03-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           ( 3, to_date('03-JAN-2005', 'dd-mon-yyyy'),
                to_date('04-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           ( 4, to_date('04-JAN-2005', 'dd-mon-yyyy'),
                to_date('05-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           ( 5, to_date('06-JAN-2005', 'dd-mon-yyyy'),
                to_date('07-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           ( 6, to_date('16-JAN-2005', 'dd-mon-yyyy'),
                to_date('17-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           ( 7, to_date('17-JAN-2005', 'dd-mon-yyyy'),
                to_date('18-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           ( 8, to_date('18-JAN-2005', 'dd-mon-yyyy'),
                to_date('19-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           ( 9, to_date('19-JAN-2005', 'dd-mon-yyyy'),
                to_date('20-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           (10, to_date('21-JAN-2005', 'dd-mon-yyyy'),
                to_date('22-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           (11, to_date('26-JAN-2005', 'dd-mon-yyyy'),
                to_date('27-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           (12, to_date('27-JAN-2005', 'dd-mon-yyyy'),
                to_date('28-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           (13, to_date('28-JAN-2005', 'dd-mon-yyyy'),
                to_date('29-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           (14, to_date('29-JAN-2005', 'dd-mon-yyyy'),
                to_date('30-JAN-2005', 'dd-mon-yyyy'));

    Hi, John,
    Not that you asked, but as you proabably know, analytic functions are much better at doing this kind of thing.
    You may be amazed (as I continually am) by how simple and efficient these queries can be.
    For example:
    WITH     got_grp          AS
         SELECT     proj_id, proj_start, proj_end
         ,     proj_end - SUM (proj_end - proj_start) OVER (ORDER BY  proj_start)     AS grp
         FROM     v
    SELECT       ROW_NUMBER () OVER (ORDER BY grp)     AS proj_grp
    ,       MIN (proj_start)                         AS proj_start
    ,       MAX (proj_end)               AS proj_end
    FROM       got_grp
    GROUP BY  grp
    ORDER BY  proj_start
    ;Produces the results you want:
      PROJ_GRP PROJ_START  PROJ_END
             1 01-Jan-2005 05-Jan-2005
             2 06-Jan-2005 07-Jan-2005
             3 16-Jan-2005 20-Jan-2005
             4 21-Jan-2005 22-Jan-2005
             5 26-Jan-2005 30-Jan-2005This is problem is an example of Neighbor-Defined Groups . You want to GROUP BY something that has 5 distinct values, to get the 5 rows above, but there's nothing in the table itself that tells you to which group each row belongs. The groups are not defined by any column in hte table, but by relationships between rows. In this case, a row is in the same group as its neighbor (the row immediatly before or after it when sorted by proj_start or proj_end) if proj_end of the earlier row is the same as proj_start of the later row. That is, there is nothing about 03-Jan-2005 that says the row with proj_id=2 is in the first group, or even that it is in the same group with its neighbor, the row with proj_id=3. Only the relation between those rows, the fact that the earlier row has end_date=03-Jan-2005 and the later row has start_date=03-Jan-2003, that says these neighbors belong to the same group.
    You're figuring out when a new group starts, and then counting how many groups have already started to see to which group each row belongs. That's a prefectly natural procedural way of approaching the problem. But SQL is not a procedural language, and sometimes another approach is much more efficient. In this case, as in many others, a Constant Difference defines the groups. The difference between proj_end (or proj_start, it doesn't matter in this case) and the total duratiojn of the rows up to that date determines a group. The actual value of that difference means nothing to you or anybody else, so I used ROW_NUMBER in the query above to map those distinct values into consecutive integers 1, 2, 3, ... which are a much simpler way to identify the groups.
    Note that the query above only requires one pass through the table, and only requires one sub-query. It does not need a WITH clause; you could easily make got_grp an in-line view.
    If you used analytic functions (LEAD or LAG) to compute flag, and then to compute proj_grp (COUNT or SUM), you would need two sub-queries, one for each analytic function, but you would still only need one pass through the table. Also, those sub-queries could be in-line views; yiou would not need to use a WITH clause.

  • Reporting possible for this condition?

    hi friends,
    i have 100 records in my cebu, i need reporting like , except 5 th , 9th and 40th records. remaing records i need reporting. how can i make this report.
    Thanking u
    suneel.

    hi banu,
    thanks.
    i have sceneri like this
    c1   100
    c2   200
    c3   200
    c100  10,000.
    except c2 and c4 i need remaing customers and corresopondiong vaues for my report?
    how can i make.
    Thanking u
    suneel.

  • No category for this post

    This is about browsing the app store. I am tired of trying to browse the app store, because everytime I select an app to read up on and when I'm done reading up on it and I click the back button, it seem to always send me back to the beginning to start over again, so I never really get a chance to see what other apps is out there cause I get tired of starting over every time I view an app.

    Do you have a question?

Maybe you are looking for