Combine similar lines

For example,.

select s.sid, s.username, t.SQL_TEXT
from gv$sqltext t, gv$session s
where s.sql_address=t.address
order by s.sid, t.piece;

which returns a SID, user name and 64 characters in sql, the following line will show 64 characters and so on.

So I would be able to combine all the t.SQL_TEXT where s.SID and s.USERNAME are the same as the previous line, as such:

Front

SID USERNAME SQL_TEXT

1 USER1 select bla blah blah blah 64 characters long

1 USER1 second 64 to 128 character set

1 long USER1 questioning more than 64 characters

1 USER1 will still more than 64 characters more

After

1 USER1 select bla blah blah blah 64 longsecond 64 query 128long 64 charactersstill character set characters more go longer than 64 characters

(Note: no spaces between strings of SQL_TEXT.)  If they should be there, they are considered as a character)

Thanks for the help!

Hello

This looks like a job for the LISTAGG function, something like this:

SELECT s.sid, s.username

, LISTAGG (t.sql_text, NULL) WITHIN GROUP (ORDER BY t.piece) AS sql_text

SGS $ sqltext t

, gv$ session s

WHERE s.sql_address = t.address

GROUP BY s.sid, s.username

ORDER BY s.sid, s.username

;

LISTAGG returns a VARCHAR2, which can contain up to 4000 characters.  If all the strings to combine are since long the entire 64 characters, so you can have as many 62 of them in each group.

Tags: Database

