Problem with the query result set * STILL a QUESTION *.

Summary

What I am tring to do is to return output to the data points that currently have no values.

* Here it is sample data for reasons explaining my question (my data set is MUCH bigger)

xTable
YEAR    PEOPLE    ITEMS    TYPE_NUMBER TYPE_DESC    CLASS
2010       1                 1              REG              1 
2010        2        3         2             MISC             1
2010        5        4         3             WEEK           1
2010                             1             REG              2
2010                             2             MISC             2
2010                             3             WEEK           2
2009       1                 1              REG              1 
2009        2        3         2             MISC             1
2009        5        4         3             WEEK           1
2009                             1             REG              2
2009                             2             MISC             2
2009                             3             WEEK           2

... (there's over 100 other unique CLASS values)
Desired output
YR     PEOPLE   ITEMS   TOTAL PEOPLE  TOTAL_ITEMS
2010         -            -            -                        -                         --  (Class 2 result set)

/* FYI, If i wanted the class 1 result set it would look like this:
YR     PEOPLE   ITEMS   TOTAL PEOPLE  TOTAL_ITEMS
2010        8       7             16                    14                       -- (Class 1 result set)*/
Oracle: 10.2 G
        select 2010 as yr,
                     nvl(f.people,'-') as people
                     nvl(f.items,'-') as items  
                     nvl(to_char(sum(f.people)),'-') as total_people,
                     nvl(to_char(sum(f.items)),'-') as total_items,
                     from Xtable,
                          (2010 as yr,
                          sum(items)as items
                          sum(people) as people
                          from xTable
                          where person_id = 99999
                          and   type_number in (1,2,3)
                          and year = 2010
                          and class = 2 
                          or class = 1
                          ) f
                     where person_id = 99999
                     and type_number in (1,2,3)
                     and yr = f.yr
                     and (year <= 2010 or year = 2010)
                     and (class = 2 or class = 1)
                     group by 
                     f.people,
                     f.items
Currently, the query above will return no rows.

Published by: user652714 on February 2, 2010 13:04

How about this?

SQL> WITH    xTable AS
  2  (
  3          SELECT 2010 AS YEAR, 1 AS PEOPLE, 0 AS ITEMS, 1 AS TYPE_NUMBER, 'REG' AS TYPE_DESC, 1 AS CLASS FROM DUAL UNION ALL
  4          SELECT 2010 AS YEAR, 2 AS PEOPLE, 3 AS ITEMS, 2 AS TYPE_NUMBER, 'MISC' AS TYPE_DESC, 1 AS CLASS FROM DUAL UNION ALL
  5          SELECT 2010 AS YEAR, 5 AS PEOPLE, 4 AS ITEMS, 3 AS TYPE_NUMBER, 'WEEK' AS TYPE_DESC, 1 AS CLASS FROM DUAL UNION ALL
  6          SELECT 2010 AS YEAR, NULL AS PEOPLE, NULL AS ITEMS, 1 AS TYPE_NUMBER, 'REG' AS TYPE_DESC, 2 AS CLASS FROM DUAL UNION ALL
  7          SELECT 2010 AS YEAR, NULL AS PEOPLE, NULL AS ITEMS, 2 AS TYPE_NUMBER, 'MISC' AS TYPE_DESC, 2 AS CLASS FROM DUAL UNION ALL
  8          SELECT 2010 AS YEAR, NULL AS PEOPLE, NULL AS ITEMS, 3 AS TYPE_NUMBER, 'WEEK' AS TYPE_DESC, 2 AS CLASS FROM DUAL
  9  )
 10  -- END SAMPLE DATA
 11  SELECT  YEAR
 12  ,       NVL(TO_CHAR(SUM(PEOPLE)),'-')    AS PEOPLE
 13  ,       NVL(TO_CHAR(SUM(ITEMS)),'-')     AS ITEMS
 14  ,       CLASS
 15  FROM    xTable
 16  WHERE   CLASS IN (1,2)
 17  AND     YEAR = 2010
 18  GROUP BY YEAR
 19  ,       CLASS
 20  ORDER BY CLASS DESC;

                YEAR PEOPLE ITEMS CLASS
-------------------- ------ ----- -----
                2010 -      -         2
                2010 8      7         1

Tags: Database

Similar Questions

  • I have a problem with the previous results of LEDs and indicators of compensation

    I'm working on a proper VI for my building project, but there is a problem... The project here is to define the occurrence of the error and the error type to decide what actions are required to protect the circuit. This isn't a problem here...

    The problem is when I run the VI for the first time... Everything is good and I got what I need... But when I run it after that... The new results to come out with the results of the first round... So my problem is with the previous results of LEDs and indicators of compensation

    Hope my question is clear and not confusing

    Well, show us a code instead. How do you call the VI?

    Have you tried the option: "properties of the VI... run... clear the flags when called?

  • problem with the query insert masking character @.

    Hi the gems...

    I do through xml schema, run... means using a batch file, I'll call the xml files and the xml file contains the names of files containing all the DDLs and LMD...

    No problem with the DDL...

    now when I run the LMD, all are working well except a few insert scripts...

    Insert into TABLE_NAME (EVENT_ID, EVENT_DESC, EVENT_MESSAGE_TEMPLATE, EVENT_MESSAGE_SUBJECT) values (4, 'abcdefgh',)
    'Hi,
    Order details:
    @Order_ID #.
    @Instrument_ID #.
    This is an automated email. Please do not reply.',
    "executed");

    This kind of scripts insert failed with the error "[ora: sqlplus] SP2-0310: could not open the file" Order_ID #, .sql.

    This problem is due to the @ character before the data...

    problem doesn't happen when I run the script explicitly, xml perform only the origin of the problem

    So, I need to know if there is a way to hide the sign @...

    Please help... Thanks in advance

    user12780416 wrote:
    "[ora: sqlplus] SP2-0310: could not open the file" Order_ID #, .sql.

    In SQL * more the @ character means: run a script. That would explain the error message.
    The real problem is that your chain is written on several lines. A string like this might work:

    {code}
    Insert into TABLE_NAME (EVENT_ID, EVENT_DESC, EVENT_MESSAGE_TEMPLATE, EVENT_MESSAGE_SUBJECT) values (4, 'abcdefgh',)
    "Hi," | Chr (10)
    ||' Order of details :'|| Chr (10)
    |' @Order_ID #' | Chr (10)
    |' @Instrument_ID #' | Chr (10)
    ||' This is an automated email. Please do not respond. »
    "executed");
    {code}

    But it might not be a usable workaound.
    As you create the string insert sort, you might be able to replace all line breaks in the present with you own custom lines.

    Replace (yourEventMessage, Chr (10), "' |) Chr (10): "')

  • Problem with the query in the form of customization mode

    Hi all

    Can you please help me I'm getting problem while doing the customization form

    Scenario:

    Marter dot org form that I need to display the default value in the field of the unit of MEASURE value is null

    I succeed while doing all the steps below

    Condition tab:
    ----------------------
    Trigger the same: ONCE - NEW - ITEM - INSTANCE
    Trigger object: MTL_SYSTEM_ITEMS. INVENTORY_ITEM_MIR

    Action tab:
    ------------------
    Type: property
    type of object: agenda
    Trigger object: MTL_SYSTEM_ITEMS. PRIMARY_UNIT_OF_MEASURE_MIR
    Property name: VALUE
    Value: null

    but the problem is when I try to query (F11) the form, I'm not able to ask please help me with the of this

    Thank you
    EABR

    The problem is, you assign a value to an element when the form is opened, so the form will update mode, so the system not allowing you to make the request (f11). If you clear the value that has been missed, you'd be able to F11.

    So instead set the VALUE, try the INITIAL_VALUE property and let me know if this worked for you.

    Thank you
    Pradeep

  • Keep the query results set all paging

    I have a query back thouands of records. For do not impact performance display and paging, which would be the best way without use of query caching? Is it possible to keep the first recordset query time she and her use in Exchange?

    Load balancing definitely throws a wrinkle by using shared memory.  There are ways to address these problems, but they all come with the pros and cons, just basically choose what pros like you and what the disadvantages that you can live with.

    I.E. you can use sessions.  So when a user first access your application, all future queries are sent to the same server that processes requests for first.  But this means that if this server will see, all users currently glued to it are s.o.l.

    I saw other people using databases for the persistent memory.  But then, you have the LAG involved in obtaining data from the database on every request, although it should be easy fast queries to do this.  Side pro, it does not matter which server processes the request.

    It would be different then just re - run the original query every time, but rather store the original query results into a temporary table space so that any complexity which may exist should not be repeated.

  • Problem with the release of setting in the form using get-esxcli

    Hello... I tried to format information obtained using get-esxcli.  According to me, the question is to do with the default value fit for the typpe of info I receive.  Instead of get 3 columns, with one row for each parameter name and its configured default information /, I get the following... Name                                          Default                                        Configured                                    ----                                          -------                                        ----------                                    {acpiDbgLevel, allowNonNX, auditMode, autoC... {0, FALSE, FALSE, TRUE,...}                    {0, FALSE, FALSE, TRUE,...} Is anyone able to help out how I can change the formatting to what I was... Here's the code... function get-55HOSTAdvancedSettings ($vmobj) {$55HOSTAdvancedSettingsreport = @ () ForEach ($esxhost in $vmobj) {$settings = (get-esxcli - vmhost $esxhost).system.settings.kernel.list ($false) $row = "" |}} Select-Object Name, by default, configured $row. Name = $settings. Name $row. Default = $settings. Default $row. Set $settings =. {Set $55HOSTAdvancedSettingsreport += $row} if ($OutputToCSV) {$55HOSTAdvancedSettingsreport |} {Export-Csv - NoTypeInformation - UseCulture-path $CSVOutput - Append} else {Write-output $55HOSTAdvancedSettingsreport}} thanks in advance

    With

    $esxcli.system.settings.kernel.list () | FT - AutoSize

    I get the result in three columns.

  • Problem with the query.

    I created these queries, but is based on the number of files w_Candidates_Pending, w_Candidates_Pending_Revoked this status I have to set one flag either 1, 2 or 3.

    1 = when 1 or more records for a candidate given pending status,.

    2 = when 1 or more records for a candidate given awaiting status revoked.

    3 = in another State.

    Can u please help me add County in the query and count on the basis, I put 1 one flag.

    WITH w_Pending AS

    (SELECT resource_status_id

    OF ems.resource_status

    WHERE resource_status_desc = 'pending '.

    ),

    w_Pending_Revoked AS

    (SELECT resource_status_id

    OF ems.resource_status

    WHERE resource_status_desc = 'revoke pending. "

    ),

    w_Candidates_Pending AS

    (SELECT DISTINCT ec.ems_candidate_id,

    Eres.resource_status_id,

    Eres.candidate_id

    Of ems_candidate ec,.

    employee_resources eres

    WHERE ec.ems_candidate_id = eres.candidate_id (+)

    AND eres.resource_status_id = (SELECT resource_status_id FROM w_Pending)

    AND eres.through_date IS NULL

    ),

    w_Candidates_Pending_Revoked AS

    (SELECT DISTINCT ec.ems_candidate_id,

    Eres.resource_status_id,

    Eres.candidate_id

    Of ems_candidate ec,.

    employee_resources eres

    WHERE ec.ems_candidate_id = eres.candidate_id (+)

    AND eres.resource_status_id = (SELECT resource_status_id FROM w_Pending_Revoked)

    AND eres.through_date IS NULL

    )

    SELECT DISTINCT CND.ems_candidate_id,

    CND. Name,

    EEJ.ems_job_id,

    (SELECT CASE WHEN COUNT (1) = 0 THEN ELSE 'ADD' END 'n')

    OF wCP w_Candidates_Pending

    WHERE wCP.candidate_id = cnd.ems_candidate_id) pending_flag;

    (SELECT CASE WHEN COUNT (1) = 0 'N' THEN ELSE 'REVOKE' END)

    OF w_Candidates_Pending_Revoked wCPR

    WHERE wCPR.candidate_id = cnd.ems_candidate_id) pending_revoked_flag

    OF ems.ems_candidate cnd.

    EMS.employee_resources err,

    EMS.ems_jobs EJE,

    Rsg EMS.resources_group,

    EMS. Groups grp

    WHERE cnd.ems_candidate_id = err.candidate_id

    AND eej.ems_job_id = cnd.ems_job_id (+)

    AND err.resource_group_id = rsg.resource_group_id

    AND rsg.group_id = grp.group_id

    AND err.through_date IS NULL

    AND IN grp.group_id

    (SELECT DISTINCT grpe.group_id

    Groups_employee grpe, employee emp

    WHERE grpe.person_id = emp.person_id

    AND grpe.person_id = i_logged_in_person_id);

    Maybe

    Select ems_candidate_id,

    name,

    ems_job_id,

    cases where count_pending > 0 and count_pending_revoke is null

    then 1

    When count_pending_revoke > 0 and count_pending is null

    then 2

    When count_pending > 0 and count_pending_revoke > 0

    then 3

    end indicator

    (Select cnd.ems_candidate_id,

    CND. Name,

    EEJ.ems_job_id,

    RSS.resource_status_id,

    RSS.resource_status_desc,

    ROW_NUMBER() over (partition of cnd.ems_candidate_id

    order of rss.resource_status_desc

    ) rn,.

    sum (case rss.resource_status_desc when 'waiting' then 1 end) on

    (cnd.ems_candidate_id order of value null partition

    lines between unbounded preceding and following unlimited

    ) count_pending,.

    sum (case rss.resource_status_desc when 'pending Revoke' then 1 end) on

    (cnd.ems_candidate_id order of value null partition

    lines between unbounded preceding and following unlimited

    ) count_pending_revoke,.

    Count (*) over (partition by order cnd.ems_candidate_id by null

    lines between unbounded preceding and following unlimited

    ) count_candidate_rows

    of ems.ems_candidate cnd.

    EMS.employee_resources err,

    EMS.ems_jobs EJE,

    Rsg EMS.resources_group,

    GRP EMS. Groups,

    EMS.resource_status rss

    where cnd.ems_candidate_id = err.candidate_id

    and eej.ems_job_id = cnd.ems_job_id (+)

    and err.resource_group_id = rsg.resource_group_id

    and rsg.group_id = grp.group_id

    and err.through_date is null

    and grp.group_id in (select distinct)

    GRPE.group_id

    of groups_employee grpe.

    employee emp

    where grpe.person_id = emp.person_id

    and grpe.person_id = i_logged_in_person_id

    )

    and err.resource_status_id = rss.resource_status_id

    )

    where rn = 1

    Concerning

    Etbin

  • Problem with the query and date

    I'm trying to show only the specific results in my query based on the following:

    If the 'agreedate' is greater than today's date, less than 60 days, show it. Otherwise I don't want results.

    I always get the results of the last year and I don't know why.

    Here is my code:

    <!-the value date today less than 60 days. This works and shows the correct date->

    < cfset invitelimit = #now () # >
    < cfset invitelimit = #DateFormat (DateAdd (would be ', - 60, invitelimit), 'dd-mm-yyyy') #.

    <! - query items from the db and try to catch only to those with a more agreedate then the invitelimit date - >


    < name cfquery = "qinvite" datasource = "#Application.ds #" >

    SELECT DISTINCT * from team a

    INNER JOIN followed b ON a.id = b.team_id
    INNER JOIN termsagreement c ON a.login = c.login

    WHERE c.agreedate > #invitelimit # AND b.comp_id = 0

    Group By a.teamname

    < / cfquery >

    First of all.  Confirm that the "argeedate" column is a datetime column.  Not another type of data that would be much more difficult to work with.

    Secondly, you should provide an appropriate database datetime value.  The easiest way would be with the tag.

    I.E.

    WHERE

    c.agreedate > AND

    b.comp_id =

  • Problem with the tag 'Bld_localDestDir' setting before generation VI: project gets registered in previous localDestDir.

    Hey all,.

    I write a VI before generation that updates the destination of the building (and other elements, but we are ignoring those which for the moment). This pre-generation vi, when it is running, enters the Destination of the tag "Bld_localDestDir" directory and modifies the directory by incrementing a version number.

    The issue I'm having is that after the pre-build vi is executed, the construction continues and the executable file in the * previous * Destination directory instead of the update.

    Example:

    Destination dir = c:\temp\version1 --> choose to build the executable--> VI pre-build runs and sets of Destination Dir to c:\temp\version2 --> Build over and said 'You can locate the building to C:\temp\version1'--> check the build properties, destination dir is C:\temp\version2 --> build again--> pre-build runs and destination updates to version 3 --> Build finishes and says 'you can locate the building to C:\temp\version2'--> generation of recording properties destination dir is C:\temp\version3

    And so on and so forth. As you can see, the setting of the tag works (as evidenced by the properties build updated). However, it seems that the destination directory for the generation that is determined and set * before * the prior generation VI is managed. In my opinion, this is not expected behavior.

    Here is an excerpt of a watered-down version of the code, which still has the issue. I've also attached the full VI, saved to LV2010.

    The attached VI will enter the version number of the build, add to the title bar of the start vi, update the destinations to build a new path that has the version number, and then save the project.

    As a final note, I would prefer not to use a post-build VI to rename the directory in the build.

    It is not recommended to use this approach to change the settings of the Application Builder. While the code of the app Builder uses the values in the tags, it potentially treats information and so simple updating of the values may not the desired effect.

    The steps in pre/Post build that we intended to allow users to run code before and after their own processing code or perform actions not conducted by Application Builder (i.e. control source files before generating or move files to a destination of export). Any attempt to change the configuration settings after the construction began, once again, is not recommended and (as you have seen) may cause unexpected behavior.

  • Problems with the gradient tool bar still is not on the article applied in illustrator cc

    Hello

    When you apply a gradient to a rectangle I get the gradient tool, click on the half left of the object, that I want applied and while you hold, drag a line to right thew of the object. the problem when I release the mouse in the gradient bar that showed all hold, and then disappears. This is the case of the gradient, but the problem is that any gradient editing must be performed on the degraded as a set window to live on the object, slowing the flow of work.

    I'm not sure what I'm doing wrong but help would be much appreciated.

    Kind regards

    Joseph

    View > Show gradient annotator is turned on?

  • Problem with the Table result variable

    When you save a document structured in XML, the Table Continuation variable is translated to an entity named "fm.tcont".

    Strangely, the content of the entity is a control character (0 x 11). The file is saved in XML format, but the Analyzer Returns an error,

    Error message to the file d:\test\100219\doc_test.xml.1F0, line 31, char 22,: Invalid character (Unicode: 0 x 11)
    Error on line 31, tank 24, Message: expected a value of literal entity or PUBLIC/SYSTEM identifier
    Parse error on line 31, tank 20: not well formed (invalid token)
    The abandoned analysis.

    The contents of the variable nothing suspicious, it's just '(continued)', where the first character is a normal space.

    If someone had the same problem and knows how to fix?

    It's on FM8.0p277 on Windows XP.

    Thank you very much in advance,

    Johannes

    Johannes,

    I don't have the direct response, because I've never tried. But my EDD has a TableContinuation element that is empty; ESD inserts the table continuation variable. When you export to XML, the element is there as a "marker"; It has NO content. When open in the frame, ESD inserts the variable again. My reasoning is that the table continuation variable has meaning ONLY within FrameMaker. It's a formatting object, not a content container. No post processing of the XML data would not need if so, ITS engine could provide what it is able to understand.

    Anyway, here's how I deal with it.

    Good luck
    Van

  • Problem with the query operation using less

    Hi all

    I have the dataset of all organization numbers like as below

    DataSet:

    ('528801', '528802', '536101', '536102', '100601 ', '536401', ' 536402 ', ' 530701',' 536501', ' 536502 ', ' 540501',' 599101 ', ' 133301',)
    ('531101', '143101', '536601', '536602', '534401 ', '535501', ' 535401', ' 536801 ', ' 536802',' 531001 ', ' 537501',' 537502 ', ' 540601',' 540801 ', ' 528401')

    And I also have a W_INT_ORG_D table where in a column like ORG_NUM that contains the figures of the Organization in the database, now I'll try to find the numbers of the exclusive organization in the value data that does not exist in W_INT_ORG_D using an oracle sql query.

    Here is the sql code I wrote well that my request is wrong you could probably understand what I'm trying to say or do, I'm not ok with creating another table and filled in the data and compare two tables later, I want to do it without creating any additional table. Please let me know if you have an idea to do this, appreciate your time.

    Request:_
    WITH ABC AS
    ('528801', '528802', '536101', '536102', '100601 ', '536401', ' 536402 ', ' 530701',' 536501', ' 536502 ', ' 540501',' 599101 ', ' 133301',)
    ('531101', '143101', '536601', '536602', '534401 ', '535501', ' 535401', ' 536801 ', ' 536802',' 531001 ', ' 537501',' 537502 ', ' 540601',' 540801 ', ' 528401')
    SELECT DISTINCT ORG_NUM
    OF W_INT_ORG_D, ABC
    WHERE DATASOURCE_NUM_ID = ' 211 '.
    AND ORG_NUM IN
    ('528801', '528802', '536101', '536102', '100601 ', '536401', ' 536402 ', ' 530701',' 536501', ' 536502 ', ' 540501',' 599101 ', ' 133301',)
    ('531101', '143101', '536601', '536602', '534401 ', '535501', ' 535401', ' 536801 ', ' 536802',' 531001 ', ' 537501',' 537502 ', ' 540601',' 540801 ', ' 528401')
    LESS
    SELECT * FROM ABC
    Thank you
    Sam

    This wil give a list of numbers of overall organization of data that are not present in the view:

     SELECT column_value org_num
       FROM TABLE(sys.odciVarchar2List(
                                       '528801',
                                       '528802',
                                       '536101',
                                       '536102',
                                       '100601',
                                       '536401',
                                       '536402',
                                       '530701',
                                       '536501',
                                       '536502',
                                       '540501',
                                       '599101',
                                       '133301',
                                       '531101',
                                       '143101',
                                       '536601',
                                       '536602',
                                       '534401',
                                       '535501',
                                       '535401',
                                       '536801',
                                       '536802',
                                       '531001',
                                       '537501',
                                       '537502',
                                       '540601',
                                       '540801',
                                       '528401'
                                      )
                 )
    MINUS
     SELECT  DISTINCT ORG_NUM
       FROM  W_INT_ORG_D
       WHERE DATASOURCE_NUM_ID='211'
    /
    

    SY.

    Published by: Solomon Yakobson, June 29, 2009 10:49

  • Problem with the default printer setting.

    My default printer setting is changed without doing me it. This can be avoided?

    Thank you. I did this. I also installed the Thirdring app and it works a treat, so I'll see how things are going in the future. Thanks for your helpful tips.

    Ian

  • Problem with the background color setting

    Hello

    I have the following code

    public class Loading_Menu extends MainScreen {
        public Loading_Menu()
        {
            MainScreen newScreen = new MainScreen(Manager.NO_VERTICAL_SCROLL|Manager.NO_VERTICAL_SCROLLBAR);
            VerticalFieldManager backgroundManager = new VerticalFieldManager(Manager.USE_ALL_WIDTH|Manager.USE_ALL_HEIGHT)
            {
                protected void paint(Graphics graphics) {
                    graphics.setBackgroundColor(Color.BLACK);
                    graphics.clear();
                    super.paint(graphics);
                }
            };
            Bitmap appLogo = Bitmap.getBitmapResource("Breakout_Logo.png");
            BitmapField bmf = new BitmapField(appLogo, BitmapField.FOCUSABLE)
            {
                protected boolean navigationClick(int status, int time)
                {
                    Main_Menu myMethod = new Main_Menu();
                    myMethod.createAndDisplayMainMenu();
                    close();
                    return true;
                }
            };
    
            int leftMargin = (Display.getWidth() - bmf.getBitmapWidth()) >> 1;
            int topMargin = (Display.getHeight() - bmf.getBitmapHeight()) >> 1;
            bmf.setMargin(topMargin, 0, 0, leftMargin);
            add(bmf);
            newScreen.add(backgroundManager);
        }
    }
    

    My goal is to show the bitmap in the center of the screen and have a black background behind the image. in its current form the image shows in the Center, but the screen remains white. Can someone explain and point out my mistake?

    Thank you

    Hi Peter,.

    no problem, here is how I solved the problem. I just added an override of the method paint and this placed in a vertical field Manager

    VerticalFieldManager backgroundManager = new VerticalFieldManager(Manager.USE_ALL_WIDTH|Manager.USE_ALL_HEIGHT|Manager.NO_VERTICAL_SCROLL|Manager.NO_VERTICAL_SCROLLBAR)
            {
                protected void paint(Graphics graphics) {
                    graphics.setBackgroundColor(0x0000A2E8);
                    graphics.clear();
                    super.paint(graphics);
                }
            };
    
            LabelField lb = new LabelField("Hello");
            backgroundManager.add(lb);
    
            add(backgroundManager);
    
  • Problem creating a hierarchical tree in the generator of forms [problem with the query]

    Hi all

    I have 2 tables.

    box (box_id, box_name)

    point (item_id, nom_element, box_id)

    There are several items in a box.

    I want to create a HIERARCHICAL tree to display items that are present in each box.

    AS:

    | - BOX1
    | |-ITEM 1
    | | - ITEM 2
    |
    | - BOX2
    | |-ITEM 1
    | | - ITEM 2

    I'm trying this query:

    SELECT-1 State, box_name, box_id, "icon" val
    in zone b, point i;

    I don't know what the value for upgrade, I don't know how the code part "connect by front.

    Could you please tell me?

    Michael.

    PS. then I'll eventually use this query in the form designer.

    Hi MichaelR

    I'm getting the FRM - 47321 error in forms Builder...

    That's why In order to fill a tree, the select must recover 5 columns:
    STATUS, LEVEL, LABEL, ICON, u-VALUE should be noted this command in your application, this will resolve the error and pls notice that the...

    My advice is to use the online help in your form generator to help u in this...

    Initial state : number
    Node tree depth : number
    Label for the node : varchar2
    Icon for the node : varchar2
    Data : varchar2
    

    This must be a TIME NEW FORM INSTANCE trigger to fill your tree...

    Another thing why do you think of building your tree I've done here in the following example... Pls take a look here....

    I hope this helps...

    Kind regards

    Amatu Allah.

Maybe you are looking for