Add a column without reference

I would like to know how to add a column to tabular presentation without reference. I built a report and has been able to do a group in my source code. The tabular presentation is not allowing me to do the same thing. I get an error:

ORA-01446: cannot select ROWID, or sample, a view with DISTINCT, GROUP BY, etc.

my code is:

Select
'REF_ACTIVITY_TYPE '. "" ACTIVITY_TYPE_NAME "as"STAFF_TS_ACTIVITY_ID. "
'WORK_ITEM '. "" WR_NUM "as"STAFF_TS_WR_ID. "
'STAFF_TS_DETAILS '. "" STAFF_TS_MON "as"STAFF_TS_MON. "
'STAFF_TS_DETAILS '. "" STAFF_TS_TUE "as"STAFF_TS_TUE. "
'STAFF_TS_DETAILS '. "" STAFF_TS_WED "as"STAFF_TS_WED. "
'STAFF_TS_DETAILS '. "" STAFF_TS_THU "as"STAFF_TS_THU. "
'STAFF_TS_DETAILS '. "" STAFF_TS_FRI "as"STAFF_TS_FRI. "
'STAFF_TS_DETAILS '. "" STAFF_TS_SAT "as"STAFF_TS_SAT. "
'STAFF_TS_DETAILS '. "" STAFF_TS_SUN "as"STAFF_TS_SUN. "
'STAFF_TS_DETAILS '. "" STAFF_TS_REF_ID "as"STAFF_TS_REF_ID. "
'STAFF_TS_DETAILS '. "" STAFF_TS_DETAILS_ID "as"STAFF_TS_DETAILS_ID. "
SUM ('STAFF_TS_MON' 'STAFF_TS_TUE' 'STAFF_TS_WED' + 'STAFF_TS_THU' + 'STAFF_TS_FRI' + 'STAFF_TS_SAT' + 'STAFF_TS_SUN') AS 'TOTAL '.

Of
"STAFF_TS_DETAILS,"
"WORK_ITEM,"
"STAFF_TS_SUMMARY,"
"PLAN_ACTIVITY,"
'REF_ACTIVITY_TYPE '.
where
'STAFF_TS_DETAILS '. "" STAFF_TS_WR_ID "="WORK_ITEM. " "" WR_ID "and
'STAFF_TS_DETAILS '. "" STAFF_TS_REF_ID "="STAFF_TS_SUMMARY. " "" STAFF_TS_SUMMARY_ID "and
'STAFF_TS_DETAILS '. "" STAFF_TS_ACTIVITY_ID "="PLAN_ACTIVITY. " "" PLAN_ACTIVITY_ID "and
'PLAN_ACTIVITY '. "" ACTIVITY_TYPE_ID "="REF_ACTIVITY_TYPE. " "" ACTIVITY_TYPE_ID "and
'STAFF_TS_SUMMARY '. "" STAFF_TS_SUMMARY_ID "=: P31_HIDDEN_SUMMARY_ID
GROUP OF 'STAFF_TS_MON', 'STAFF_TS_TUE', 'STAFF_TS_WED', 'STAFF_TS_THU', 'STAFF_TS_FRI', 'STAFF_TS_SAT', 'STAFF_TS_SUN', 'ACTIVITY_TYPE_NAME', 'WR_NUM', 'STAFF_TS_REF_ID', 'STAFF_TS_DETAILS_ID '.


Can someone share some of their knowledge with me please.

Ryan

I think that - which means I'm not sure it's the right way to do it, but - if no one answers, you can try this - that the reason is the fact that the Apex created postings on items in table form. Try to remove these validations of the element, and then apply the changes to your query.

If it turns out to be OK, recreate validations (PL/SQL) by yourself, if necessary.

Tags: Database

