Column group to hide

Hello

In the application, we used an array (of type "Advanced Table") and under that I need a column to get hidden in the table. When I navigate to see the columns via the link 'Customize' for the table, I got to know the column I need to be to hide is represented in the form of column group. And under this column group, it has a subcategory of may columns found under him.

It will be ok if I hide only the required column under column group by setting the property to 'false' or do I have to hide the Group column full of itself?

Advice needed...


With our thanks,
Trehout

Please go by setting the property of the column to false (according to your features). To avoid any problems.

If you see something suspicious, please let us know.

Concerning
Sumit

Tags: Oracle Applications

Similar Questions

  • Columns group apex 4 classic report

    Hello

    Does anyone know how to group the columns classic report? I use 4 Apex.

    Thank you.
    Andy

    Simple. Create a named column (model line). Use the col/colgroup HTML and th elements and the colspan attribute to structure the headers and column groups in the definition of the model lines before :

    Complete the rest of the model if necessary.

  • Select the table column group and generate a sequence number

    I have to select data from a table column group and generate a sequence for every reset of the sequence from 1 to leave.

    For example:

    Data:
    Col1 Col2 Col3 Col4
    A NA KA-2009-08-13
    B NA KA-2009-08-13
    C NA KA-2009-08-13
    A NA KA-2009-08-13
    B NA KA-2009-08-13
    A NA KA-2009-08-13

    Expected results of the Select statement:
    Col1 Col2 Col3 Col4 Seq_No
    A NA KA-2009-08-13 1
    A NA KA-2009-08-13 2
    A NA KA-2009-08-13 3
    B NA KA-2009-08-13 1
    B NA KA-2009-08-13 2
    C NA KA-2009-08-13 1

    How can it be possible with a SELECT statement? Is it possible to assign the following numbers for a group of columns and put it back when it changes? In the above example, all columns are the key to generate the seq number

    I know that this can be done using procedures stored and that is how I do it now by introducing a temporary table.

    Can someone help me with this? Please let me know if the question is too vague to understand!

    Thank you
    Nachi

    Use the row_number() analytics.

    Ravi Kumar

  • Why only a Yahoo Group displays the column group name?

    I belong to several Yahoo groups and get individual emails from 3 of them. They all worked well until May 8, 2014, when the Freex news group began to display only "[email protected]" in the column. It's always like that. I can't be sure it's a Yahoo problem, like the other groups I am a member of display the senders display name and e-mail address.
    The attachment is a snip of the CT showing how it was and how it has changed.
    Please tell us how to get back to the display names and addresses.

    locate this address in your address book, and then delete.

  • Table as columns grouped in Advanced Datagrid?

    Greetings,

    I have the following collection that I want to display in a datagrid advanced as hierarchical and grouped data. The year is a table inside each line that needs to be bundled with its label as HeaderText and columns under each group should be required and Completed.

    [Bindable]
    private var summary:ArrayCollection = new ArrayCollection([  
         {Value:"Survey ABCD", Year:[{Label:2013, Requested:10, Completed:7}, {Label:2012, Requested:10, Completed:7}, {Label:2011, Requested:10, Completed:7}], categories: [
              {Value:"D-X13", Year:[{Label:2013, Requested:10, Completed:7}, {Label:2012, Requested:10, Completed:7}, {Label:2011, Requested:10, Completed:7}],  categories:[
                {Value:"T-5432", Year:[{Label:2013, Requested:10, Completed:7}, {Label:2012, Requested:10, Completed:7}, {Label:2011, Requested:10, Completed:7}], categories:[
                     {Value:"101", Year:[{Label:2013, Requested:10, Completed:7}, {Label:2012, Requested:10, Completed:7}, {Label:2011, Requested:10, Completed:7}] },
                     {Value:"102", Year:[{Label:2013, Requested:10, Completed:7}, {Label:2012, Requested:10, Completed:7}, {Label:2011, Requested:10, Completed:7}] },
                     {Value:"103", Year:[{Label:2013, Requested:10, Completed:7}, {Label:2012, Requested:10, Completed:7}, {Label:2011, Requested:10, Completed:7}] },
                     {Value:"104", Year:[{Label:2013, Requested:10, Completed:7}, {Label:2012, Requested:10, Completed:7}, {Label:2011, Requested:10, Completed:7}] }
                  ]} 
              ]}
         ]},
      
         {Value:"Survey Matrix", Year:[{Label:2013, Requested:10, Completed:7}, {Label:2012, Requested:10, Completed:7}, {Label:2011, Requested:10, Completed:7}], categories: [
              {Value:"D-X312", Year:[{Label:2013, Requested:10, Completed:7}, {Label:2012, Requested:10, Completed:7}, {Label:2011, Requested:10, Completed:7}], categories:[
                   {Value:"T-1235", Year:[{Label:2013, Requested:10, Completed:7}, {Label:2012, Requested:10, Completed:7}, {Label:2011, Requested:10, Completed:7}], categories:[
                     {Value:"201",Year:[{Label:2013, Requested:10, Completed:7}, {Label:2012, Requested:10, Completed:7}, {Label:2011, Requested:10, Completed:7}]},
                     {Value:"202",Year:[{Label:2013, Requested:10, Completed:7}, {Label:2012, Requested:10, Completed:7}, {Label:2011, Requested:10, Completed:7}]},
                     {Value:"203",Year:[{Label:2013, Requested:10, Completed:7}, {Label:2012, Requested:10, Completed:7}, {Label:2011, Requested:10, Completed:7}]},
                     {Value:"204",Year:[{Label:2013, Requested:10, Completed:7}, {Label:2012, Requested:10, Completed:7}, {Label:2011, Requested:10, Completed:7}]}
                  ]},
              
             {Value:"T-7652", Year:[{Label:2013, Requested:10, Completed:7}, {Label:2012, Requested:10, Completed:7}, {Label:2011, Requested:10, Completed:7}], categories:[
               {Value:"211",Year:[{Label:2013, Requested:10, Completed:7}, {Label:2012, Requested:10, Completed:7}, {Label:2011, Requested:10, Completed:7}]},
               {Value:"212",Year:[{Label:2013, Requested:10, Completed:7}, {Label:2012, Requested:10, Completed:7}, {Label:2011, Requested:10, Completed:7}]},
               {Value:"213",Year:[{Label:2013, Requested:10, Completed:7}, {Label:2012, Requested:10, Completed:7}, {Label:2011, Requested:10, Completed:7}]},
               {Value:"214",Year:[{Label:2013, Requested:10, Completed:7}, {Label:2012, Requested:10, Completed:7}, {Label:2011, Requested:10, Completed:7}]}
            ]} 
           ]}
         ]} 
      
    ]);
    
    
    

    Here is my code that I have tried and it doesn't work, please help me fix. Thanks in advance.

    <mx:AdvancedDataGrid id="surveyGrid"
         sortExpertMode="true"
         width="100%" height="100%">
      
                               <mx:dataProvider> 
                                            <mx:HierarchicalData source="{summary}" childrenField="categories"/>
                                  </mx:dataProvider>
      
                                  <mx:groupedColumns>
                                            <mx:AdvancedDataGridColumn headerText="Surveys per Value" dataField="Value"/>
                                                   
                                                      <!-- this isn't as I want it -->
                                            <!--<mx:AdvancedDataGridColumnGroup headerText="2013" dataField="Year[0]">
                                                      <mx:AdvancedDataGridColumn headerText="Requested" dataField="Requested"/>
                                                      <mx:AdvancedDataGridColumn headerText="Completed" dataField="Completed"/>
                                            </mx:AdvancedDataGridColumnGroup>
      
                                            <mx:AdvancedDataGridColumnGroup headerText="2012" dataField="Year[1]">
                                                      <mx:AdvancedDataGridColumn headerText="Requested" dataField="Requested"/>
                                                      <mx:AdvancedDataGridColumn headerText="Completed" dataField="Completed"/>
                                            </mx:AdvancedDataGridColumnGroup>
      
                                            <mx:AdvancedDataGridColumnGroup headerText="2011" dataField="Year[2]">
                                                      <mx:AdvancedDataGridColumn headerText="Requested" dataField="Requested"/>
                                                      <mx:AdvancedDataGridColumn headerText="Completed" dataField="Completed"/>
                                            </mx:AdvancedDataGridColumnGroup>-->
      
                                  </mx:groupedColumns> 
      
                        </mx:AdvancedDataGrid>
    
    protected function creationCompleteHandler(event:FlexEvent):void {
      
      
                                            var columns:ArrayCollection = new ArrayCollection(surveyGrid.groupedColumns);
                                            var years:Array = summary.getItemAt(0).Year as Array;
      
                                            for each (var year:Object in years) {
      
                                                      var gridGroup:AdvancedDataGridColumnGroup = new AdvancedDataGridColumnGroup(year.Label);
      
                                                      var requested:AdvancedDataGridColumn = new AdvancedDataGridColumn("Requested");
                                                      var completed:AdvancedDataGridColumn = new AdvancedDataGridColumn("Completed"); 
      
                                                      gridGroup.children = [requested, completed]; 
                                                      columns.addItem(gridGroup); 
      
                                            }
      
                                            surveyGrid.groupedColumns = columns.toArray(); 
                                  }
    
    
    

    Best regards

    Ahmed.

    I am able to fix it a little weird.

    On the complete creation of my application, I'm calling the next method. Where requested.dataTipField = columnIndex.toString (); stores the index of the year.

    protected function creationCompleteHandler(event:FlexEvent):void {
    
                                            var columns:ArrayCollection = new ArrayCollection(surveyGrid.groupedColumns);                                        var years:Array = summary.getItemAt(0).Year as Array;
    
                                            for (var columnIndex:int = 0; columnIndex < years.length; columnIndex++) {
    
                                                      var year:Object = years[columnIndex];
    
                                                      var gridGroup:AdvancedDataGridColumnGroup = new AdvancedDataGridColumnGroup(year.Label);
    
                                                      var requested:AdvancedDataGridColumn = new AdvancedDataGridColumn("Requested");                                                  requested.dataTipField = columnIndex.toString();                                                  requested.itemRenderer = new ClassFactory(YearGridRenderer);
    
                                                      var completed:AdvancedDataGridColumn = new AdvancedDataGridColumn("Completed");                                                  completed.dataTipField = columnIndex.toString();                                                  completed.itemRenderer = new ClassFactory(YearGridRenderer);
    
                                                      gridGroup.children = [requested, completed];                                                   columns.addItem(gridGroup); 
    
                                            }
    
                                            surveyGrid.groupedColumns = columns.toArray();                               } 
    

    Then associate ItemRenderer did the trick.

    
    
    http://ns.adobe.com/mxml/2009" 
    
                                                                                      xmlns:s="library://ns.adobe.com/flex/spark" 
    
                                                                                      xmlns:mx="library://ns.adobe.com/flex/mx" 
    
                                                                                      focusEnabled="true" width="100%" 
    
                                                                                      clipAndEnableScrolling="true">
    
              
    
                        
    
              
    
              
    
                        
    
              
    
              
    
    
    
    
    

    Best regards

    Ahmed.

  • REP - 1213 reference frequency below his column group

    Hello

    In a report (6i) he demonstrated error like "REP - 1213 F_SUM_COLLECTIONS_RATIO field.
    Column CS_COLLECTION_RATIO at a frequency lower than the reference group.
    I know, it is a problem to repeat the image problem: -.

    1. How can I check this error? And how can solve this problem?

    Note: -.

    Structure of the report is like that: -.
    ---------------------------------------------------------------------------------------------------------------
    sales Man | Sales | Sales_ratio | Collection | Collection_ratio | Sales/Collection_ratio
    ---------------------------------------------------------------------------------------------------------------

    ----------------------------------------------------------------------------------------------------------------
    Total: 100% * 100% * %
    ---------------------------------------------------------------------------------------------------------------

    In this sales_ratio, the collection_ratio, the sales? Coll._ratio I added columns formulas Corr. and create summaries
    Corr. of columns each.
    This summary columns having some problem.

    Hi Ngoyi,

    Where did you create your analytical column fields? Seeing your example of report, it seems there is no grouping. In this case create an analytical column outside of the design of your query (extensible data block) and there, you can call the fields and set the property to reset to the report. Make sure, when you add these fields in the report, place the fields outside of your extensible framework.

    Concerning

    MP

  • Diff between 2 columns, grouping, based on positive or negative diff display

    I have a table with columns for the purchase of Member, Member of sale, buy value and sell value. I need code of the group member. Each Member may only appear on the buy or sell side side according to result of the gale.

    For example, if the Member M1 a buy 150 and sell 50, net is buy 100. For example, in the output, it should look like:

    Members | Buy | Sell
    M1 | 100. 0

    I get confused in obtaining this result because in the table data will look something like this:

    Buy_member | Sell_Member | Buy | Sell |
    M1 | M2 | 50. 0
    M1 | M3 | 100. 0
    M2 | M1 | 0 | 50

    As you can see, the M1 is buy_member and sell_member columns. I need to combine these two to get the net purchase.

    Any help is appreciated.

    Your sample shows one way deals (either buy or sell amount is 0). If there is a bilateral agreement (both buy and sell quantities are not 0), use:

    with t as (
               select 'M1' buy_member,'M2' sell_member,50 buy,0 sell from dual union all
               select 'M1','M3',100,0 from dual union all
               select 'M2','M1',0,50 from dual
              )
    select  member,
            case when sum(buy_amount + sell_amount) > 0 then sum(buy_amount + sell_amount) else 0 end buy,
            case when sum(buy_amount + sell_amount) > 0 then 0 else -sum(buy_amount + sell_amount) end sell
      from  (
              select  buy_member member,
                      buy - sell buy_amount,
                      0 sell_amount
                from  t
             union all
              select  sell_member member,
                      0 buy_amount,
                      buy - sell sell_amount
                from  t
            )
      group by member
      order by member
    /
    
    ME        BUY       SELL
    -- ---------- ----------
    M1        100          0
    M2          0          0
    M3        100          0
    
    SQL> 
    
    with t as (
               select 'M1' buy_member,'M2' sell_member,50 buy,100 sell from dual union all
               select 'M1','M3',100,50 from dual union all
               select 'M2','M1',70,50 from dual
              )
    select  member,
            case when sum(buy_amount + sell_amount) > 0 then sum(buy_amount + sell_amount) else 0 end buy,
            case when sum(buy_amount + sell_amount) > 0 then 0 else -sum(buy_amount + sell_amount) end sell
      from  (
              select  buy_member member,
                      buy - sell buy_amount,
                      0 sell_amount
                from  t
             union all
              select  sell_member member,
                      0 buy_amount,
                      buy - sell sell_amount
                from  t
            )
      group by member
      order by member
    /
    
    ME        BUY       SELL
    -- ---------- ----------
    M1         20          0
    M2          0         30
    M3         50          0
    
    SQL> 
    

    SY.

  • return data other columns that depends on only one column group

    version Oracle 9.2.0.6

    Data
    ID, lot, section, dp_number, nbr_of_dwellings, connection_date
    "0007958579", 1, 1135994, 0, 0
    "0007958579", 2, 1135994, 1, 19670412
    136516, '0185510811', 1, 0, 0
    "0185510811", 1, 554594, 0, 20061101
    "0185510811", 4, 554594, 0, 20061101
    "0185510811", 1, 998827, 1, 0

    According to the above data, I would like to reproduce an MS Access query that uses the first function in the ' group of ' query '.
    Group by on the id column value and max columns nbr_of_dwellings and connection_date

    I'm looking results
    "0007958579", 1, 1135994, 1, 19670412
    "0185510811", 1, 136516, 1, 20061101

    Than you for your answer
    I'm looking for the query is to be grouped by Id and return the max values for the two columns and the section much Dp_number as a subgroup if I explained this correctly.
    i.e.
    "0185510811", 11, 136516, 1, 20061101 or
    "0185510811", 1, 554594, 1, 20061101 or
    "0185510811", 4, 554594, 1, 20061101 or
    "0185510811", 1, 998827, 1, 20061101
    an acceptable return within the group by ID

    Published by: user4147537 on August 2, 2009 22:51

    Hello
    I think you are looking for, try it. Change with your table name test2.

    SELECT   t2.ID, z.lot, z.section, z.dp_number, MAX (t2.nbr_of_dwellings),
             MAX (t2.connection_date)
        FROM test2 t2,
             (SELECT ID, lot, section, dp_number
                FROM (SELECT t2.ID, t2.lot, t2.section, t2.dp_number,
                             ROW_NUMBER () OVER (PARTITION BY t2.ID ORDER BY t2.ID)
                                                                            AS rn
                        FROM test2 t2)
               WHERE rn = 1) z
       WHERE t2.ID = z.ID
    GROUP BY t2.ID, z.lot, z.section, z.dp_number;
    

    Output is

    ---------------             ---------- ----- ----------    ----------   ----------
    0185510811               1           998827          1   20061101
    0007958579               1          1135994          1   19670412
    

    Please indicate if it helps you or correct

    Kind regards
    Danish

    Published by: Danish on August 3, 2009 11:33

    Published by: Danish on August 3, 2009 11:36

  • Main Infrastructure 3.1: Custom column groups and inventory?

    Hello

    Is there a way to display the SysLocation value in hardware inventory PI 3.1 lists?

    Thank you

    Setting upper-right icon.

    Select column, check the box location

  • How to change the filter to the filter by another column - group calendar page 1

    Any version of the Summit either 4.2 or 5.0 - windows 7 OS

    I know it's a very simple question, but I can't understand this.

    I want to change the filter on the group calendar page 1 of the default "Event status" below

    filter1.PNG

    The only code that I find is shown below.

    filter2.PNG

    I added my own selection list of the button with the following code bar

    < tt > Select GroupName, group_id from EBA_CA_EMAIL_GROUPS ORDER BY GroupName < /tt >

    But when I change the selection list from one option to the other that the calendar is not sorted by events that have particular GroupName. I tried to replace the code in the default selection list and it did not work. There must be another code, check the filter.

    How can I add my own list of selection and filter calendar events based on that select list option is selected?

    Richie V wrote:

    Any version of the Summit either 4.2 or 5.0 - windows 7 OS

    I know it's a very simple question, but I can't understand this.

    I want to change the filter on the group calendar page 1 of the default "Event status" below

    I added my own selection list of the button with the following code bar

    Select GroupName, group_id from EBA_CA_EMAIL_GROUPS ORDER BY GroupName

    But when I change the selection list from one option to the other that the calendar is not sorted by events that have particular GroupName.

    Probably you meant 'filtered' rather than 'sort '?

    I tried to replace the code in the default selection list and it did not work. There must be another code, check the filter.

    In the Group APEX 5.0 calendar application, the filter is implemented in line 20 of the schedule area source query:

    select e.event_id,
          case when et.display_color is not null then
                'apex-cal-'||
                (select lower(cp.color_name) from eba_ca_color_prefs cp where cp.bg_color = et.display_color)
          end css_class,
          e.event_name,
          case when e.display_time = 'N'
                then trunc(e.event_date_time)
                else e.event_date_time
                end event_date_time,
          to_char(e.event_date_time,v('APP_TIME_FORMAT')) disp_time,
          substr (
          case when to_char(e.event_date_time,'MI') = '00' then
                ltrim(to_char(e.event_date_time,'HHam'),'0')
            else
                ltrim(to_char(e.event_date_time,'HH:MIam'),'0')
            end|| ' '||e.event_name,1,255) disp_col
      from EBA_ca_events e,
          EBA_ca_event_types et
    where (:P1_EVENT_TYPE = e.type_id or :P1_EVENT_TYPE is null)
      and e.type_id = et.type_id (+)
    

    with P1_EVENT_TYPE being included in the property of the region and by using the action Elements of the Page to send dynamic update schedule to trigger a refresh of partial page in the calendar area.

    How can I add my own list of selection and filter calendar events based on that select list option is selected?

    1 create your filter as a copy the item P1_EVENT_TYPE item.

    2. replace the LOV definition by the code you need.

    3. Add the necessary filter predicate in the WHERE clause of the query source region.

    4. Add the name of your filter element to the region of the Items property of the Page to send.

    5. Add the name of your item to the Items property in the when section of action Dynamics to update the calendar .

  • Restart rank comes not correct based on column group

    Hello PL/SQL gurus and experts.


    I use Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64-bit Production version
    I have table-

    drop table t2;
    create table t2(Hospital,Test_Range,Total) as select
    'Batra','> 10 Mph','20000' from dual union all select
    'Fortis','1-3 Mph','24500' from dual union all select
    'Max','5-10 Mph','10600' from dual union all select
    'Columbia','< 1 Mph','27700' from dual union all select
    'Nimhans','< 1 Mph','50000' from dual union all select
    'Meenam','< 1 Mph','11000' from dual union all select
    'Meeran','5-10 Mph','24625' from dual union all select
    'Mnagamani','> 10 Mph','12000' from dual union all select
    'Murari','> 10 Mph','20600' from dual union all select
    'Triveni','5-10 Mph','16500' from dual union all select
    'Batra','5-10 Mph','14700' from dual union all select
    'Max','< 1 Mph','170000' from dual union all select
    'Apollo Medical Centre','> 10 Mph','19000' from dual union all select
    'MLal','1-3 Mph','22600' from dual union all select    
    'Columbia','< 1 Mph','28900' from dual union all select
    'Asian','1-3 Mph','27900' from dual union all select
    'A.G.M.','< 1 Mph','22700' from dual union all select
    'Aashiana','5-10 Mph','23450' from dual union all select
    'Amar Hospital','1-3 Mph','21325' from dual union all select
    'Childs Trust','5-10 Mph','22775' from dual union all select
    'Crescent ','< 1 Mph','20025' from dual;
    

    I use the following DML-

    select Test_Range "Test_Range",
    SUM (Total) "Total",
    decode(grouping(Hospital), 0, Hospital, 'Total') "Hospital",
    decode(grouping(Hospital), 0, max(rank), null) Rank
    from
    (
    SELECT Hospital,
             Test_Range,
             SUM (Total) Total,
             DENSE_RANK ()
                OVER (PARTITION BY test_range || Hospital ORDER BY SUM (Total) DESC)
                AS RANK,
             ROW_NUMBER ()
                OVER (PARTITION BY test_range || Hospital ORDER BY SUM (Total) DESC)
                AS rk
        FROM t2
    GROUP BY Hospital, Test_Range
    )
    group by grouping sets((Hospital, Test_Range),())
    order by Test_Range, Rank;
    

    Get the following output-

    Test_Ran      Total Hospital                    RANK
    -------- ---------- --------------------- ----------
    1-3 Mph       24500 Fortis                         1
    1-3 Mph       21325 Amar Hospital                  1
    1-3 Mph       22600 MLal                           1
    1-3 Mph       27900 Asian                          1
    5-10 Mph      14700 Batra                          1
    5-10 Mph      22775 Childs Trust                   1
    5-10 Mph      10600 Max                            1
    5-10 Mph      23450 Aashiana                       1
    5-10 Mph      16500 Triveni                        1
    5-10 Mph      24625 Meeran                         1
    < 1 Mph       20025 Crescent                       1
    Test_Ran      Total Hospital                    RANK
    -------- ---------- --------------------- ----------
    < 1 Mph       50000 Nimhans                        1
    < 1 Mph       56600 Columbia                       1
    < 1 Mph       11000 Meenam                         1
    < 1 Mph      170000 Max                            1
    < 1 Mph       22700 A.G.M.                         1
    > 10 Mph      12000 Mnagamani                      1
    > 10 Mph      20000 Batra                          1
    > 10 Mph      20600 Murari                         1
    > 10 Mph      19000 Apollo Medical Centre          1
                 610900 Total
    21 rows selected.
    

    While I am looking for following output-

    Test_Ran      Total Hospital                    RANK
    -------- ---------- --------------------- ----------
    1-3 Mph       27900 Asian                          1
    1-3 Mph       24500 Fortis                         2
    1-3 Mph       22600 MLal                           3
    1-3 Mph       21325 Amar Hospital                  4
    5-10 Mph      24625 Meeran                         1
    5-10 Mph      23450 Aashiana                       2
    5-10 Mph      22775 Childs Trust                   3
    5-10 Mph      16500 Triveni                        4
    5-10 Mph      14700 Batra                          5
    5-10 Mph      10600 Max                            6
    < 1 Mph      170000 Max                            1
    < 1 Mph       56600 Columbia                       2
    < 1 Mph       50000 Nimhans                        3
    Test_Ran      Total Hospital                    RANK
    -------- ---------- --------------------- ----------
    < 1 Mph       22700 A.G.M.                         4
    < 1 Mph       20025 Crescent                       5
    < 1 Mph       11000 Meenam                         6
    > 10 Mph      20600 Murari                         1
    > 10 Mph      20000 Batra                          2
    > 10 Mph      19000 Apollo Medical Centre          3
    > 10 Mph      12000 Mnagamani                      4
                 610900 Total
    21 rows selected.
    

    Kindly help me and thanks in advance for your time, effort and assistance

    Hello

    If you want a separate set of numbers (1, 2, 3,...) for each value of test_range, without seeking to hold account of the hospital, then the PARTITON OF only test_range, not to mention the hospital.

  • Select multiple columns into a single column group

    SQL dear Experts,

    I have a question related to pl/sql.

    I do query below. Please advice in right way.

    Select phone, firstname, lastname code
    of the customer
    Code group

    Group, but in the meantime, firstname and lastname.

    Please advice

    Thank you
    Angelique

    Billy wrote:

    I have a question related to pl/sql.

    You posted the SQL code. Not PL/SQL code.

    I do query below. Please advice in right way.

    Select phone, firstname, lastname code
    of the customer
    Code group

    Group, but in the meantime, firstname and lastname.

    Of course, you will also need to group by firstname and lastname for this SQL query.

    With a Group of SQL, you have basically 2 types of values that can be returned:
    -the value of Group of
    -l' aggregated/calculated the value of this group

    If you could watch the first name and the last name by code:

    select
      code, MIN(firstname), MAX(lastname)
    from customer
    group by code
    

    You can see the number of unique name and surname by code:

    select
      code, COUNT(DISTINCT firstname), COUNT(DISTINCT lastname)
    from customer
    group by code
    

    Think of the clause group by in size (for example the code in the SQL above) and measures (calculations by code in the SQL above).

  • Number sequence for the value in the column group

    I need to create a sequnece number in a column from 5, and incrementing 5, based on the presenet values in the first column. If the value in the first column changes then the sequence would start with 5 and an increment of 5.

    for example: I want to generate the following output

    Cat_code Seq_No
    1001 5
    1001 10
    1001 15
    1001 20
    5 2001
    10 2001
    15, 2001
    3001 5
    10-3001
    4001 5
    4001 10
    4001 15
    4001 20
    5001 5
    6001 5
    5 7001
    7001 10
    7001 15
    7001 20
    7001-25

    So if the cat_code changes, the sequence number should still start at 5 and should be to generate the sequence number until the cat_code changes again.

    any help apreciated.

    Thank you
    Rahul

    Hi, Rahul,

    You can use the analytical function of the ROW_NUMEBR to generate the numbers, like this:

    SELECT       cat_code
    ,       5 * ROW_NUMBER () OVER ( PARTITION BY  cat_code
                                     ORDER BY        NULL
                         )       AS seq_no
    FROM       table_x
    ORDER BY  cat_code
    ,            seq_no
    ;
    

    You must use an ORDER byclause of Analytics when you call ROW_NUMBER. If you don't really care the order, so you can ORDER BY a constant, but you still need the analytical ORDER BY clause.

  • Column group

    Select a.APP_ID, a.APP_NAMES, Count (b.APP_ID) COUNTY of TBL_EAM_APP a and b LEFT JOIN TBL_EAM_INFO on a.APP_ID = b.APP_ID group by a.app_names, a.APP_ID having count (b.app_id) > 0;

    the result of this query is:
    APP_ID APP_NAMES COUNTY
    19 GIS 2
    18 bpeladmin 4
    MB 10 Websphere 6
    20 WebsphereTransformationExtender


    now, when I add datetime

    Select a.APP_ID, a.APP_NAMES, b.datetime, count (a.APP_ID) COUNTY of TBL_EAM_APP a LEFT JOIN TBL_EAM_INFO b on a.APP_ID = b.APP_ID
    A.app_names group, a.APP_ID having count (b.app_id) > 0;

    I get the error. now, I don't want to add datetime in the group by clause. I want to get the same result with last datetime that is included in the result

    Hello

    Try this:

    SELECT a.APP_ID,
           a.APP_NAMES,
           MAX(b.datetime),
           COUNT(a.APP_ID) COUNT
    FROM   TBL_EAM_APP a
    LEFT   JOIN TBL_EAM_INFO b ON a.APP_ID = b.APP_ID
    GROUP  BY a.app_names,
              a.APP_ID
    HAVING COUNT(b.app_id) > 0;
    

    You said:
    I want to get the same result with last datetime that is included in the result

    Seems a little confrontational is not? (maybe I don't get your point)

    Kind regards

  • Group hunting hides

    Hi I have a small problem when you try to run a CACHE GROUP of hunting...

    The phrases are:


    Command & gt; CREATE GROUP CACHE USERMANAGED "USMCG_TABLE".
    & gt; Of
    & gt; "MARTINEL. "" (UMCG_TABLE).
    & gt; 'ID' NUMBER NOT NULL,
    & gt; 'THE' VARCHAR2 (1000 BYTE)
    & gt; KEY ("ID") PRIMARY SCHOOL, SPREAD
    & gt; );
    Command & gt;
    Command & gt;
    Command & gt; Cache load USMCG_TABLE group commit every 10 rows;
    1 hit cache instance.
    Command & gt;

    Command & gt;
    Command & gt;
    Command & gt; Group cache RAS USMCG_TABLE;
    * 8254: flush fails; all tables are propagated or read-only *.
    The command failed.
    Command & gt;


    What is the reason...

    Thank you

    Lewis




    Hi Lewis,

    The goal of the EMPTY CACHE GROUP is to push any data changes that were made to the tables of group cache down to Oracle. A group of USERMANAGED cache can contain 4 different types of table; READONLY (applies to the individual tablescan can't updated TT), AUTOREFRESH (applies to the Group of cache everything, all the tables implicitly READONLY), SPREADING (applies to individual tables, synchronous push-to-Oracle [as cache SWT group), other (none of the above).

    Flush is only supported for tables of type 'other '. In your case the only table you have is defined as SPREAD it, so all changes to the data in this table are pushed to synchronous Oracle in time 'validation '. That's why there are no tables for which FLUSH is valid, where the error.

    Kind regards

    Chris

  • Maybe you are looking for

    • Or hacked phishing e-mail? (Please help)

      Please read this: I received another email from phishing on July 11, what is different about this one, it's the sender had my email address!  I clicked on the address of the sender on my iPhone and it gave me my details.  I went to my Mac to test ema

    • How to stop the "sweetpacks" opens automatically on the tabs?

      When I open additional tabs, the new tab automatically displays the URL of the sweetpack and sweetpack search engine. I uninstalled the program and cookie associated with sweetpacks. There is no associated with sweetpacks modules or plugins. I am a n

    • He cannot use facebook applications. The pages are blank. Why?

      Facebook recently had an update to their program. Since then, when I try to access applications, all I get are blank pages. They will be fully not load, no matter what I do. All the browsers and flash player are updated. Have you tried the button rel

    • Crashes when you try to start the project

      I got no problem with iLife ' 08, Garageband, (IE. c 4.1.2) that works on my PowerMac G4 under Tiger and my MacBook 2009 in Yosemite.  However, when I installed it on my Mac Pro 2008, it crashes after that I have enter the project name and click Crea

    • HP pavilion n203tx 15: Amd driver has stopped working and has recovered

      Hello ive been using this laptop for 2 years now and ive started suddenly get this error "amd driver has stopped working and has recovered" and sometimes one of the apps I open freezes and then I get BSOD with errror "AMD pilot State failure" any hel

    Group 1 Group 2
    Empno Ename Job Mgr Hiredate Sal Comm Deptno