SELECT column problem

I have created a table by CTAS, i check the database thru sqlplus and sql developer and table most definitely exist. i also confirm by using select * from ATREPORT.INCOME and everything looks fine.
but when i try to select a column from the table, it tells me invalid identifier, also when i try to try to delete * from ATREPORT.INCOME i get an error message that table doesn't exist.
I really need help right now, is there a way out.

desc atreport.INCOME
Name Null Type
from_date NOT NULL DATE
to_date DATE
por_ref NOT NULL NUMBER(10)
Area_Sort NUMBER
Tax On Interest & Dividends PC NUMBER
por NOT NULL VARCHAR2(10)
sec_ref NOT NULL NUMBER(10)
Area_Group_1 VARCHAR2(50)
Area_Group_2 VARCHAR2(10)
Period Interest & Dividends PC NUMBER
Period Interest & Dividends QC NUMBER
Interest Accrued PC NUMBER
Tax On Interest & Dividends QC NUMBER
Tax Rate NUMBER
Non Restitutable Tax Rate NUMBER
Last Div Franked or Unfranked VARCHAR2(9)
Holding NOT NULL NUMBER(21,7)
Dated CHAR(11)

Similar Messages

  • Report Does Not Follow Select Column Order

    Hi all,
    Apex 2.2 on 10gXE
    I always encounter this problem, the display column on report does not follow the select column sequence order in the "region source".
    It is very tedious clicking the up/down arrow one-by-one in the "report attributes" especially if the display columns are plenty like 40 columns.
    Is there a fix/patch or alternative tips for this bug?
    Thanks a lot,
    Edited by: 843228 on May 24, 2011 10:32 PM

    Apex 2.2 on 10gXEStart by upgrading from this old unsupported version.
    >
    I always encounter this problem, the display column on report does not follow the select column sequence order in the "region source".
    It is very tedious clicking the up/down arrow one-by-one in the "report attributes" especially if the display columns are plenty like 40 columns.
    Is there a fix/patch or alternative tips for this bug?
    >
    This is not a bug. APEX maintains the original column order of the report. This avoids problems downstream in areas like the processing of <tt>g_fnn</tt> arrays in declarative tabular forms, where the assigned arrays are column-order dependent.
    APEX 4.x fixes column ordering bugs that could lead to report corruption, and includes drag-and-drop column ordering in the new tree view in addition to the up/down arrow re-ordering.
    If you really want column order to follow that in the source query, the workaround is to create a new report using the modified query.

  • Changes to selected columns to display in Details tab in Task Manager are not saved during a reboot

    I use Task Manager on Server 2008 R2 to monitor performance. I have added several columns to the Processes tab using View..Select Columns. I have added CPU time, I/O read/write/other bytes, etc.
    The equivalent in Server 2012 is the Details tab. I figured out how to add these same columns - right click on the column headers, and choose "Select columns". This is not obvious by the way.
    However these selections are not persistent across a reboot. So every time I reboot, I need to add the columns back to the display. That is not the case with Server 2008 R2 - they are persistent.
    I am using a domain administrator userid, but not using roaming profiles.
    This is a retrogression vs. Server 2008 R2. Can it be fixed?

    Hi,
    I meant that both the added columns of Windows Server 2008 R2 and Windows Serve r2012 RC are persistent.
    You may install a new Windows Serve r2012 RC to check the symptom.
    Currently, you may perform a System File Checker (SFC /Scannow) to check the result.
    Regards,
    Arthur Li
    TechNet Community Support
    Arthur, I have the exact same problem as David Trounce.  The problem exists, as he described it, and I don't think you are understanding it.  Please pass this problem/bug/defect report to someone else so that it can be logged and fixed before
    RTM.  Thanks! -Kent

  • Insert into a table excluding duplicates of a selected column

    I have mytable:
    IDNO
    Item
    Date
    Level
    1
    X24
    12/23/13 10:41
    22996
    2
    X24
    12/23/13 10:41
    22996
    3
    X24
    12/23/13 9:21
    23256
    4
    X24
    12/23/13 9:21
    23256
    5
    X24
    12/23/13 9:22
    23256
    6
    X24
    12/23/13 9:22
    23256
    7
    X24
    12/23/13 9:22
    22916
    that is a result of INSERT i.e.,
    INSERT INTO myTABLE(Item,[Date],[Level])
    values('X24','12/23/13 :22','22916')
    I want the INSERT to exclude the duplicate level defined as the previous level in a selected column [Level]. This would avoid having to 'view' the table using:
    SELECT
    i.IDNO,i.[Date],i.[Level]
    FROM
    mytable
    i
    INNER
    JOIN
    mytable
    d
    ON
    d.IDNO
    =
    i.IDNO-1
    WHERE
    i.[Level]
    <>
    d.[Level]
    IDNO is an identity column.
    How can this INSERT be achieved without the overheads? 

    Quite helpful comments particularly the ISO- 11179 and the design elements that can prevent the problem in the first instance. My apologies with regards to my impolite post omitting the DDL.  It is a small procedure and [Date] and [Level] can be accommodated
    by the server but are bad habits. My efforts to control the data input were in vain as the data was not from a software conducive to such controls. Because of the high frequency volume of the data, (suggested by the time-stamps with milliseconds cut), any
    effort to have 'The data... cleaned in a presentation/input layer ' would be futile.  The suggestions of  yourself
    and Erland Sommarskog, SQL Server MVP, [email protected], of a UNIQUE constraint to deal with the problem
    underscores the importance of design even in the 'smallest' of procedures. 
    This worked:
    drop table Foobar
    CREATE TABLE Foobar
    (item_name CHAR(5) NOT NULL, 
     foo_timestamp DATETIME2(0) NOT NULL
      CHECK (foo_timestamp 
        = DATEADD(MINUTE, DATEDIFF(MINUTE, '2000-01-01', foo_timestamp),
         '2000-01-01')),
     water_level INTEGER NOT NULL, -- why not be silly? 
     PRIMARY KEY (item_name,foo_timestamp, water_level));
    INSERT INTO Foobar
    VALUES
    ('X24', '2013-12-23 10:41:00', 22996), 
    -- ('X24', '2013-12-23 10:41:00', 22996), rejected by DDL!!
    -- ('X24', '2013-12-23 09:21:00', 23256), rejected by DDL!!
    ('X24', '2013-12-23 09:21:00', 23256), 
    ('X24', '2013-12-23 09:22:00', 23256), 
    -- ('X24', '2013-12-23 09:22:00', 23256), rejected by DDL!!
    ('X24', '2013-12-23 09:22:00', 22916);
    select *
    from Foobar
    item_name foo_timestamp
    water_level
    X24   2013-12-23 09:21:00
    23256
    X24   2013-12-23 09:22:00
    22916
    X24   2013-12-23 09:22:00
    23256
    X24   2013-12-23 10:41:00
    22996

  • Interective Report - Select columns takes forever - APEX32

    I have an interactive report with a query joining two tables. Both tables may have sever hundreds (not many) rows.
    The query runs fast on sql but when on interactive report is run based on same query, and when I click on "Select Columns" to display selected columns, it simply gives that scrolling round circle and just stays there without displaying the select columns wizard window.
    Any Idea to resolve this issue?
    Thanks,
    R

    Hi,
    This might not be problem, but do you see any javascript errors from page ?
    If you create report to totally new page, does it work ?
    Br,Jari

  • JTable - Column swap disabling for selected columns

    Hi,
    In my JTable i want to disable the swapping of selected columns, table.getTableHeader().setReorderingAllowed(false); this disables the whole table swapping.
    Is there anyway to disable only selected column swapping?
    Thanks in advance.
    Yours,
    Arun

    I was able to disable the column swapping in all the ways, i.e. i've solved the problem that i've said in my previous post.
    The following are the scenario'scovered, if the user wants to disable swapping of 1st and 2nd column of a JTable
    1. Donot allow dragging of the 1st and 2nd column and
    2. If the user drag-drop 3 or 4 th column in place of 1st or 2nd column, then undo the swap operation by re-swapping the columns.
    Try the following example
    import java.awt.Point;
    import java.awt.event.MouseEvent;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.event.MouseInputListener;
    import javax.swing.plaf.basic.BasicTableHeaderUI;
    import javax.swing.table.JTableHeader;
    import javax.swing.table.TableColumnModel;
    public class FixedTableColumnsExample
        FixedTableColumnsExample()
            String[] columnNames = {"First","Last Name","Sport","# of Years","Vegetarian"};
              Object[][] data = {
              {"Mary", "Campione","Snowboarding", new Integer(5), new Boolean(false)},
              {"Alison", "Huml","Rowing", new Integer(3), new Boolean(true)},
              {"Kathy", "Walrath","Knitting", new Integer(2), new Boolean(false)},
              {"Sharon", "Zakhour","Speed reading", new Integer(20), new Boolean(true)},
              {"Philip", "Milne","Pool", new Integer(10), new Boolean(false)}
              JTable table = new JTable(data, columnNames);
            TableColumnModel columnModel = table.getColumnModel();
            EditableHeader test = new EditableHeader(columnModel);
            table.setTableHeader(test);  
            JFrame frame = new JFrame("Table Fixed Column Demo");
            frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
            JScrollPane scrollPane = new JScrollPane(table);
            frame.getContentPane().add( scrollPane );
            frame.setSize(400, 300);
            frame.setVisible(true);
        public static void main(String[] args)
            new FixedTableColumnsExample();
    class EditableHeader extends JTableHeader
        public EditableHeader(TableColumnModel columnModel)
            super(columnModel);
        public void updateUI()
            setUI(new EditableHeaderUI());
    class EditableHeaderUI extends BasicTableHeaderUI
        boolean is1and2Swapped  = true;
        protected MouseInputListener createMouseInputListener()
            return new MouseInputHandler((EditableHeader) header);
        class MouseInputHandler extends BasicTableHeaderUI.MouseInputHandler
            protected EditableHeader header;
             public MouseInputHandler(EditableHeader header)
                 this.header = header;
             public void mouseDragged(MouseEvent e)
                 int draggedColumnIndex = ((EditableHeader)e.getSource()).getDraggedColumn().getModelIndex();
                 if(draggedColumnIndex != 0 && draggedColumnIndex != 1 )
                     super.mouseDragged(e);
                     is1and2Swapped = true;
                 else
                     is1and2Swapped = false;
             public void mouseReleased(MouseEvent e)
                 int draggedColumnIndex = ((EditableHeader)e.getSource()).getDraggedColumn().getModelIndex();
                 Point p = e.getPoint();
                 TableColumnModel columnModel = header.getColumnModel();
                 if(p.x < 0)
                     p.x = 0;
                 int index = columnModel.getColumnIndexAtX(p.x);
                 super.mouseReleased(e);
                 if((index == 0 || index == 1) && is1and2Swapped)
                   header.getColumnModel().moveColumn(index,draggedColumnIndex);
    }Is there anyother better way to do the swap disabling? If so please suggest me.
    This solution is having one disadvantage.
    Consider the following scenario,
    a) 1 and 2 are fixed columns.
    b) Move column 4 to 3rd position
    c) Move new 3rd column to 1st or 2nd column's position
    d) the new 3rd column is moving to position 4(its original position when the model was created) instead of position 3.
    This is because the TableColumModel is not updated properly. I'm working on that. Any Suggestions?
    Thanks
    Arun.

  • REUSE_ALV_GRID_DISPLAY - replacing the standard selection column with check

    I am attempting to replace the standard selection column (what you press to highlight an entire line) with a column
    of checkboxes using the REUSE_ALV_GRID_DISPLAY.  Which would mean that when you press on '(de)select all' that the
    checkboxes would behave accordingly.
    There is a 'box' field in the internal table and the layout is referencing it.  I have verified in debug that the
    '(de)select all' functionality is updating that field in the internal table.  When I add the 'box' field to the field
    catalog it will display on the screen but it does not show as ticked when '(de)select all' is pressed.  Again in debug
    the itab is being updated.
    I have been googling for a solution and found others with similar problems, but no useful solutions were provided.
    It is not an option to go with an ALV OO solution per the environment.  Thank you in advance.

    Hi Glen,
    If you are checking condition like whether it is select all or deselect all you can modify the internal for that fields as below
    if select all.
    itab-check = 'X'.
    modify itab where check = 'X' transporting check.
    endif.
    This will update all your itab-check coloumn with check indicator.
    This may be useful for you.
    Thanks,
    Manjunath M

  • Selected Column insert, delete and updation at replication end

    Hello,
    In GoldenGate, is there a way to get a timestamp column at target table to get updated for some selected columns from source table only. For eg.
    At source - Table Temp_Source , columns - Emp_Id (PK), Emp_Name, Department, Address
    At target - Table Temp_Target, columns - Emp_Id (PK), Emp_Name, Department, Last_Update
    The Last_Update column takes timestamp for last updation made at source table which is replicated at target end.
    Now I just want the changes made in EMP_Id, EMP_Name , Department columns to be replicated at target table and also the Last_Update to get updated for changes made in these columns only. The changes made in Address column should not affect Last_Update at target end.
    The extract or replication script for this should work for insert, update and delete scenarios for specified columns. Using COLS creates problem in insertion as it Abends the replication process.
    Is there any way I can achieve this functionality??

    At target end I have written the following code in Replication process -
    GetUpdates
    IgnoreInserts
    IgnoreDeletes
    Map <source table>, target <target table>, COLMAP (USEDEFAULTS, LAST_UPDATE = @IF((EMP_ID <> BEFORE.EMP_ID OR EMP_NAME <> BEFORE.EMP_NAME OR DEPT <> BEFORE.DEPT), @getenv("GGHEADER", "COMMITTIMESTAMP"),REFRESH_TIMESTAMP));
    But this code entertains only the Primary Key changes i.e. EMP_ID, I want the Last_update to get updated for changes in EMP_NAME and DEPT even but not for Address column change at source end.

  • Interactive Report - Include Non-selected Column in Row Text Search

    Hi,
    We have an interactive report that contains many columns. NAME VARCHAR2(30), TYPE VARCHAR2(30) etc and DESCRIPTION VARCHAR2(4000).
    Normally the DECRIPTION column would not be shown (avalilable for dispaly via 'Select Columns' but not selected), however we need the default Row Text Search (ie direct entry into the search field instead of creating a column filter) to search the DESCRIPTION field wether it is selected for display or not.
    This will allow the user to enter a term that may be contained in the DESCRIPTION to find records without trying to display a 4000 character field in the report - which just looks horrible.
    We are using ApEx 4.1.1.
    Thanks,
    Martin Figg

    Hi Ray,
    As I expected this has got us very close. We went with the code:
    select
    facility_id,
    facility_name,
    '<span title="' || facility_desc|| '">'||substr(facility_desc,0,50)||decode(sign(length( facility_desc)-50),1,' (More...)',NULL)||'</span>' facility_desc,
    equipment_id,
    equipment_name,
    '<span title="' || equipment_desc|| '">'||substr(equipment_desc,0,50)||decode(sign(length( equipment_desc)-50),1,' (More...)',NULL)||'</span>' equipment_desc,
    from
    rf_full_item_list_vwhich works well. The only issue is that when you download to csv you get the html tags etc as well. Put I am a lot closer to a solution than we were.
    Thanks again.
    Martin

  • How to find out the selected column in Table Control

    Hi all,
          How to find out the selected column in Table Control?
    Thanks & Regards,
    YJR

    Hi,
    Let your table control name in Screen painter be TC1.
    READ TABLE TC1-COLS INTO WA_COLS (some wok area)
                 WITH KEY SELECTED = 'X'.
            IF SY-SUBRC = 0.
              CLEAR: W_DUMMY, W_COL_NAME.
              SPLIT WA_COLS-SCREEN-NAME AT '-' INTO W_DUMMY
                                                   W_COL_NAME.
            endif.
    W_COL_NAME gives you the column name.
    Hope it helps.
    cheers
    sharmistha

  • How to select columns in a table by their column id and not the column name

    Hello,
    How do you select columns from a table based on their column_id.
    I have create a view
    but other than Select * , i cant now select one just one column from it
    the view as follow:
    create view count_student as
    select a.acode "acode",aname "Activity Name",count(ae.acode) "Number of student joined"
    from aenrol ae, activity a
    where a.acode= ae.acode
    group by a.acode,aname;

    The issue is that you have decided to use quoted column names. A pretty horrible idea (mostly for the reasons that you are now finding).
    Re-create the view and get rid of the silly double quotes.

  • How to export selected columns in a table using expdp of oracle10g

    Hi all..
    I have a table with 10 columns and i want to export only 4 columns(selected columns) data using expdp
    Pl. tell me if we can do this and if yes what is the syntax.
    Thanks..
    Sekhar

    That's not possible, you could use QUERY to specify where clause but not columns in select clause,
    for example,
    QUERY=employees:'"WHERE department_id > 10 AND salary > 10000"'
    you could use
    create table2export as select c1,c2,c3,c4 from tableof10columns;and export the temp table.

  • How to export only selected columns of WD ALV to excel

    Hi,
    I have WD ALV report with EXPORT button (since standard button was not working properly i just hide that and added custom one) & standard dropdown to choose layout. Out of 20 columns user may choose n number of columns, the same number of columns i need to transfer to xls. How to export only selected columns to xls. Any method or FM to filter number of columns being transfer to xls. please advise
    Rgds
    sudhanshu

    Hi,
    Where exactly we are (or going to be) using this reference i.e., CL_SALV_WD_CONFIG_TABLE. Im passing contents, filename & MIME type as:
    call function 'SCMS_STRING_TO_XSTRING'
        exporting
          TEXT   = TEXT
        importing
          BUFFER = XTEXT.
    WDR_TASK=>CLIENT_WINDOW->CLIENT->ATTACH_FILE_TO_RESPONSE(
    **path to the word file
        I_FILENAME = 'WDP.xls'
    String Variable
        I_CONTENT =  XTEXT
    File Type
        I_MIME_TYPE = 'EXCEL' ).
    In CL_SALV_WD_CONFIG_TABLE we have few methods related to column settings however not sure where exactly we will be using this class reference. can you please give some idea so that i can do some r&d in that.
    Rgds
    Sudhanshu

  • How to put image in table selection column in advanced table

    i need to put some image(not a picture, its just a traingalur shape image with different colour which indicates some messages to the user if suppose user adds a data which is duplicate with other row or he may copy existing row and dont change it.) can any one give me an idea of how to achieve this

    Are you looking for image in selection column or as a separate column?
    --Shiv                                                                                                                                                                               

  • How to freeze the selection column in the table control of the module pool.

    hi ,
    in my module pool there is a row selection field  <b>w/selcolumn</b> of the table control called as mark.
    how to freeze the selection column where there is no record in the table control row.
    or in other words where wa is initial.
    thanks
    ekta

    Hi all,
    in the PBO of the screen the following code is written.
    say the selection column is MARK and is declared in the data as well.
    thanks
    ekta
    *************************C O D E **************************************************
    MODULE disp_tabctrl1 OUTPUT.
      IF flag_c = 1.
        READ TABLE it_create_data INTO wa_material_data
             INDEX tab_ctrl1-current_line.
      ELSE.
        READ TABLE it_material_data INTO wa_material_data
             INDEX tab_ctrl1-current_line.
        IF sy-subrc = 0.
          IF ok_code_0101 = '&SEL1'.
            mark = 'X'.
          ELSEIF ok_code_0101 = '&DSEL'.
            mark = ' '.
          ENDIF.
        ELSE.
          LOOP AT SCREEN.
            IF screen-name = 'MARK'.
              screen-input = 0.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
        ENDIF.
      ENDIF.
      index_t = tab_ctrl1-top_line.
      index_d = tab_ctrl1-top_line + n.
    ENDMODULE.                 " DISP_TABCTRL1  OUTPUT