Similar Questions

  • I can add a column to an existing table with the data.

    Hello

    I'm working on
    The Version of database: Oracle 9i

    I can add a column to an existing table that already has data with below given command.

    ALTER TABLE table_name
    ADD the definition of the column_name column;

    Kind regards
    John

    Add to that:

    If your new column is NOT "null", you need the task in 3 steps:

    1. Add the column without a NOT NULL constraint
    2. the default value of the new column added.
    3. Add the NOT NULL constraint in the new column.

    concerning
    AJ

  • Add physical column in advance in the physical layer without using import

    Hi Experts,

    Is it possible to add new physical column in the physical layer in advance if you already knew that this new physical column is added to the OLAP table in the future?


    Thank you

    Hello
    Yes you can do it. Make sure you use the same column in the report once you add the column to the OLAP table.

    check if useful/correct...

    Thank you
    prassu

  • Add a column to the Section

    Hi, I would do the following:

    In a specification of Prodcut-> tab related specifications, I would like to add a column on the section of the Alternative standards.  Currently, the section shows # Spec and Spec - I want to add a column for the classification.

    I looked through some of the extensibility documentation, but didn't notice anything to do something like that (it's probably there somewhere and I just lack).  Can you please give me an example or point me in the right direction on this?

    Thank you

    Hi Mike,.

    We currently have is not an extension of available column add new columns to this section. Feel free to save a value for this application.

    However, you can add the collation of the column name of the technique, if you wish. To do this, you must create an extension of FormatPlugin by using the AltGlobalStandardIdentityPlugin extension point. Your plugin would return the classification (and if you want that the State continue to be displayed, which also include).

    See the PluginExtensions in the ExtensibilityPack in the ReferenceImplementations\PluginExtensions\Documentation folder and read the hardware section identity Plugins and the section called create and deploy a new Format Plugin. This will also guide a simple reference implementation. You can also see the complete source code in the ReferenceImplementations\PluginExtensions\SourceCode\ReferencePlugins\ folder. This Visual Studio contains example FormatPlugins for you to review.

    You will need determine if the classification should also appear on the printing specifications. If Yes, then this is just additional method (and interface) to implement, but documentation shows that.

    Kind regards

    Ron

  • How to add the column to Adobe flex mxml or actionsctpt mx:DataGrid?

    I have the simple mxml code

    <mx:DataGrid id="DGG"
                
    editable="true">
       
    <mx:dataProvider>
           
    <mx:Object scheduledDate="4/1/2006"/>
       
    </mx:dataProvider>
    </mx:DataGrid>
    <mx:Button id="SetBut"
              
    label="Set Array as Data Provider"
              
    click="SetDP(); AddBut.visible = true;"
              
    x="100.5"
              
    y="164"
              
    width="211"/>
    <mx:Button id="AddBut"
              
    label="Add a column!"
              
    click="AddCol();"
              
    x="100.5"
              
    y="194"
              
    width="211"
              
    visible="false"/>
    <mx:Script>
        <![CDATA[
            import mx.controls.dataGridClasses.DataGridColumn;
            import mx.collections.ArrayCollection;

            [Bindable]
            public var MyAC:ArrayCollection=new ArrayCollection([{scheduledDate: "4/1/2006", homeTeam: "Chester Bucks"}]);

            public function SetDP():void
            {
                DGG.dataProvider=MyAC
            }

            public function AddCol():void
            {
                MyAC.addItem({scheduledDate: "4/5/2007", homeTeam: "Long Valley Hitters", Umpire: "Amanda Hugenkis"});
                DGG.columns.push(new DataGridColumn("Umpire"));
            }
        ]]>
    </mx:Script>

    I want to add lines to my datagrid table how do such thing?

    How to add the column to Adobe flex mxml or actionsctpt mx:DataGrid?

    (You can place this code in a Flash or AIR application - it compiles without error, but will not add any columns =)

    Change this:

    public void SetDP (): void
    {
    DGG.dataProvider = MyAC
    MyAC.addItem ({scheduledDate: "05/04/2007", homeTeam: "long hitters Valley", umpire: "Amanda Hugenkis"});
    }
               
    public void AddCol (): void
    {
    var dgc:DataGridColumn = new DataGridColumn ("Umpire");
    var ca:Array = DGG.columns;
    CA.push (DGC);
    DGG.columns = ca;
    }

    Dany

  • I have an ipod touch 128 GB... but I'm almost to reach its maximum.  I want to do is buy a new ipod touch 128 GB and add new music without synchronizing the entire library to it... I have 2 ipods in conjunction with other copies

    I have an ipod touch 128 GB... but I'm almost to reach its maximum.

    I want to do is buy a new ipod touch 128 GB and add new music without synchronizing the entire library to it... I have 2 ipods in conjunction with the other copies of the other.

    is this possible?

    What should I do?

    Matt

    When you get the new iPod, you can use iTunes on your computer to select and synchronize the music you want on it, in the same way that you synchronize your current iPod - your iTunes will recognize them as different devices and will remember your choice of synchronization for each, it will not (unless, for example, you restore the backup of your current on her iPod) put the same content on both.

    (I asked for your post be moved to the iPod Touch forum, where you have posted is the iPad forum use.)

  • Can I add a column 'To' in the message lists?

    Looking at items, I want to add a column 'To' in the list of messages, so I can see that they have been sent to, but I don't see that option anywhere. Is this possible?

    Click with the right button on the headers, or click on the little thing on the end.

  • How can I add a column with my favorites for my screen?

    I just started using Firefox now and can not find a way to add a column on the left side of my window in Firefox (which I didn't in Internet Explorer) showing all the links to my favorite site. In which case it is important, I use Window XP as my operating system).

    To show your Firefox Bookmarks Sidebar ("Favorites" are in IE, not Firefox), use CTRL + B to open or close the sidebar. If the bookmarks bar is open when you exit Firefox (Firefox button > exit or file > exit), it should be open when you restart Firefox.

    • You can also use the following to open or close the bookmarks bar

      • Press ALT or F10 to temporarily show the Menu bar, click View > sidebar > bookmarks to check/uncheck it (checked = displayed; United Nations-checked = not displayed
      • Hold down the ALT key while pressing the VEB keyboard letters

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

    Not related to your question, but...

    You may need to update some plug-ins. Check your plug-ins and update if necessary:

  • Can I add the column to the playlist to my music list in itunes?

    I consult my entire list of music, and I'd like to know what category of playlist I created that the song is in. Can I add the column to the playlist to my music list?

    I use an older iTunes. You cannot create a column for playlists, but you can right click on individual tracks and is one of the elements to display the items in the lists of reading in which it is contained.

  • Add more columns in number 3.6.1

    I need to add many columns in the middle of a worksheet. I know a couple of ways of adding them one at a time, but does anyone know a way to add multiple columns at the same time?

    Hi terydeb,

    An example of insertion of two columns. Select the cells on two columns

    Hold down the option key and press the right arrow on the keyboard

    Kind regards

    Ian.

  • How to add the column to the table of QSqlDatabase if does not exist

    Hello

    I have an app World and want to update to include more features.

    To do this I need to add more columns in an existing database table created using QSqlDatabase, someone knows how to do this please?

    Tim

    Hi, you can use ALTER TABLE

    http://www.w3schools.com/SQL/sql_alter.asp

  • Classic report - add the column "select box"?

    I have a classic report and you want to add a column with a check box so that the user can select several lines and perform an action on all of the lines (delete selected, for example).  Looks like it should be easy and maybe integrated features, but I don't find it.  Is there a standard way to do this?

    Steve

    APEX 5.0

    Hello

    to add a box to your classic report using apex_item.checkbox like this API function:

    select
        APEX_ITEM.CHECKBOX(p_idx=>1, p_value=>DEPTNO)  as select_dept,
        DEPTNO as DEPTNO,
        DNAME as DNAME,
        LOC as LOC
    from DEPT
    

    You can access the values checked (for example in a process page)

    declare
    v_deleted_depts number := 0;
    begin
    FOR i in 1..APEX_APPLICATION.G_F01.count
    LOOP
      v_deleted_depts := v_deleted_depts + 1;
      delete from dept where deptno = APEX_APPLICATION.G_F01(i);
    END LOOP;
    :P1_DEPTCOUNT := v_deleted_depts;
    end;
    

    P1_DEPTCOUNT (hidden) is just for later interaction with this procedure - for example, you want to present your users with a message of success and error custom as "Deleted & P1_DEPTCOUNT. departments. »

    Maybe you would like to add an option to check all checkboxes at once. If so, read this blogpost Blog of Carl Backstrom: September 2007.

    Kind regards

    Pavel

    Edit: don't forget to toggle the leak key for special characters not your column "checkbox.

  • I have the table of 3 columns A, B, C. I want to store the sum of columns A B in the C column without using the DML statements. Can anyone help please how to do. ?

    I have the table of 3 columns A, B, C. I want to store the sum of columns A B in the C column without using the DML statements. Can anyone help please how to do. ?

    11.1 and especially you have virtual column

    SQL> create table t
      2  (
      3     a number
      4   , b number
      5   , c generated always as (a+b) virtual
      6  );
    
    Table created.
    
    SQL> insert into t (a, b) values (1, 2);
    
    1 row created.
    
    SQL> select * from t;
    
             A          B          C
    ---------- ---------- ----------
             1          2          3
    

    Before that, a front insert - trigger

    SQL> create table t
      2  (
      3     a number
      4   , b number
      5   , c number
      6  );
    
    Table created.
    
    SQL> create or replace trigger t_default before insert on t for each row
      2  begin
      3    :new.c := :new.a+:new.b;
      4  end;
      5  /
    
    Trigger created.
    
    SQL> insert into t (a, b) values (1, 2);
    
    1 row created.
    
    SQL> select * from t;
    
             A          B          C
    ---------- ---------- ----------
             1          2          3
    
  • I'm figuring (add) a column on a PDF form and on the calculation tab, it doesn't let me select (check) the fields I want to calucalate.  It won't let me type in the fields of the box either.

    I'm figuring the shape (add) a column (sum) on a pdf file and on the calculation tab, it won't let me select (check) the fields I want to use in the calculation.  It won't let me type fields in the box either.  I'm doing something wrong?

    the mouse click on the name of the field and press the space key

  • How to add two columns in the criteria (OBIEE 11 g)

    Hello

    I try to add two columns in a criterion of obiee

    * "Done - OLB processed invoices. "" Invoice amount - currency "__" made - OLB processed invoices "." " The amount of taxes AR - billing currency"

    but the problem is:-
    The first column have 500000000 and the second column contains some NULL values from the table. I think that this could be the problem when I try to add that it gives no output.
    just an empty box.

    Can someone tell me how we can add columns in this State.

    Thank you to each and every one.

    Try IFNULL (expr, value)
    for the other columns

    "Done - OLB processed invoices". " Charge the amount - currency "+ IFNULL (" made - OLB processed invoices "". ")" AR tax - currency billing", 0)

    Published by: Srini VIEREN on March 20, 2013 10:02

Maybe you are looking for

  • proplems with the new synchronization

    HelloI have been using the synchronization of the former and I have my key but all of a sudden, I have to format my pc before upgrading to the new syncnow, I installed the new version and made a new account but I need to restore my settings from my o

  • Error when you try to download a torrent file

    That's what I have: file not found (and I have a problem with every torrent) Firefox can't find the file at magnet:?xt=urn:btih:aa4b9b71cb1f93d0e7c1c2222098a8f261d9dd64&dn=Taxi+2+2000+BluRay+720p+AC3+x264-3Li&tr=udp://tracker.openbittorrent.com:80&tr

  • Battery use very high libretto W100

    Hello I've lived in the last weeks that the beautiful new Libretto W100 is very hungry. Of course, it will use some, because he has a lot of power. For example: take notes during a meeting, 1.5 pages (A4 format, font 12), about. 50% of the time the s

  • HP Pavilion g6: need code bios crack please help

    I need help to get back into my phone, I forgot my password and it gives me a code 75615246 need help please

  • BIOS p/w for a HP Mini 110

    I need a BIOS p/w for a HP Mini 110 s/n: [number of Series edited by Moderator]. Thanks in advance.