Interface SQL and Group By

Is it possible to use the Group By clause in the SQL interface or what I need to create a view in the data source with the group required to achieve this?

You can simply drop your entire sql statement in the first box. Ignore others in the State of charge of sql.

I tend to develop my sql scripts in another tool (like the toad) and then copy and paste the script into the charge status select box (you need to remove the word "select" in your statement). This way you can make order bys, joins, all you want.

Published by: Sean V on March 10, 2009 08:25

Tags: Business Intelligence

Similar Questions

  • Combination of line SQL and grouping

    My data in the table looks

    SNO VAL GRP

    1. A G1

    2. A G1

    3. A G1

    4. A G1

    11 B G1

    12 B G1

    21 C G1

    22 C G1

    31 B G2

    34 B G2

    42 C G2

    46C G2

    48 C G2

    51 G2

    58 D G2

    66 F G2


    I wanted to create a view with output like below. The example that I gave to my previous question (combination line SQL)) me has really helped to learn new things, when when I try to create the view, I had to add field GRP out of combination and I failed.


    VAL is the field that decides the combination. If val has 3 possible options for a GRP, then I combine the each Val of the NSO and create together. VAL may have any number of possible values up to 17. This sector alone of combination worked with the answer to my last question. Now, I need to add the field group this as below. Any help to achieve this result will be great


    Combination GRP

    G1 1,11,21

    G1 1,12,21

    G1 1,11,22

    G1 1,12,22

    G1 2,11,21

    G1 2,12,21

    G1 2,11,22

    G1 2,12,22

    G1 3,11,21

    G1 3,12,21

    G1 3,11,22

    G1 3,12,22

    G1 4,11,21

    G1 4,12,21

    G1 4,11,22

    G1 4,12,22

    31,42,51,66 G2

    31,42,58,66 G2

    31,46,51,66 G2

    31,46,58,66 G2

    31,48,51,66 G2

    31,48,58,66 G2

    34,42,51,66 G2

    34,42,58,66 G2

    34,46,51,66 G2

    34,46,58,66 G2

    34,48,51,66 G2

    34,48,58,66 G2


    Create tables and Insert queries below if necessary

    Create the table table_x

    (SNO Number (3),)

    VARCHAR2 VAL (3),

    GRP VARCHAR2 (3));

    insert into values(1,'A','G1') table_x;

    insert into values(2,'A','G1') table_x;

    insert into values(3,'A','G1') table_x;

    insert into values(4,'A','G1') table_x;

    insert into values(11,'B','G1') table_x;

    insert into values(12,'B','G1') table_x;

    insert into values(21,'C','G1') table_x;

    insert into values(22,'C','G1') table_x;

    insert into values(31,'B','G2') table_x;

    insert into values(34,'B','G2') table_x;

    insert into values(42,'C','G2') table_x;

    insert into values(46,'C','G2') table_x;

    insert into values(48,'C','G2') table_x;

    insert into values(51,'D','G2') table_x;

    insert into values(58,'D','G2') table_x;

    insert into values(66,'F','G2') table_x;

    Hello

    In your first problem, it was as if all rows have the same value of grp, and you could do something like this:

    WITH got_r_num AS

    (

    SELECT sno

    DENSE_RANK () OVER (ORDER BY val) AS r_num,

    FROM table_x

    )

    SELECT SYS_CONNECT_BY_PATH (sno, ",") AS the combination

    OF got_r_num

    WHERE CONNECT_BY_ISLEAF = 1

    START WITH r_num = 1

    CONNECT BY r_num = 1 + PRIOR r_num

    ;

    But now, you have several values of grp, and each of them is a world unto itself, separate from all the other values of grp.

    In analytical functions, 'PARTITION BY grp' treats all grp as a full-fledged world values, separate all values of grp.

    In CONNECT BY, you can add "grp = grp PREREQUISITE" to the CONNECT BY clause to separate the grps.

    Here is a way to do it:

    WITH got_r_num AS

    (

    SELECT snogrp

    DENSE_RANK () OVER ( PARTITION BY grp

    ORDER BY val

    ) AS r_num

    FROM table_x

    )

    SELECT SUBSTR (SYS_CONNECT_BY_PATH (sno, ',')

    2

    ) AS combination

    grp

    OF got_r_num

    WHERE CONNECT_BY_ISLEAF = 1

    START WITH r_num = 1

    CONNECT BY r_num = 1 + PRIOR r_num

    AND grp = grp PRIOR

    ;

  • SQL and Group by

    Hi all

    I have a request
    SELECT schedule_id COLUMN_VALUE, player_team_coach, current_player_team_id
    OF stat_totals where SCHEDULE_ID = '20040809NFL - WASHINGTON0' AND COLUMN_ID = "FPLKICK_PR_YARD";

    This returns me
    schedule_id column_value team_id player_team_coach
    20040809NFL - 11-13373-8831 WASHINGTON0
    20040809NFL - 15 1953480 8831 WASHINGTON0
    20040809NFL - 46 2026423 8810 WASHINGTON0

    a calendar given there are only two teams playing.whenever team_id = 8831, I need 8810 column_values which is equal to 46
    and whenever team_id = 8810, I summarize all column_values of 8831 which is 11 + 15 = 26.
    My output should look like the one below.
    schedule_id sum (column_value) player_team_coach
    8831 46 13373
    8831 46 1953480
    8810 26 2026423

    Here is the example code that you can try-

    satyaki>
    satyaki>select * from v$version;
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    
    Elapsed: 00:00:00.10
    satyaki>
    satyaki>
    satyaki>with stat_totals
      2  as
      3    (
      4      select '20040809NFL--WASHINGTON0' schedule_id, 11 column_value, 13373 player_team_coach, 8831 team_id from dual
      5      union all
      6      select '20040809NFL--WASHINGTON0', 15, 1953480, 8831 from dual
      7      union all
      8      select '20040809NFL--WASHINGTON0', 46, 2026423, 8810 from dual
      9    )
     10  select team_id,
     11         sumX - sumR sumN,
     12         player_team_coach
     13  from (
     14          select team_id,
     15                sum(column_value) over(partition by team_id) sumR,
     16                sum(column_value) over() sumX,
     17                player_team_coach
     18          from stat_totals
     19       );
    
       TEAM_ID       SUMN PLAYER_TEAM_COACH
    ---------- ---------- -----------------
          8810         26           2026423
          8831         46             13373
          8831         46           1953480
    
    Elapsed: 00:00:00.01
    satyaki>
    satyaki>
    

    Kind regards.

    LOULOU.

    Note: My query is based on the first post of the o/p

    Published by: Satyaki_De on August 28, 2008 01:30

  • Problem with WSUS after upgrade of SQL and SCCM

    A few years ago, we implemented SCCM 2012 R2 on a virtual machine running Server 2008 R2 (Enterprise), using 2012 SQL for databases.  We use it for software deployment, updates/patches via WSUS and imagery of the network.  Everything is smooth enough for most, even if we hit a few snags Windows 10 points when that came out.  After you install the patches and updates to our Server 2008 box to make it compatible with Windows 10 content, everything was good again.  A few weeks ago, I decided to update our version of SCCM 1511 and SQL for 2014.  After the two updates, I tested imaging and software deployment, and everything seemed good.  I forgot WSUS, however... and later visited account it was not working properly for these updates.  Unfortunately, I realized after I deleted the VM snapshot, I got to thinking that everything was good (stupid, I know).  After researching and discovering some of the errors were permissions associated with - why would have changed the permissions on folders of SQL and SCCM upgrade I have no idea - those who have since been smoothed.  Now, my mistakes seem to be related SQL more and I hit a dead end with research.  When I opened WSUS and go look at the clocks, he tries to load the history of synchronization, and after a few minutes-error with the following information:

    The WSUS administration console failed to connect to the WSUS server database.

    Verify that SQL server is running on the WSUS server. If the problem persists, try restarting SQL.

    System.Data.SqlClient.SqlException - Timeout expired.  The delay before the end of the operation or the server is not responding.

    WARNING: The join order has been applied because a local join hint is used.
    Source .Net SqlClient data provider
    Stack trace:

    to Microsoft.UpdateServices.Internal.BaseApi.SoapExceptionProcessor.DeserializeAndThrow (SoapException-soapException)

    at Microsoft.UpdateServices.Internal.DatabaseAccess.AdminDataAccessProxy.ExecuteSPGetSummariesPerUpdate (String computerTargetScopeXml, String preferredCulture, String updateScopeXml, ExtendedPublicationState publicationState)
    at Microsoft.UpdateServices.Internal.BaseApi.UpdateServer.GetSummariesPerUpdate (UpdateScope updatesToInclude, ComputerTargetScope computersToInclude)
    at Microsoft.UpdateServices.UI.AdminApiAccess.BulkUpdatePropertiesCache.GetUpdateSummaries (UpdateScope updateScope, ComputerTargetScope computerTargetScope)
    at Microsoft.UpdateServices.UI.AdminApiAccess.BulkUpdatePropertiesCache.GetAndCacheUpdates (ExtendedUpdateScope updateScope, ComputerTargetScope computerTargetScope)

    at Microsoft.UpdateServices.UI.SnapIn.Pages.UpdatesListPage.GetListRows)

    I found a few forums that suggest to uninstall WSUS and delete the database, and then reinstall WSUS.  Unfortunately, when I try install fails... giving only an error code and no other explanation of why.  The error is 0 x 80070643, which is supposed to be due to the current user not having the "sysadmin" in SQL.  However, I have tried with several accounts I checked to make you have the sysadmin role in SQL (and are also part of the Administrators group on the server itself)-always get the same error message.

    I would really like to try to find that rather than wasting his time with the construction of a new server and redo our whole SCCM environment... get the client reinstalled on all our machines to synchronize with a new server appears as a huge headache.  Is there anyone else out there who know what would cause this?  Any help would be greatly appreciated!

    Hello

    This community is for users.

    Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    SQL Server TechNet forums.

    https://social.technet.Microsoft.com/forums/SQLServer/en-us/home?category=SQLServer

    See you soon.

  • number of dynamic interfaces in a group of interfaces regarding 8510 controllers

    I have a controller 8510, is it possible to club 130 dynamic interfaces in a single interface group?

    I guess a single interface group can have 64 dynamic interfaces, if there is a way to club 130 dynamic interfaces in a group unique interface, please suggest.

    I suggested to my client to create two interface group, a dynamic group of 64 can interfaces each, but he suggested the following

    1. If the interface of several groups to be created, rules of correspondence ACS must make the same number (access policies ACS allowing only 1 name of Air Interface [interface group] in line with the strategy)
    2. Having several access policy for the Group of users even identify unknown factors in the distribution of access requests between two or more access policies where they the same group of service users

    Hello

    Yes, you just... you can have a max 64 interface in a group of interfaces:

    Here is the reference (table 2): http://www.cisco.com/c/en/us/td/docs/wireless/controller/technotes/8-1/8...

    So you cannot combine all the 130 dynamic interface in a group.

    According to my experience: one solution is to use 2 SSIDS and each ssid must have a group of interfaces (64 interfaces).

    Concerning

    Remember messages useful rates

  • Sorting and grouping - two months in this query

    Hi all

    Thanks a lot for JAC

    I am doing a project for the construction company, I faced this problem by grouping points according to the relationship between these points the
    Relationship is from 1 to 100. If the point between what means there is relationship between these points has come.

    resolve this question already, but the results does not correct when the table contains more data.

    SQL - sorting and grouping.
    Jac and thanks a lot to him.

    This example for more details

    for example, I have these points
    id   location         percentage   comments 
    1     loc 1,2          20%                that mean point  1 and 2 close to each other by 20%
    2     loc 1,3          40%              that mean point 1 and 3 close to each other byy 40%
    3     Loc 8,6          25%               that mean point 8 and 6 close to each other by 25% 
    4     Loc  6,10        20%
    5     LOC 11,10        10 %
    6     LOC 15,14         0%
    In addition, we can see the relationship between these points as follows
    -points 1,2,3 in a group why because close 1.2 and 1.3 a relationship which means 1.3 also hid the relationship.
    -Points 6,8,10,11 in the second group there are the relationships between them.
    - but no relationship between 1, 2 or 3 with any point of 6,8,9,10,11
    -as well as no relationship between 15, 14, which means 14 in the third group and 15 in the fourth group.


    Whati need?

    to group the points that growing a relationship according to the percentage value


    The most important part is to group the points. For EXAMPLE, the query below, the gropuing is not correct.

    I have the following table with data
    drop table temp_value; 
    create table temp_value(id number(10),location varchar2(20), percentage number(9)); 
     
     
    insert into temp_value values  (1,'LOC 1,2',10); 
    insert into  temp_value values (2,'LOC 1,3',0); 
    insert into  temp_value values (3,'LOC 1,4',0); 
    insert into  temp_value values (4,'LOC 1,5',0); 
    insert into  temp_value values (5,'LOC 1,6',0); 
    insert into  temp_value values (6,'LOC 2,3',0); 
    insert into  temp_value  values(7,'LOC 2,4',0); 
    insert into  temp_value values (8,'LOC 2,5',30); 
    insert into  temp_value values (9,'LOC 2,6',0); 
    insert into  temp_value values (10,'LOC 3,4',0); 
    insert into  temp_value values (11,'LOC 3,5',0); 
    insert into  temp_value values (12,'LOC 4,5',40); 
    insert into  temp_value values (13,'LOC 4,6',0); 
    insert into  temp_value values (14,'LOC 6,7',40);
    insert into  temp_value values (15,'LOC 7,2',0);
    insert into  temp_value values (16,'LOC 8,2',60);
    insert into  temp_value values (17,'LOC 8,3',0);
    insert into  temp_value values (18,'LOC 3,1',0);
    insert into  temp_value values (19,'LOC 9,6',30);
    insert into  temp_value values (20,'LOC 11,2',0);
    insert into  temp_value values (22,'LOC 12,3',10);
    insert into  temp_value values (23,'LOC 19,3',0);
    insert into  temp_value values (24,'LOC 17,3',0);
    insert into  temp_value values (24,'LOC 20,3',0);
    When I used this query, the results is not correct

     with t as
        (select percentage,loc1,loc2,sum(case when percentage = 0 then 1
                           when loc1 in (l1,l2) then 0
                       when loc2 in (l1,l2) then 0
                       when l1 is null and l2 is null then 0
                       else 1
                  end) over(order by rn) sm
        from (     select id,location,percentage,
                           regexp_substr(location,'\d+',1,1) LOC1,
                          regexp_substr(location,'\d+',1,2)  LOC2,
                         lag(regexp_substr(location,'\d+',1,1))
                          over(order by percentage desc) l1,
                          lag(regexp_substr(location,'\d+',1,2))
                          over(order by percentage desc) l2,
                  row_number() over(order by percentage desc) rn
          from temp_value
          order by percentage desc
            )
      )
       select loc,min(sm)+1 grp
         from(
           select loc,rownum rn,sm
           from(
           select percentage,decode(rn,1,loc1,loc2) loc,sm
           from t a,
                (select 1 rn from dual union all
                 select 2 from dual ) b
           order by percentage desc,decode(rn,1,loc1,loc2) asc
          )
       )
        group by loc
       order by min(sm),min(rn);
    results


    SQL > /.
    LOC                         GRP
    -------------------- ----------
    2                             1
    8                             1
    6                             2
    7                             2
    4                             3
    5                             3
    9                             4
    1                             5
    12                            6
    3                             6
    11                           13
    
    LOC                         GRP
    -------------------- ----------
    19                           14
    17                           15
    20                           22
    
    14 rows selected.
    SQL >


    but the just is
    Location        group No
    2                  1
    8                  1
    4                  1
    5                  1
    1                  1
    6                  2
    7                  2
    9                  2
    12                 3
    3                  3
    19                 4
    17                 5
    20                 6
    Thanks in advance.

    Published by: Isabelle on November 30, 2012 03:07

    OK, I thought an it once again and found out how to include with any such percentage points.
    In your example expected output you missed the 11 that's why we got 7 groups now.
    The order of the Group 2 and 3 is ambiguous, because the highest percentage of these groups is the same.

    with connects as (
    select distinct
     loc1
    ,loc2
    ,connect_by_root(loc1) grp
    ,percentage per
    from
    temp_value
    --start with
    --percentage != 0
    connect by nocycle
    (prior loc2 = loc1
    or
    prior loc1 = loc2
    or
    prior loc1 = loc1
    or
    prior loc2 = loc2)
    and
    percentage != 0
    and
    prior percentage != 0
    )
    
    select
     loc
    ,dense_rank() over (order by decode(per,0,1,0), grp) grp
    from (
    select
     loc
    ,max(grp) keep (dense_rank first order by per desc, grp) grp
    ,max(per) keep (dense_rank last order by per nulls first) per
    from (
    select
     loc1 loc
    ,grp
    ,per
    from connects
    union
    select
     loc2
    ,grp
    ,per
    from connects
    )
    group by
    loc )
    order by 2,per desc,1
    
    LOC     GRP
    2     1
    8     1
    4     1
    5     1
    1     1
    12     2
    3     2
    6     3
    7     3
    9     3
    11     4
    17     5
    19     6
    20     7
    

    Think we are done now ;-)
    Edited by: chris227 at 30.11.2012 16:46

    Edited by: chris227 at 30.11.2012 17:12
    order corrected

    Edited by: chris227 at 30.11.2012 17:15
    simplification, no need to rank in linking subquery

    Edited by: chris227 at 30.11.2012 17:26

  • Rewrite the query with joins, and group by

    Hello

    It's an interview question.

    Table names: bookshelf_checkout
    virtual library

    And the join condition between these two tables is title

    We need to rewrite under request without using the join condition and group by clause?

    SELECT b.title,max(bc.returned_date - bc.checkout_date) "Most Days Out"
               FROM bookshelf_checkout bc,bookshelf b
               WHERE bc.title(+)=b.title
               GROUP BY b.title;
    When I was in College, I read most of SELECT statements can be replaced by operations base SQL (DEFINE the OPERATORS). Now, I am rewriting the query with SET operators, but not able to get the exact result.

    Kindly help me on this.

    Thank you
    Suri

    Something like that?

      1  WITH books AS (
      2  SELECT 'title 1' title FROM dual UNION ALL
      3  SELECT 'title 2' FROM dual UNION ALL
      4  SELECT 'title 3' FROM dual ),
      5  bookshelf AS (
      6  SELECT 'title 1' title, DATE '2012-05-01' checkout_date, DATE '2012-05-15' returned_date FROM dual UNION ALL
      7  SELECT 'title 1' title, DATE '2012-05-16' checkout_date, DATE '2012-05-20' returned_date FROM dual UNION ALL
      8  SELECT 'title 2' title, DATE '2012-04-01' checkout_date, DATE '2012-05-15' returned_date FROM dual )
      9  SELECT bs.title, MAX(bs.returned_date - bs.checkout_date) OVER (PARTITION BY title) FROM bookshelf bs
     10  UNION
     11  (SELECT b.title, NULL FROM books b
     12  MINUS
     13* SELECT bs.title, NULL FROM bookshelf bs)
    SQL> /
    
    TITLE   MAX(BS.RETURNED_DATE-BS.CHECKOUT_DATE)OVER(PARTITIONBYTITLE)
    ------- ------------------------------------------------------------
    title 1                                                           14
    title 2                                                           44
    title 3
    

    Lukasz

  • Unable to get the database searched with MAX and GROUP BY function

    Hello
    All the

    I have a table as below:
    COLUMN TYPE
    User_id VARCHAR2 (10 byte)
    ID_processus VARCHAR2 (30 bytes)
    END_TIME DATE (STAMP)
    TO_LOC VARCHAR2 (12 bytes)
    TO_LOC_TYPE VARCHAR2 (15 bytes)
    FROM_LOC VARCHAR2 (12 bytes)
    ITEM_ID VARCHAR2 (25 bytes)
    CASE NUMBER (12.4)
    LMS_UDA1 VARCHAR2 (250 bytes)
    AREA VARCHAR2 (2 bytes)

    I only want to get one record with all the columns, have only one clause MAX (END_TIME)
    But the other column value of the difference.
    When I use MAX (END_TIME) and GROUP OF USER_ID, ID_processus, CASE...
    the sql did not a single record,
    It gives the number of records

    Please help me on this

    Concerning

    Saven

    >
    I only want to get one record with all the columns, have only one clause MAX (END_TIME)
    But the other column value of the difference.
    >
    Maybe it's not possible because it depends on your data.

    If the combination of all columns except END_TIME is not unique then there will be multiple records; a record for each unique combination (GROUP BY) of all other columns.

    The only way to ensure that a record is

    SELECT MAX(END_TIME) FROM myTable
    
  • Cases and Group by

    I tried to understand what is the problem with a large sql query that does not change what I do.
    Have managed to isolate the part which is a failure, but I get the error message:

    ORA-00979: not a GROUP BY expression

    is not very useful.

    I suspect there is something fundamentally wrong in what I'm trying to do.

    I had to anonimise the names of the tables and fields that the data that I use is quite sensitive, but it should not forget the problem.

    Here is the query:
    select
    case when a='100' and cost in (select cost from lookup) then '100' else b end as main,
    count(*)
    from 
    data_table
    group by 
    case when a='100' and cost in (select cost from lookup) then '100' else b end
    DATA_TABLE has (among others) of fields:
    a, b, and the cost

    search contains the field:
    cost

    All fields are VARCHAR2 (255)


    If I remove the count (*) and any group of the query statement runs it is to say:
    select
    case when a='100' and cost in (select cost from lookup) then '100' else b end as main
    from 
    data_table
    This shows that the stated case is valid - then why I can not combine the count and group of?
    If this is a reason of syntax is there another solution that I can possibly use subqueries to work around the problem - I prefer to avoid this and can't really make the case in a decoding without him make mess.

    Oracle version:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.

    TIA

    Published by: user8378443 on May 11, 2011 10:26

    Try like this,

    SELECT MAIN, COUNT (*)
      FROM (SELECT CASE
                      WHEN A = '100'
                       AND COST IN (SELECT COST FROM lookup)
                      THEN '100' ELSE b
                   END
                      AS MAIN
              FROM data_table)
    GROUP BY MAIN
    

    G.

  • interesting SQL and plsql problem.

    The web application has a function to generate reports based on what the user selects, which includes this as the fields to display in the report, what order to display those selected fields, etc.

    Now, one of the field called suffix field is need removed the drop-down lists SELECT and ORDER BY. Please advise on how to solve the problem when the suffix record is removed from the database, and how we can increase the index [#] of these later OrderByField?

    reportId reportField reportValue
    ====================
    1 orderByField fname [0]
    1 orderByField [1] MI
    1 lname orderBytField [2]
    1 orderByField [3] suffix

    lname orderBytField 2 [0]
    suffix of orderByField 2 [1]
    2 orderByField fname [2]
    2 orderByField [3] MI

    In the example above, delete suffix will not affect reportId 1, but for reportId 2, if we remove the suffix, how do we record like the following?
    lname orderBytField 2 [0]
    2 orderByField fname [1]
    2 orderByField [2] MI

    I am open to any suggestion, using sql and plsql. The database is 9i.

    THX.

    Hello

    You're wright, you need to replace in the order by clause:

    with d as(
    select 1 as reportId, 'orderByField[0]' as reportField, 'fname ' as reportValue from dual union all
    select 1 as reportId, 'orderByField[1]' as reportField, 'MI    ' as reportValue from dual union all
    select 1 as reportId, 'orderByField[2]'as reportField,  'lname ' as reportValue from dual union all
    select 1 as reportId, 'orderByField[3]' as reportField, 'suffix' as reportValue from dual union all
    select 2 as reportId, 'orderByField[1]' as reportField, 'suffix' as reportValue from dual union all
    select 2 as reportId, 'orderByField[2]' as reportField, 'fname2' as reportValue from dual union all
    select 2 as reportId, 'orderByField[0]'as reportField,  'lname0' as reportValue from dual union all
    select 2 as reportId, 'orderByField[6]'as reportField,  'lname6' as reportValue from dual union all
    select 2 as reportId, 'orderByField[12]'as reportField, 'lname12' as reportValue from dual union all
    select 2 as reportId, 'orderByField[4]'as reportField,  'lname4' as reportValue from dual union all
    select 2 as reportId, 'orderByField[5]'as reportField,  'lname5' as reportValue from dual union all
    select 2 as reportId, 'orderByField[8]'as reportField,  'lname8' as reportValue from dual union all
    select 2 as reportId, 'orderByField[10]'as reportField, 'lname10' as reportValue from dual union all
    select 2 as reportId, 'orderByField[11]'as reportField, 'lname11' as reportValue from dual union all
    select 2 as reportId, 'orderByField[9]'as reportField,  'lname9' as reportValue from dual union all
    select 2 as reportId, 'orderByField[7]'as reportField,  'lname7' as reportValue from dual union all
    select 2 as reportId, 'orderByField[3]' as reportField, 'MI    ' as reportValue from dual)
    SELECT a.reportId, 'reportField[' || to_char(DECODE(ROWNUM-min_sno,0,1,rownum+1-min_sno)-1)|| ']' as newReportField, reportValue FROM
    (SELECT * FROM d where d.reportValue != 'suffix' ORDER BY reportId, to_number(substr(reportField, instr(reportField, '[')+1, instr(reportField,']')-instr(reportField, '[')-1)) ) a,
    (
    SELECT reportId,MIN(rownum) min_sno FROM
    (
    SELECT * FROM d where d.reportValue != 'suffix' ORDER BY reportId, to_number(substr(reportField, instr(reportField, '[')+1, instr(reportField,']')-instr(reportField, '[')-1))
    )
    GROUP BY reportId
    ) b
    WHERE a.reportId = b.reportId;
    

    Kind regards

    Published by: Walter Fernández on January 6, 2009 16:51 - sorry I forgot the version of your database in the first post, I replaced the regular expression...

  • How can I restore my tabs and groups of tabs after a update to version 36.0?

    I work with many tabs when I use Firefox. I keep classified in groups of tabs, which helps to separate the different children to work I do and interests I have. I have been using this environment for years. When I started my job today, Firefox updated to v36.0, and noted the following behaviors:

    1. There is only one group of tabs when you try to display tabs at Panorama, as opposed to a dozen groups;

    2. normally if the hidden tabs (tabs in the same group as the startup group, and not the default page) downloading of content to what the user clicks on, icon, if any, and the name of the page will show on the tab currently, the tabs display 'New tab' and no icon. It seems, however, the number of tabs that exist across all groups of tabs, but are now ghosts this default value, a group of tabs. I must add, however, I do not count the number of tabs, so I can't be exactly. When you click on it, there is just a blank page. It is so strange that Firefox knows they are there but cannot simply attach the address.

    I tried to restore the following files from my backup of Windows Home Server to the folder AppData\Roaming\Mozilla\Firefox\Profiles\ .default < gobbletygook >:

    1. in the sessionstore-backups folder, I replaced the files previous.js, recovery.bak and recovery.js (not all of the upgrade ~) with the files yesterday and the day before yesterday.

    When that did nothing, I replaced

    2 sessionCheckpoints.json

    I do not see any file with a recent date that seems to be the one that I have to restore. I should add that I don't see hidden files. I thought about the restoration of the whole of the batch, but didn't know how it would affect the program v36.0 and the profile on 35.0.1 files.

    I have deadlines this week and must immediately restore my environment in order to make these possible. I have no address list on my Web pages to work in IE or other. Any help would be much appreciated.

    On a second note, I had been wondering recently if this tab group environment is an appropriate way to maintain my work environment. Sometimes, during the opening of Panorama, I would get an error saying a script takes too much time, but if I clicked on continue, it would display the groups in a few seconds. I considered bringing it in bookmarks, but it would be tedious and more difficult to access and open several tabs. Initially, I tried tabs groups thinking it was just a matter of maintaining a table of addresses (in tabs) with a name or an ID of tab group. How that might go wrong? Well, there, so it is obviously more complicated than that, and I did not know that upgrades would affect the data of a personal nature. That I should abandon the use of tab groups?

    With the help of information from the user, ptressel, in a post here on the existence of sessionstore.js when version 33 was released, I could easily get my tabs and groups of tabs as follows:

    1. close Firefox and, perhaps, wait a few seconds (30 years?) for any final closing of files;
    2. Check if you have a sessionstore.js file in your profile folder, named as I documented in my original post above.
    3. If this is not timestamped before the discovery of your problem, open the sessionstore-backups folder.
    4. Check if the recovery.js file is properly stamped and, if not, the recovery.bak.
    5. At this point, you are likely to find that none of them is before your problem occurring. If so, open your backups from this folder and go through steps 2 to 4 to find a file before your problem occurring.
    6. When you find a file, copy it to the root of your current profile folder and name it, "sessionstore.js.
    7. Open Firefox. Mine opened upwards as you wish.

    It is a solution for Windows. Sorry I can't comment on other platforms, but I'd bet it's just a copy of file and change of name, it is likely even.

    For Windows users, you can find you must sign out and sign in as administrator in order to access backups. You must not logoff your standard account, but do have Firefox closed as described above.

    Hope that helps.

  • Is it possible to save the current tabs and groups so that they can be recharged at any time?

    My Firefox crashes sometimes, and when I start it up again, my groups and tabs that I had are lost, so I need to recreate my history window. Is there a way I can save the groups that I have with the tabs on the inside so that I can retrieve them at a later date.
    "I say that Firefox does not save the whenever I close the browser, so I'm güssing there a file somewhere that contains this information, if I know how is called this file I could save it on my regular schedule and retrieve them if I had to, of course the best solution would be to have a ' save the groups ' & 'Support groups' in the menu.

    Thanks in advance
    DayoJ

    (PIN) App tabs and groups of tabs (Panorama) are stored in session data in the sessionstore.js file in the Firefox profile folder.

    You can use this button to go to the Firefox profile folder currently in use:

  • Research Protect deleted all my tabs and groups of Firefox

    I had about 200 tabs grouped together in about 30 groups of 31.0 Firefox (latest version). The Group appeared when I clicked on the icon to the left of the button "minimize" or press CTRL + SHIFT + E. It is called "your Firefox tabs - group". I also use Xmarks, but I have disabled Synchronization tab recently.

    Generally all the tabs and their groups have been saved when I closed Firefox. Today I opened Firefox and all tabs and groups disappeared! Instead, it opens some search engine called Trovi (www.trovi.com) with "bing results. Its the same in Chrome, Opera and IE.

    My OS is Windows 8.1 update 1 with all updates installed. My antivirus is Avast! with all updates installed. There was some malware installed of course, but I'm not awake me. I ran a 'full system test' in Avast! latest updates, which is the deeper analysis that I know (without my laptop HP ProBook 4730 s restaring). No viruses were found.

    I'm suspecting a program called 'Research Protect' version 2.16.10.61 'Client Connect Ltd. It was installed with PowerISO 6.0 x 64.

    I tried to run the system restore, but it seems that all the restore points I ever created are now deleted! I discovered this by opening the system properties-> system-> system restore Protection. However, 'Protection' is 'On' for my system disk.

    How can I restore my tabs and groups? It is extremely important for me.

    Accidentally, I posted my question twice - my apologies. I marked this as resolved and will continue to ask for help on the other.

    https://support.Mozilla.org/Ta/questions/1014087

    Thank you!

  • How can I remove comments from the users and groups

    I have my in my users and groups in the system preferences a user snd invited another user

    How can I remove them

    Go to Preferences system-> users and groups, and then press the lock to allow you to change the settings. Then choose 'user comments' in the sidebar and uncheck "Allow clients to connect to this computer". This will not make this option disappear, but after that you will not be able to use the Guest user.

    «Respect for the other user, simply choose it in the sidebar and press on the '-' button.» Make sure that no one uses this user.

  • command and group numbers

    Hello

    I have a number of lines where each shows a quantity (in a single column) with a length of wood (in another column), say...

    3 4500

    2 3000

    1 6000

    9 3000

    1 4500

    is there a formula where I can create two additional columns with the sum total of all the required lengths? so, something like this...

    11 3000

    4 4500

    1 6000

    the order of length?

    also, it will not be fixed lengths, so ideally my formula will order and group some lengths come in the columns.

    hope that makes since, cheers, ric

    I think I could to make it simpler, in my second list "lengths", list all possible, according to the digital agenda, such as 3000, 3200, 3600, etc. 3800.

    in this case, I'm sure that there is a simple way to add the amount of items (in the first column of the first series) each time the length is displayed in the second column (in the first game)...? !

    I don't know the best function to use... :-/

Maybe you are looking for