Select the row column report default tick intractive all

Dear friends,


SELECT LINE intractive report column check box should be checked by default. If I want to uncheck in this column of the select row I could do.

How can I do this?




Concerning

CORINE

Hi Maxence,

CORINE wrote:

Hello

I used this link http://carlback.blogspot.com/2007/09/mini-check-all-howto.html

Classic report. in the case of column intractive automatic report check box created at the top of the report to update and remove number of lines and the column named as the selected lines. I want intractive report this column box to checked by default. now which albums happed checkbox header column is unchecked while on this it is TICKING at all under the values checkbox. I want to check all values for first time during the page load.

Hope I am clear to you the obligation.

Still not clear with the wording of the explanation. I understand that there is an interactive relationship with the first column as a box to tick and the loading of the page you want all the boxes ticked.

To make this writing a dynamic action on the page load to run some JavaScript as follows:

$( "input:checkbox" ).attr('checked', true);

But this applies to all of the check boxes on the page. If you want more specific a class say chkbox adds the checkbox column and change the dynamic action above to:

$( ".chkbox" ).attr('checked', true);

I hope this helps!

Kind regards

Kiran

Tags: Database

Similar Questions

  • Select the row of the table using radiobutton

    Dear all,

    I want to have a column that will a radiobutton and button in the page. When the user clicks the button, so I want a task by taking the data from the selected row. I kept the rows in the table to a single selection. When the user selects the row (without selecting the radiobutton control), then I can also get the current line and get the data from that. But when the user presses the button (in its actionlistener) then how can I know if the user has selected the radiobutton control or not in the current line.
    Can someone give me guidance in this problem...

    Kind regards
    David

    JDeveloper 11.1.1.4.0

    Santosh,
    where is the property of the value of the bound radio button for? It is an attribute of the line? If so you can access the value via the current line.

    Timo

  • It is possible to select a column of text tabbed without selecting the adjacent column of the tabulated text?

    I have two columns of text created with tabs. I want to select the first column without selecting the second column (I want to format the first column differently). Hope it would be possible to drag a marquee on it and have it select but apparently not. Will do it line by line, but for later use, would like to know if there is a way.

    David

    Creates the tabbed table text would allow you to do. It will give you much more control over the formatting as well.

    To change the text tabs in a table, select the text with tabs and choose table > convert text to table.

  • Select the full column in TableView on click in the cell

    Hello

    I need a dialog where the user can select a column to use the data in columns later in the process.

    The data in the table are read-only.

    bat, I would simply call

    jTable.setColumnSelectionAllowed (true);
    jTable.setRowSelectionAllowed (false);

    But how have I received the same behavior in JavaFX-8 as with this swing-NBS?

    public class TableSelectTest {
        public static void main(String[] args) {
            TableModel myModel = new DefaultTableModel(5, 5) {
    
                @Override
                public boolean isCellEditable(int row, int column) {
                    return false;
                }
    
                @Override
                public Object getValueAt(int row, int column) {
                    return String.format("%s-%s", Character.valueOf((char) (0x41
                            + row)), column);
                }
    
            };
            JTable jTable = new JTable(myModel);
            jTable.setColumnSelectionAllowed(true);
            jTable.setRowSelectionAllowed(false);
            while (4 > jTable.getSelectedColumn()) {
                JOptionPane.showMessageDialog(null, jTable, "select a column", JOptionPane.QUESTION_MESSAGE);
                JOptionPane.showMessageDialog(null,
                        String.format("column %s selected", jTable.getSelectedColumn()),
                        "result",
                        JOptionPane.INFORMATION_MESSAGE);
            }
        }
    }
    
    

    Good bye

    DPT

    Fotunately adding a Checkbox job to a FX-Table header is pretty easy, it's my work around my problem.

    Good bye

    DPT

  • security of the row/column in function

    Hello

    We have the necessary specific company, which is linked to motor vehicle liability insurance. There are many insurance companies, which have joined into a single fund. All claims and contracts are in the single data warehouse. Each line of data (for example, in the table of recreational vehicles) has a column that contains the ID of an insurer.

    The problem is that this data warehouse will be used for analytical purposes, for example, to calculate the cost of insurance. For this operation the insurance companies need data for the whole of the market (Fe: all insured red BMW-s). A few details (reg. No. a car) of each returned row can be visible for the company, whose ID matches the value of the insurer_ID column.

    Example:

    Table: vehicles
    V_ID | do | color | reg_no | insurer_ID
    123 | BMW | Red | 123ABC | 11
    234. BMW | Red | 456QWE | 22

    Insurer with ID 11 querys table:
    Select * from vehicles where do = 'BMW' and color = 'red ';

    Oralcle should return:
    V_ID | do | color | reg_no | insurer_ID
    123 | BMW | Red | 123ABC | 11
    234. BMW | Red | NULL | NULL VALUE

    Is this possible with the native tools of Oracle?

    First variant would be, that there is a query layer, which splits the query in to separate phrases and returns the results to new bundle:

    Select * recreational vehicle where do = 'BMW' and color = 'red' and insurer_ID = '11';
    Select vehicle_ID, make, color of vehicles where do = 'BMW' and color = 'red' and insurer_ID! = "11";

    Query layer must also restore:
    V_ID | do | color | reg_no | insurer_ID
    123 | BMW | Red | 123ABC | 11
    234. BMW | Red | NULL | NULL VALUE

    Second solution would be separate tables, one that contains sensitive data and other data not delicate, between those who must be described in a table relationships. On the first table there is a view for each third party returns authorized only lines.

    Is there an existing case study for this kind of business needs?

    Version of database is Oracle 11 g Standard.

    Best regards
    Erki Pettai
    Analyst
    Proekspert Ltd

    We can make our own implementation of VPD using views. It's not too bad for RLS, but it's a little gross to CLS.

    The basic idea is to set a namespace or a context that is defined using dbms_session.set_context () and then referenced in the view by using sys_context(). In your scenario, you do not want to fill the frame with the company ID whenever someone logs in. (Obvously this kind of thing is gnarlier in stateless web applications). Your opinion would then be something watch this...

    
    create or replace view restricted.vehicles as
    select V_ID
           , make
           ,  color
           , case when insurer_ID = sys_context('your_namespace', 'company_id') then reg_no else null end as reg_no
           , case when insurer_ID = sys_context('your_namespace', 'company_id') then insurer_ID else null end as insurer_ID
    from restricted.vehicles
    /
    

    Note the schema name: you must make sure that the tables are not visible to other users, that point of view. A safer solution would still be two levels of views. At the external level selects just * the internal level. At the external level is believe that gave himself and therefore protects statement of the view from prying eyes.

    You will find the simple line-level stuff - just put in the WHERE clause of the view.

    Because you are running a data warehouse, I suppose that you are spared the inconvenience of trying to manage updates, etc. in this way.

    This course is a Joseph and will be a bit of a nightmare to maintain, especially if you have a lot of tables that you want to protect. That's why Oracle do you want to pay for the license of the company.

    Good luck.

    Cheers, APC

    blog: http://radiofreetooting.blogspot.com

  • Select the row in the table to change in a form

    Hi all

    I use Jdeveloper 12.1.3.0.0 on windows internet explore 10.

    I have the following form and the read-only table. the form and the table that are both on the same object from view.

    click_edit.png

    When the user clicks a row in the table, I want to choose this line in the form above for editing purpose.

    How would I do that? the first column of the table is a primary key.

    I followed shayjdev vedio http://www.youtube.com/watch?v=e0IcnXLJUgU

    but the problem is that when I click the button CreateInsert (5th button left in my case), never clear the form for the opening of new record, instead, he put the table in input mode.

    kindly help me with this.

    Thank you.

    To create a new line, you drag the operation createInsert of the data control on the create new"" button. This should create the new row.  If you like the new line being the last of them using the link from dvohra21 to https://blogs.oracle.com/jdevotnharvest/entry/how_to_add_new_adf

    In this case, you must change the listener to the button action to point to the generation of listener action code of Frank.

    Timo

  • How can I get the color picker to select the hexadecimal value by default?

    Hello world!

    I've upgraded to Photoshop CC 2015, and now when the color picker appears, it selects only the value of C (cynan) by default, which is useless. How can I move it back so the Hex value is selected by default?

    Thanks in advance for any help!

    Ah! I have it. If I open a new file and select the CMYK mode, C is highlighted.

    If I open a new file and select RGB, I get the Hex field highlighted.

    Gene

  • Create the row column in PL/SQL

    I ask as below:

    SELECT THE RCTV. BATCH_SOURCE_ID, RCTL. DESCRIPTION, RCTL. QUANTITY_INVOICED,

    RCTL. UNIT_SELLING_PRICE + NVL (RCTL. TAX_RECOVERABLE, 0) AS PRICE_UNIT

    OF RCTV, RCTL RA_CUSTOMER_TRX_LINES_ALL RA_CUSTOMER_TRX_PARTIAL_V

    WHERE RCTV. CUSTOMER_TRX_ID = RCTL. CUSTOMER_TRX_ID

    AND RCTV. TRX_NUMBER = '100'

    AND RCTL. LINE_TYPE = 'LINE '.

    AND RCTV. BATCH_SOURCE_ID = 6077

    Result:

    8-17-2015 12-27-59 PM.jpg

    My question, can I get result like the image below.

    as.jpg

    Only for Description DOC FEES and STAMP DUTY.

    Please help me...

    Thank you all...

    Change the order where you want to place the DOC_FEE and the STAMP_DUTY I see no specific reason, why you have put at the forefront

    SQL> with t(batch_source_id,description,quantity_invoiced,price_unit) as (select 6077,'20FG/COC/LADEN/FOFO',2,3500000 from dual union all
      2                  select 6077,'40FG/COC/LADEN/FOFO',4,66500000 from dual union all
      3                  select 6077,'40HC/COC/LADEN/FOFO',3,66500000 from dual union all
      4                  select 6077,'DOC_FEE',1,150000 from dual union all
      5                  select 6077,'STAMP DUTY',1,6000 from dual)
      6  ,q as (select batch_source_id,description,quantity_invoiced,price_unit
      7              ,max(case when description='DOC_FEE'
      8                      then price_unit
      9                      else 0
     10               end) over(partition by batch_source_id ) as doc_fee
     11               ,max(case when description='STAMP DUTY'
     12                      then price_unit
     13                      else 0
     14               end) over(partition by batch_source_id ) as stamp_duty
     15    from t)
     16  select batch_source_id,description,quantity_invoiced,price_unit
     17             ,case when row_number() over(partition by batch_source_id order by quantity_invoiced desc) =1
     18             then doc_fee
     19             else 0
     20             end as doc_fee
     21             ,case when row_number() over(partition by batch_source_id order by quantity_invoiced desc) =1
     22             then stamp_duty
     23             else 0
     24             end  as stamp_duty
     25   from q
     26   where description not in ('STAMP DUTY','DOC_FEE')
     27  /
    
    BATCH_SOURCE_ID DESCRIPTION         QUANTITY_INVOICED PRICE_UNIT    DOC_FEE STAMP_DUTY
    --------------- ------------------- ----------------- ---------- ---------- ----------
               6077 40FG/COC/LADEN/FOFO                 4   66500000     150000       6000
               6077 40HC/COC/LADEN/FOFO                 3   66500000          0          0
               6077 20FG/COC/LADEN/FOFO                 2    3500000          0          0
    
    SQL>
    
  • entered in the row area or webb research is all backwards, i.e. from right to left

    1. by clicking on tools causes all tabs in the row to come and go across the screen.
    2 entry online research or the web to be backward, address line that is from right to left.
    apparently caused by some malware or Trojan virus. Can't seem to remove it.
    He came on my other computer because I do not see back.
    John

    You may have hit the SHIFT key by accident while cutting text via Ctrl + X.
    You can reverse the direction of the bidi from right to left text left to right with 'Shift + Ctrl + X.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe
  • How to join two tables if you transpose the rows, columns and rows in one of the table

    Hi guys,.

    can someone help me please in the write request

    I have two tables

    Agents and Agent phones but in the agent phones table for the id of an agent it displays 4 rows because one of the column there types of different phones (office, mobile, home, fax)

    So instead of display 4 rows, I used max(case...) to convert rows to columns

    now how to reach it with another table

    Requirement:

    Database: 11.2.0.2.0

    create the table AGENT_PHONE

    (

    agent_id NUMBER (20) not null,

    agent_type_code VARCHAR2 (10) not null,

    agent_type_prefix VARCHAR2 (10) not null,

    Phone_Number VARCHAR2 (16) not null,

    phone_type_code VARCHAR2 (10) not null

    )

    CREATE TABLEAGENTS

    (

    agent_id NUMBER (20) not null,

    agent_type_code VARCHAR2 (10) not null,

    agent_type_prefix VARCHAR2 (10) not null,

    NAME VARCHAR2 (40) NOT NULL

    )

    INSERT INTO AGENT_PHONE(AGENT_ID,AGENT_TYPE_CODE,AGENT_TYPE_PREFIX,PHONE_NUMBER,PHONE_TYPE_CODE)

    VALUES (29709, ARE ', 'OFFICE', '4805551436', 'CELL');

    INSERT INTO AGENT_PHONE(AGENT_ID,AGENT_TYPE_CODE,AGENT_TYPE_PREFIX,PHONE_NUMBER,PHONE_TYPE_CODE)

    VALUES (29709, ARE ', 'OFFICE', '1111111111', 'PHONE');

    INSERT INTO AGENT_PHONE(AGENT_ID,AGENT_TYPE_CODE,AGENT_TYPE_PREFIX,PHONE_NUMBER,PHONE_TYPE_CODE)

    VALUES (29709, ARE ', 'OFFICE', '2223334444',' OFF');

    INSERT INTO AGENT_PHONE(AGENT_ID,AGENT_TYPE_CODE,AGENT_TYPE_PREFIX,PHONE_NUMBER,PHONE_TYPE_CODE)

    VALUES (29709, ARE ', 'OFFICE', '5556667788', 'FAX');

    INSERT INTO VALUES AGENTS

    (29709, ARE ', 'OFFICE', 'FLY');

    INSERT INTO VALUES AGENTS

    (1234, ARE ', 'OFFICE', 'MIKE');

    SELECT * FROM AGENT_PHONES

    AGENT_IDAGENT_TYPE_CODEAGENT_TYPE_PREFIXPHONE_NUMBERPHONE_TYPE_CODE

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

    29709REOFFICE4805551436CELL
    29709REOFFICE1111111111PHONE
    29709REOFFICE2223334444OFF
    29709REOFFICE5556667788

    FAX

    SELECT * AGENTS

    AGENT_IDAGENT_TYPE_CODEAGENT_TYPE_PREFIX

    NAME

    29709REOFFICEROB
    1234REOFFICE

    MIKE

    This is so the data we have in both table

    Now, I transposed rows to columns in the table of agent phones so I used the following query

    SELECT AP. AGENT_ID,. AGENT_TYPE_CODE,. AGENT_TYPE_PREFIX.

    MAX (CASE WHEN AP. PHONE_TYPE_CODE = 'CELL' THEN AP. PHONE_NUMBER END) AS CELL.

    MAX (CASE WHEN AP. PHONE_TYPE_CODE = 'OFF' THEN AP PHONE_NUMBER END) AS TURNED OFF.

    MAX (CASE WHEN AP. PHONE_TYPE_CODE = 'FAX' THEN AP. PHONE_NUMBER END) LIKE FAX,.

    MAX (CASE WHEN PHONE_TYPE_CODE = 'PHONE'. THEN AP PHONE_NUMBER END) AS PHONE

    AGENT_PHONE AP

    WHERE AP. AGENT_ID = 29709

    GROUP OF AP. AGENT_ID, AP. AGENT_TYPE_CODE, AP. AGENT_TYPE_PREFIX.

    AGENT_IDAGENT_TYPE_CODEAGENT_TYPE_PREFIXCELLOFFFAXPHONE
    129709REOFFICE4805551436222333444455566677881111111111

    My question is how this to join the agents table so that my output should be like this...

    I want to display all the results in the table of the Agent, even if they are not in the table of agent phones. As you can see there are other agent id 1234 is also populated

    AGENT_IDAGENT_TYPE_CODEAGENT_TYPE_PREFIXNAMEAGENT_IDAGENT_TYPE_CODEAGENT_TYPE_PREFIXCELLPHONEOFFFAX

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

    29709REOFFICEROB29709REOFFICE4805551436111111111122233344445556667788
    1234REOFFICEMIKE

    Currently, I run this query and I get the output as below

    SELECT *.

    AGENTS HAS

    LEFT OUTER JOIN AGENT_PHONE AP

    ON A.AGENT_ID = AP. AGENT_ID

    AND A.AGENT_TYPE_CODE = AGENT_TYPE_CODE.

    AND A.AGENT_TYPE_PREFIX = AGENT_TYPE_PREFIX.

    AGENT_IDAGENT_TYPE_CODEAGENT_TYPE_PREFIXNAMEAGENT_IDAGENT_TYPE_CODEAGENT_TYPE_PREFIXPHONE_NUMBERPHONE_TYPE_CODE
    129709REOFFICEROB29709REOFFICE4805551436CELL
    229709REOFFICEROB29709REOFFICE1111111111PHONE
    329709REOFFICEROB29709REOFFICE2223334444OFF
    429709REOFFICEROB29709REOFFICE5556667788FAX
    51234REOFFICEMIKE

    I want id 29709 agent in a line with 1234 agent also id to display

    You can rotate your phone number of agent in columns

    Select *.

    of AGENT_PHONE

    pivot)

    min (PHONE_NUMBER)

    for PHONE_TYPE_CODE in ('CELL' as a 'CELL', 'PHONE' like 'PHONE', 'OFF' in the 'OFF', 'FAX' as 'FAX')

    )

    AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX CELL PHONE OFF FAX
    29709 RE OFFICE 4805551436 1111111111 2223334444 5556667788

    Then you can join to view inline or CTE

    with AGENT_PHONE_PIVOT like)

    Select *.

    of AGENT_PHONE

    pivot)

    min (PHONE_NUMBER)

    for PHONE_TYPE_CODE in ('CELL' as a 'CELL', 'PHONE' like 'PHONE', 'OFF' in the 'OFF', 'FAX' as 'FAX')

    )

    )

    SELECT *.

    AGENTS HAS

    LEFT OUTER JOIN AGENT_PHONE_PIVOT AP

    ON A.AGENT_ID = AP. AGENT_ID

    AND A.AGENT_TYPE_CODE = AGENT_TYPE_CODE.

    AND A.AGENT_TYPE_PREFIX = AGENT_TYPE_PREFIX.

    AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX NAME AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX CELL PHONE OFF FAX
    29709 RE OFFICE ROB 29709 RE OFFICE 4805551436 1111111111 2223334444 5556667788
    1234 RE OFFICE MIKE - - - - - - -

    Is that what you're looking for?

  • You will need to select the rows that have been deleted from the table.

    Please help me with this query

    I'm trying to find the records has been deleted from a table.

    I know recovery flash but I want to check with the request.

    Please help me with this...

    You can see the folders by using the flashback feature, if it is available in the undo data

    SQL> delete from tbl_x;
    
    3 rows deleted.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> select * from tbl_x;
    
    no rows selected
    
    SQL> select * from tbl_x as of timestamp to_timestamp(sysdate-5/24/60);
    
            ID TOTAL_DAYS   NO_DAYS1   NO_DAYS2   NO_DAYS3 START_PER END_PERIO
    ---------- ---------- ---------- ---------- ---------- --------- ---------
             1         20         10          5          5 01-JAN-01 01-JAN-02
             1         10          5          5          0 11-MAY-01 11-MAY-03
             2          4          4          0          0 15-FEB-02 15-FEB-03
    
  • Select the rows with values max.

    SELECT MOFFER.DELIVERYPURCHASE,
      MOFFER.OFFERSTART,
      MOFFER.OFFEREND,
      MOFFER.RANKING,
      MMTDEMANDBID.BALANCEGROUPPK
    FROM EMTMOFFER MOFFER
    INNER JOIN MMTDEMANDBID ON MOFFER.OFFERID = MMTDEMANDBID.MMTDEMANDBIDPK
    WHERE MOFFER.DELIVERYPURCHASE = 'P'
    AND MOFFER.OFFERSTART        >= '2012-01-18T00:00:00'
    AND MOFFER.OFFEREND          <= '2012-01-19T00:00:00'
    AND MMTDEMANDBID.BALANCEGROUPPK = '10393'
    DELIVERYPURCHASE OFFERSTART          OFFEREND            RANKING                BALANCEGROUPPK         
    ---------------- ------------------- ------------------- ---------------------- ---------------------- 
    *P                2012-01-18T23:00:00 2012-01-19T00:00:00 2                      10393*                  
    P                2012-01-18T23:00:00 2012-01-19T00:00:00 3                      10393                  
    P                2012-01-18T00:00:00 2012-01-18T01:00:00 2                      10393                  
    P                2012-01-18T01:00:00 2012-01-18T02:00:00 2                      10393           
    *P                2012-01-18T02:00:00 2012-01-18T03:00:00 1                      10393*         
    P                2012-01-18T02:00:00 2012-01-18T03:00:00 2                      10393                  
    P                2012-01-18T03:00:00 2012-01-18T04:00:00 2                      10393                  
    P                2012-01-18T04:00:00 2012-01-18T05:00:00 2                      10393                  
    *P                2012-01-18T05:00:00 2012-01-18T06:00:00 1                      10393*
    P                2012-01-18T05:00:00 2012-01-18T06:00:00 2                      10393                  
    P                2012-01-18T06:00:00 2012-01-18T07:00:00 2                      10393                  
    P                2012-01-18T07:00:00 2012-01-18T08:00:00 2                      10393                  
    P                2012-01-18T08:00:00 2012-01-18T09:00:00 2                      10393                  
    P                2012-01-18T09:00:00 2012-01-18T10:00:00 2                      10393                  
    P                2012-01-18T10:00:00 2012-01-18T11:00:00 2                      10393                  
    P                2012-01-18T11:00:00 2012-01-18T12:00:00 2                      10393                  
    P                2012-01-18T12:00:00 2012-01-18T13:00:00 1                      10393                  
    P                2012-01-18T13:00:00 2012-01-18T14:00:00 1                      10393                  
    P                2012-01-18T14:00:00 2012-01-18T15:00:00 1                      10393                  
    P                2012-01-18T15:00:00 2012-01-18T16:00:00 2                      10393                  
    P                2012-01-18T16:00:00 2012-01-18T17:00:00 2                      10393                  
    P                2012-01-18T17:00:00 2012-01-18T18:00:00 2                      10393                  
    P                2012-01-18T18:00:00 2012-01-18T19:00:00 2                      10393                  
    P                2012-01-18T19:00:00 2012-01-18T20:00:00 2                      10393                  
    P                2012-01-18T20:00:00 2012-01-18T21:00:00 2                      10393                  
    P                2012-01-18T21:00:00 2012-01-18T22:00:00 2                      10393                  
    P                2012-01-18T22:00:00 2012-01-18T23:00:00 2                      10393                  
     27 rows selected 
    Help, please. How to select lines with RANKING max, OFFERSTART and OFFEREND if the same.
    Get 24 ranks. One for every hour.

    SELECT MOFFER. DELIVERYPURCHASE,
    MOFFER. OFFERSTART,
    MOFFER. OFFEREND,
    Max (MOFFER. (Rank CLASSIFICATION),
    MMTDEMANDBID. BALANCEGROUPPK
    OF EMTMOFFER MOFFER
    INNER JOIN MMTDEMANDBID ON MOFFER. OFFERID = MMTDEMANDBID. MMTDEMANDBIDPK
    WHERE MOFFER. DELIVERYPURCHASE = 'P '.
    AND MOFFER. OFFERSTART > = ' 2012 - 01-18T 00: 00:00'
    AND MOFFER. OFFEREND<=>
    AND MMTDEMANDBID. BALANCEGROUPPK = '10393'
    Group of MMTDEMANDBID. BALANCEGROUPPK, deliverypurchase, offerstart, offerend

  • 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

  • Select the XMLTYPE column

    I'm currently running SQL Developer 1.5.5. on Windows XP SP2.

    Do a SELECT with 1 xmltype column blocks Developer SQL redraw. Table and select ist following the example of code.
    The effect is that the sql worksheet is not redrawn. Mouse on the leaves of results brings each column to display except xmltype column.
    SQL> desc ibb_formulardaten
     Name                  Null?    Typ
     ------------------------------ --------------
    
     ID                    NOT NULL NUMBER(10)
     FRM_ID                NOT NULL NUMBER(10)
     DATEN                          XMLTYPE
     STATUS                NOT NULL VARCHAR2(20)
    
    SQL> SELECT id, frm_id, daten FROM ibb_formulardaten WHERE id = 12345;
    Anyone can reproduce for my problem?

    Thanks a lot for any suspicion!
    Christian

    What happens when you run the select statement in SQL * more? It crash?

    Post your insert statements. In this way we can verify it is valid xml.

    You can try to download new SQL Developer. Maybe something got corrupted on your current installation.

    I use "sqldeveloper - 1.5.4.59.40 - no. - jre.

  • pl sql join and select the join columns. """" t"" c": invalid when debugging

    I noticed the error to the cc. Countries that appears because cc is not yet there at compile time (I had that
    Search this forum).

    is it not a small bit of developer of sql oracle is not a compilation from the outside to the inside/core but
    rather in the form of top-down?

    I'm fine with my conclusion? If so, how to do otherwise, that is, by specifying that cc.country is
    a column of countrycodes attached with table 6?


    SELECT DISTINCT 0,
    2,
    SUBSTR ("metable', 0, 1"): "_ABC";
    "ABC_". "metable,"
    "ABC". CC. country,
    '+'
    FROM table 6
    LEFT JOIN COUNTRYCODE cc
    ON cc. Code = metable
    WHERE metable IS NOT NULL
    AND <>metable "

    OK, but this:

    SELECT DISTINCT 0,
    2,
    SUBSTR('metable', 0, 1) || '_ABC',
    'ABC_' || 'metable',
    'ABC ' ||cc.Country ,
    '+'
    FROM table6
    LEFT JOIN COUNTRYCODE cc
    ON cc.Code = metable
    WHERE metable IS NOT NULL
    AND metable ''
    

    Is not a correct SQL statement - there are very obvious errors, so the error you get is maybe not quite relevant.

    It works:

    SELECT COUNT(cc.Country)
    FROM table6
    LEFT JOIN COUNTRYCODE cc
    ON cc.Code = metable
    WHERE metable IS NOT NULL;
    

    So, get a simple query that works first.

Maybe you are looking for