Maybe you are looking for

  • Contract follow up transaction

    Hi, CRM 4.0 Scenario: Existing Contract should get extended every month end. I have configured the copy control for the follow up transaction. Haven't implemented the CRM_COPY_BADI so far. In the follow up, I see the target document, but it is greyed

  • Imac display for macPro

    hi there, can i use my imac 27" 2010 as display for the macPro? if yes, will there be any issue to the performance? (firewire, USB2, minidiplayport) Tnx for any information!

  • Taxation

    Hi, I have a question on Excise Duty and Cess. I am Taxinn Procedure where Cess condition types are not included. My question is : IN FV11 we maintain values for Condition type under the combination of Plant/Vendor/Material. For Excise duty its ok bu

  • "ORA-24344: success with compilation error" in beginDDL

    Hello, I'm facing a really strange problem. When i try to use dbms_wm.beginDDL in one of my versioned tables, i get the error: ORA-24344: success with compilation error ORA-06512: "WMSYS.LT", line 12178 ORA-06512: line 2 I just get the error if i run

  • 招聘J2EE高级程序员/分析员/数据库开发人员

    招聘J2EE高级程序员/分析员/数据库开发人员 招聘职位:J2EE高级程序员(深圳): 4 年以上 IT 工作经验 掌握OCBRM (Oracle Communication for Billing, Revenue Management) Java API 开发技术 (必须) 熟练J2EE Web开发技术 月薪10000左右 招聘职位:J2EE高级程序员(深圳): 1. 3年以上J2ee开发经验,熟练掌握JSP,Servlet,Struts, Spring 和Hibernet. 2. 要求具备