Similar Questions

  • Combine multiple lines into one line (from two tables / result sets)

    Hello experts,

    I would like to know how to combine multiple lines/records in a single record. Here are the DDL and DML to tables:

    create table test_table)

    client_name varchar2 (50 char),

    login_time timestamp (6).

    logout_time timestamp (6).

    auto_type varchar2 (10 char)

    )

    create table root_table)

    navigation_time timestamp (6).

    client_name varchar2 (50 char),

    VARCHAR2 (50 char) nom_du_groupe

    )

    Insert into test_table

    values ("John", TO_TIMESTAMP ('2013-12-05 17:04:01.512 ',' YYYY-MM-DD HH24:MI:SS.)) FF'), TO_TIMESTAMP ('2013-12-05 17:27:31.308 ',' YYYY-MM-DD HH24:MI:SS.) FF'), 'SIMPLE');

    Insert into test_table

    values ('David', TO_TIMESTAMP ('2013-12-05 06:33:01.308 ',' YYYY-MM-DD HH24:MI:SS.)) FF'), TO_TIMESTAMP ('2013-12-05 06:45:01.112 ',' YYYY-MM-DD HH24:MI:SS.) FF'), 'SIMPLE');

    insert into root_table

    values (TO_TIMESTAMP ('2013-12-05 17:04:01.512 ',' YYYY-MM-DD HH24:MI:SS.)) FF'), 'John', "invalid");

    insert into root_table

    values (TO_TIMESTAMP ('2013-12-05 17:14:22.333 ',' YYYY-MM-DD HH24:MI:SS.)) FF'), 'John', "GROUP_1");

    insert into root_table

    values (TO_TIMESTAMP ('2013-12-05 17:27:31.308 ',' YYYY-MM-DD HH24:MI:SS.)) FF'), 'John', "GROUP_1");

    insert into root_table

    values (TO_TIMESTAMP ('2013-12-05 06:33:01.308 ',' YYYY-MM-DD HH24:MI:SS.)) FF'), "David", "invalid");

    insert into root_table

    values (TO_TIMESTAMP ('2013-12-05 06:45:01.112 ',' YYYY-MM-DD HH24:MI:SS.)) FF'), 'David', 'GROUP_5');

    game results test_table

    client_name

    login_time logout_time auto_typeJohn05/12/2013 5:04:01.512000 PM05/12/2013 5:27:31.308000 PMSIMPLEDavid05/12/2013 6:33:01.308000 AM05/12/2013 6:45:01.112000 AMSIMPLE

    root_table result set

    navigation_time client_name GroupName
    05/12/2013 5:04:01.512000 PMJohnNot valid
    05/12/2013 5:14:22.333000 PMJohnGROUP_1
    05/12/2013 5:27:31.308000 PMJohnGROUP_1
    05/12/2013 6:33:01.308000 AMDavidNot valid
    05/12/2013 6:45:01.112000 AMDavidGROUP_5

    And here is the SQL code I'm writing:

    Select a.customer_name, a.login_time, a.logout_time, a.auto_type, Max (b.group_name)

    from test_table a, b root_table

    where a.customer_name = b.customer_name

    Group of a.customer_name, a.login_time, a.logout_time, a.auto_type

    As the 'invalid' value is greater than the value "GROUP_1" (based on the number of letter in English), the GroupName is returned as 'invalid '. I want to bring the GroupName based on the navigation_time column in the root_table so that it always returns a valid GroupName. Please help me.

    Output current:

    Client_name.      Login_Time.     Logout_Time |     Auto_Type |     GroupName

    --------------------------------------------------------------------------------------------------------------------------------------------

    John |     05/12/2013 5:04:01.512000 PM |     05/12/2013 5:27:31.308000 PM |     SIMPLE |     Not valid

    David |     05/12/2013 6:33:01.308000 AM |     05/12/2013 6:45:01.112000 AM |     SIMPLE |     Not valid

    Expected results:

    Client_name.      Login_Time.     Logout_Time |     Auto_Type |     GroupName

    --------------------------------------------------------------------------------------------------------------------------------------------

    John |     05/12/2013 5:04:01.512000 PM |     05/12/2013 5:27:31.308000 PM |     SIMPLE |     GROUP_1

    David |     05/12/2013 6:33:01.308000 AM |     05/12/2013 6:45:01.112000 AM |     SIMPLE |     GROUP_5

    Thank you!

    Adding INSERT statements, current and planned outputs.

    This...

    SELECT client_name

    login_time,

    logout_time,

    auto_type,

    GroupName

    Of

    (select a.customer_name,

    a.login_time,

    a.logout_time,

    a.auto_type,

    b.group_name,

    ROW_NUMBER() over (PARTITION BY a.customer_name, a.login_time, a.logout_time, a.auto_type ORDER BY b.group_name) rn

    from test_table a, b root_table

    where a.customer_name = b.customer_name)

    WHERE rn = 1;

    OUTPUT:-

    =========

    David DECEMBER 5, 13 06.33.01.308000000 AM DECEMBER 5, 13 06.45.01.112000000 AM SIMPLE GROUP_5
    John DECEMBER 5, 13 05.04.01.512000000 PM DECEMBER 5, 13 05.27.31.308000000 PM SIMPLE GROUP_1

    Thank you

    Ann

  • 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

    ;

  • Try to combine two "lines" to make a "shape"?

    I tried for hours to combine two curves I draw with the pencil tool in the form of what I can fill it with a color or a gradient:

    http://img199.imageshack.us/img199/4155/flametests01.PNG

    The top row has two lines (rubbed).   When I move them around together, I get a nice shape "flame" I want to use a logo.

    The low line shows what happens when the two 'lines' are 'filled', and what happens when the flame is "completed".   I tried all manor of consolidation, merger, combining... I lost track at this point...

    I think part of my problem is that I guess would be the pencil tool to draw lines (or 'ways' are perhaps more accurate?) - but it seems to be 'forms '.

    I tried to use the pen tool, but the curves are never as smooth as those that I drew "Freehand"...

    What should I do / do differently?

    Just drag - select two higher points with the direct Selection tool and KBSC CmdOpt-shift-J allows to unite lines. Do the same thing at the bottom to fill the shape.

  • Combination of line SQL

    At my table

    VAL SNO

    1A

    2A

    3A

    4A

    11 B

    12 B

    21 C

    22 C

    VAL has 3 possible values here. It could be any number up to 17 and the output below can have 17 joines values together.

    Example here is with 3 values

    And I need my output as

    1,11,21

    1,12,21

    1,11,22

    1,12,22

    2,11,21

    2,12,21

    2,11,22

    2,12,22

    3,11,21

    3,12,21

    3,11,22

    3,12,22

    4,11,21

    4,12,21

    4,11,22

    4,12,22

    Any help will be great

    Hello

    You can do something like this:

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

    FROM table_x

    WHERE CONNECT_BY_ISLEAF = 1

    START WITH val = "A".

    CONNECTION BY ASCII (val) = 1 + CHR (val PREREQUISITE)

    ;

    This assumes that val is predictable, for example, the lowest value will always be 'A', and following on values will be the next letter of the alphabet, until 'Q' If you have 17 values.

    If you can not predict what will be the values of val, so it's a little more complicated:

    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

    ;

    If you would care to post CREATE TABLE and INSERT statements for your sample data, and then I could test this.

  • Combine multiple lines in a single line

    Hello

    I want the output of several data of line in a row.

    I try to display the supervisor of people and their supervisors and so on. I am able to display the Level1 supervisor and not able to display the next level.

    Here is the code:

    
    
    

    with

    Nobody like

    (select person_id 100299, employee_name 'VELASCO, OMAR' Union double all the)

    58293, select "UREÑA, PABLO" Union double all the

    Select 98539, 'USLENGHI, MATIAS slimani' Union double all the

    Select 68240, "Slimani, Mr. Vrishal A" Union double all the

    Select 72230, 'Harvey, Mr. Darin S' Union double all the

    Select 76200, 'CLARK, TIM MIDDLE EAST' of all the double union

    Select 67819, "BOEHLER, JEFF a." everything double union

    29202, select "FRADIN, ROGER" the double

    ),

    master_slave as

    (select 100299 slave, master 58293 Union double all the)

    Select 58293,98539 from all the double union

    Select 98539,68240 from all the double union

    Select 68240,72230 from all the double union

    Select 72230,76200 from all the double union

    Select 76200,67819 from all the double union

    Select 67819,29202 from all the double union

    Select 29202, the double null

    ),

    hierarchy as

    (select level lvl, sys_connect_by_path(slave,'|') path, max (level) on max_level)

    of master_slave

    where connect_by_isleaf = 1

    connect by slave = master prior

    ),

    Splitter (LVL, person_id, supervisor_1, supervisor_2, path) as

    (select lvl,

    regexp_substr (path '(\ |) [ ^|] +)', 1, 1, null, 1).

    regexp_substr (path '(\ |) [ ^|] +)', 1, 2, null, 1).

    regexp_substr (path '(\ |) [ ^|] +)', 1, 3, null, 1).

    regexp_replace (path,'^-|) [ ^|] +')

    of the hierarchy

    where lvl = max_level

    Union of all the

    Select lvl,

    regexp_substr (path '(\ |) [ ^|] +)', 1, 1, null, 1).

    regexp_substr (path '(\ |) [ ^|] +)', 1, 2, null, 1).

    regexp_substr (path '(\ |) [ ^|] +)', 1, 3, null, 1).

    regexp_replace (path,'^-|) [ ^|] +')

    between the separator

    where path is not null

    )

    Select person_id, to_number (ltrim(s.person_id,'|')),

    (select employee_name from person where person_id = to_number (ltrim(s.person_id,'|'))) employee_name,

    (select employee_name from person where person_id = to_number (ltrim(s.supervisor_1,'|'))) supervisor_1,

    (select employee_name from person where person_id = to_number (ltrim(s.supervisor_2,'|'))) supervisor_2

    s separator

    where s.person_id is not null

    order by length (s.path) desc nulls last

    PERSON_ID Employee_name SUPERVISOR_1 SUPERVISOR_2
    100299 VELASCO, OMAR UREÑA, PABLO USLENGHI, MATIAS slimani
    58293 UREÑA, PABLO USLENGHI, MATIAS slimani Slimani, Mr. Vrishal A
    98539 USLENGHI, MATIAS slimani Slimani, Mr. Vrishal A Harvey, Mr. Darin S
    68240 Slimani, Mr. Vrishal A Harvey, Mr. Darin S CLARK, TIM MIDDLE EAST
    72230 Harvey, Mr. Darin S CLARK, TIM MIDDLE EAST BOEHLER, JEFF HAS
    76200 CLARK, TIM MIDDLE EAST BOEHLER, JEFF HAS FRADIN, ROGER
    67819 BOEHLER, JEFF HAS FRADIN, ROGER -
    29202 FRADIN, ROGER - -

    Concerning

    Adrien

  • Where is Merge with similar lines?

    Having recently upgraded to Pro XI in DC and I am unable to locate the files to be merged with similar measures. This exists in DC or is there a way to do this without going back to XI Pro?

    Hi John,.

    I see at the bottom of the Action Wizard pane, you have an option to AutoSplit Pro. It's a third party plug-in for Acrobat, and I bet that's the source of all the other measures (they are not included with Acrobat Pro XI). Thus, it seems that you have lost access to this plug-in (which can happen with the update, because DC only supports 64 - bit plug-ins architecture).

    You may be able to recharge that plug-in for Acrobat DC. If not, I would check with Evermap to see if they have a newer version: http://www.evermap.com/autosplit.asp

    Best,

    Sara

  • combining several line to line out

    I have the following value from a query result. I'm trying to
    format the output to provide a unique combination of C3 and its corresponding
    C4 values in a single row. The combination will be between the four groups
    listed in C1. Any ideas will be greatly appreciated.


    C1... C2... C3... C4
    1001 1234 00 Text1
    1001 1235 01 Text2

    1002 1236 00 Text3
    1002 1237 01 Text4

    1003 1238 00 Text5
    1003 1239 01 Text6
    1003 1240 02 Text7
    1003 1241 03 Texte8

    1004 1242 0000 Texte9
    1004 1243 0001 Text10
    1004 1234 0002 Text11
    1004 1235 0003 Texte12
    1004 1236 0004 Texte13
    1004 1237 0005 Texte14


    The sample output:

    00-00-00-0000 text1.text3.text5.text9
    00-00-00-0001 text1.text3.text5.text10
    .
    .
    01-00-00-0000 text2.text3.text5.text9
    01-00-00-0001 text2.text3.text5.text10
    .
    .
    01-01-03-0005 text2.text4.text8.text14

    Hello

    Welcome to the forum!

    Whenever you post a question, it helps if you include the number of Oracle version you are using. If you use Oracle N, a solution that only works in Oracle N + x will not help you, and a solution that requires that you have Oracle N - x may not be the best for you.

    In addition, CREATE TABLE... and... INSERT statements (or CREATE TABLE... AS of the statements) for your sample data, if you want to test their suggestions.

    To do what you want, you could do a join of the 4 tracks, but which is not to scale and if needs change.
    CONNECTION BY more general is:

    SELECT  SUBSTR ( SYS_CONNECT_BY_PATH (c3, '-')
                , 2
                )     AS c3_list
    ,     SUBSTR ( SYS_CONNECT_BY_PATH (c4, '.')
                , 2
                )     AS c4_list
    FROM     table_x
    WHERE     CONNECT_BY_ISLEAF     = 1
    START WITH     c1     = 1001
    CONNECT BY     c1     = PRIOR c1 + 1
    ;
    

    This requires that you know the value of c1 of the first group (1001 in this example), and the next groups have eactly c1 1 superior to the former group.

  • Union confusion!

    Hello

    I have a question that I can't seem to get to work! Ive tried to join all 3 tables, but miss me a few hundred records even when I try to do outer joins. Currently, I am using union all to join two statements select sepearte who get all the lines. Each select statement returns the rows of 2120 OK but when I do the union combines queries and displays the output of these two queries instead or combining similar lines.

    It is like that.
    C1........... C2.............     C3............     C4............     C5
    1..............     2.............     3..............     4..............
    1.............     2.............     3.............     4..............
    1.............     2.............     3.............     4..............
    1.............................     3..............     4..............     5
    1.............................     3..............     4..............     5
    1.............................     3..............     4..............     5


    Need to look like
    C1............     C2............     C3............     C4............     C5
    1..............     2..............     3..............     4..............     5
    1..............     2..............     3..............     4..............     5
    1..............     2..............     3..............     4..............     5
    1..............     2..............     3..............     4..............     5


    Select a.chair_number
    a.chair_name
    a.time,
    a.desk_number
    a.desk_name
    de)
    Select r.chair_number, c.chair_name, r.time, r.desk_number, null desk_name
    Ralph r, Chair c
    where are.chair_number = c.chair_number - 2120 lines

    Union of all the

    Select r.chair_number, chair_name null, r.time, r.desk_number, d.desk_name
    Ralph r, Office d
    where are.desk_number = d.desk_number (+)
    and r.chair_number = d.chair_number (+)) a - 2120 lines


    Thank you

    Hello

    UNION ALL will give you all the records of these two queries.

    The UNION will give you SEPARATE two query records.

    (In your case, it might be the same, lines of 4240)

    What you get from:

    SELECT r.chair_number,
           c.chair_name,
           r.time,
           r.desk_number,
           d.desk_name
    FROM   ralph r,
           chair c,
           desk d
    WHERE  r.chair_number = c.chair_number
    AND    r.desk_number = d.desk_number(+)
    AND    r.chair_number = d.chair_number(+);
    

    Concerning
    Peter

  • Combining a similar request for responses

    Hi all
    We strive to create reports using ' * combine similar request *' option, in which we are combining 2 different measures in different fields, but with the common dimension.
    Suppose if we have topics below.

    Subject to area A
    Measure - recipes
    Dimension - year

    Domain B
    Measures - units sold
    Dimension - year

    In this case, we expect to result as below
    Revenue units sold
    2008 1234 $10
    2007 $345 3


    but instead, we get the result as below

    Revenue units sold
    $2008 1234 0
    2008 0 10
    2007 345 $0
    2007-0-3


    I sit possible to get the above result?

    Kind regards
    Floquet

    Hello..

    In any case you do not get two straight lines for each year of law?
    According to you, you get nulls for any other measure...
    Have you applied aggregation rule > sum for both measures ?
    Do it and a report...

    Thank you & best regards
    Kishore Guggilla

  • Combination line point cloud, or disperse with trend marker

    Hi all

    I need a line and dispersion of APEX 4.2 combination...

    Looks like AnyChart can do it now...

    See:

    Scatterplot: combination of line and marker Charts & lt; / title & gt; & lt; link href = & quot;... /styles/Sample-Toolbar.CSS & quot;...

    And it seems that from the APEX 4.2 yet we cannot do this, if I saw the reference in this forum for a request for improvement for the next version (thank you Hilary)

    In the meantime, so I have something...

    The need is for a set of guidelines - a box has peaked, for example - to illustrate clearly the points in and out of the limits of quality.  In our case, the solid lines are constant for all parcels.  Dispersion points, and the series will change according to the data.

    In addition, the guide or trend lines are not horizontal or straight - they form a peak, as the roof of a House.

    I use trend lines, or I could use thresholds (backstory).  So far I do not see how to build a sharp trend line, or a threshold area has peaked.  Is it possible > I'm still looking.

    Suggestions?

    Thank you

    Karen

    I figured out and just make a simple line - scatterplot.

    The trick is, start with the line chart, several series, and then change one or more of the series until the marker using the series Type selection list.

    When you start with a Scatter Plot, but this may be more close to what you want in the end, the series Type selection list isn't here.

    Reason: Request for a point cloud format is different - you can't dynamically change the type series unless the same query format applies.

  • Select lines having sum (col) = & val - a time line = & val or combination

    Dear all

    I have following ABC table with two columns. I need to return the rows having vlue against given parameter, weather it is a single line or combination of lines MySQL is the default setting, but must return all the participating lines:

    Value name

    20 Coke
    drink 80
    Pepsi 100
    Mirinda 380
    250 juice
    Orange 500
    lemon 880

    ----
    Now, I want to next result: if I pass the value = 100 query must return

    Pepsi 100 Row1
    Row2, 3 (coke20 + drink80) = 100

    If I pass the value = 880 then

    Row1 lemon 880
    row2, 3 (orange 500, mirinda 380) = 880

    --
    Please let me know how I can solve this query select Thur or a need for function/procedure for this return lines.

    Respect of

    Hassan

    user9206270 wrote:
    If I pass the value = 100 and there in the table to a single point with line (juiceabc) have value = 50, then it also returns
    as:

    juiceabc juiceabc 100

    Use it instead.

    With T As (
    select 'coke' Item ,20 Amount from dual union all
    select 'drink',80 from dual union all
    select 'pepsi',100 from dual union all
    select 'mirinda',380 from dual union all
    select 'juice',250 from dual union all
    select 'orange',500 from dual union all
    select 'lemon',880 from dual union all
    select 'juiceabc',50 from dual
    ),
    --
    --End of sample data
    --
    T_new as (select item,amount from T union all
    select ' ',0 from dual )
    select a_item,b_item,sum_amount
    from (select distinct greatest(a.item,b.item) a_item,least(a.item,b.item) b_item,a.amount+b.amount sum_amount from T_new a,T_new b order by 1)
    where
    sum_amount=&amt
    and (trim(a_item) is not null or trim(b_item) is not null)
    and a_item != b_item
    order by a_item,b_item
    /
    
    PRAZY@11gR1> /
    Enter value for amt: 100
    old  19: sum_amount=&amt
    new  19: sum_amount=100
    
    A_ITEM   B_ITEM   SUM_AMOUNT
    -------- -------- ----------
    drink    coke            100
    pepsi                    100
    
    Elapsed: 00:00:00.07
    PRAZY@11gR1> /
    Enter value for amt: 50
    old  19: sum_amount=&amt
    new  19: sum_amount=50
    
    A_ITEM   B_ITEM   SUM_AMOUNT
    -------- -------- ----------
    juiceabc                  50
    
    Elapsed: 00:00:00.07
    

    Also if there are three elements with the value of 30, 50, 20 = 100 (matches with my brush i.e. 100 parameter) can then return to the query as:

    juicecd juiceef juicegh 100

    You do a cross join. and most importantly you will end - up in cross joins n where n is the number of rows in your table.

    HTH,
    Prazy

  • Is it possible to change the number of lines to display in the query of the adf?

    Hello

    is it possible to change the number of lines that appear in a query of the adf that is similar to a form of the adf?

    I need about 5 lines per column rather than display all the fields in a single column to display? Thank you.

    Hello

    What do you mean that it didn't work? Attributes of how you have in the Panel of the query? Maybe you have fewer number than the combination or lines and the properties of the argument maxColumns attributes.

    Try again with

    and see if you are able to get everything under a single column. If you get, play with these two properties to get the desired result.

    Arun-

  • Satellite Pro A210 - repeat vertical lines on the screen

    I hope someone can help me.

    I am a teacher and was bought by my school a Toshiba Satellite Pro A210 for me to do my school work and connect to a SMART board to teach with. Throughout its probably one of the best laptops I got through school. I got it two months.

    There is only one problem with it. Its developed a rather weird problem. Occasionally, the screen suddenly freezes, and the display will be replaced by thin, alternating vertical black and white lines. The only way to get rid of them is to turn off the laptop and restart it (particularly annoying when it happened in the middle of a lesson when I've been respected by an OFSTEd Inspector!)

    Technician computer school has no idea what is the cause. I was wondering if someone here might have some advice.

    Thanks in advance.

    I ve the same laptop but I didn t receive similar lines on the screen.
    What you could do is update the BIOS and the driver (if possible) display.

    If the same problem happens again, you must connect an external monitor to the laptop.

    Then check if the same lines appears on the external display. If so, then a problem of graphics card might be possible!

  • Computer laptop screen flickering and horizontal lines in Inspiron 15r SE 7520

    I have a laptop Dell inspiron 15r is who is 1.1years old (model - 7520). It worked well up to that of a few days. Last week, he began giving a horizontal line of white point at the top of the screen (like that... in white) for the entire width of the screen. Since yesterday, or a similar line began to appear at the bottom too. Two of these online come and go every 2-3 sec. And the screen will jump a little (like 5 pixels or larger) and it will also sometimes shake which makes it difficult to read letters.

    The problem exists everywhere, even in the start screen. In short, when I press power button / stop and screen start showing something problem also begins.

    Today, I plugged an external lcd display via a vga cable and it works fine. No line and no flickering. So I guess that the GPU is ok? What could be the problem? Would be - this contact that loose or something cable laptop computer screen?

    Another question: I got the security, including the protection against accidental damage and stuff for a year. But since I was outside this period, now, what do I do?

    And since I am outside the warranty period anyway is it OK if I open my laptop and try something?

    Help, please!

    If you have found the solution please share with me.

Maybe you are looking for