Group By Concatenated Value

Hi, just looking for some help with concatenated fields as getting an error (ORA-00904: "USERNAME": invalid identifier)
Currently I have the following code:
select table2.userid, table1.forename||' '||table1.surname AS username
from table2 inner join table1
on table2.telno = table1.dir_no
group by table2.userid, username;Any ideas where I am going as not used concatenated values before.
Any help would be appreciated.

You cannot use an alias in the group by.
group by table2.userid, table1.forename||' '||table1.surname

Similar Messages

  • Getting Concatenated values in the entry list of a Dropdown

    I am trying to get "Product Family" values in a dropdown based on the "Product Category" that is selected in the previous dropdown.
    And I want the values of the "product Family" dropdown to be represented as a CONCATENATION of the  "Product Family ext key & Product Family text "
    But it seems like it is some sort of a BUG in VC, everytime I have tried doing it, it just repeats the first value of the Product Family text on all the unique values of Product Family Ext Key.
    for example:-
    Product Family ext key  - Product Family text
    apo12345         -            VIDEOS
    bcd12234          -           VIDEOS
    asd89789           -          VIDEOS

    Hi,
    Yes this is a bug and we faced the same situation in past. So finally we decided upon adding one more parameter to the BAPI with those concatenated values.
    Regards,
    Murtuza

  • Sorting and Grouping by multi-value Choice columns - any options?

    I found out the hard way that SharePoint doesn't support sorting or grouping lists by Choice columns that are set to "Allow Multiple Values." I'm stunned by this missing capability, and my project has come to a complete halt without it. It's like Microsoft only implemented hafl the feature -- you can put data in, but then you can't do anything with it. You can't even use the column in a formula in another column, so you can't parse it.
    I'm not posting just to gripe though. Does anyone have any suggestions for alternatives? What do you do when you need to let people make multiple selections, and then you want to sort or group by those values? Are there any add-on products that allow this? At this point my only option seems to be to not allow multiple choices, but that's taking away a rather significant feature.
    Thanks for any ideas,
    Steve

    Hi Paul,
    Thank you for the reply and the additional questions. For my situation I want to use the multi-value choice to indicate a "belongs to" relationship, as in "this item belongs to projectA, projectB, and project C. Because there are more than 10 projects, I didn't want to create a separate Yes/No checkbox for each one.
    For viewing the information, I'm looking primarily for a "group by" function.  So if an item belongs to projectA, projectB, and projectC, it would appear three times, once under the grouping for each project. What I don't want is for a row that only belongs to projectA to be grouped separately from a row that belongs to both projectA and projectB. I want to see all the rows that belong to projectA grouped together, regardless of whether they also belong to other projects.
    I'll look into using a grid control, but if you have any other suggestions I'll certainly listen.
    Steve

  • Group Asset  Takeover Value

    Dear,
    Is there any table entry for group asset takeover value ?..
    When i am using AS82 for creating group asset after that click on Takeover value then that field comes in grayed..
    Regards,
    Kaushal Shah

    Hi,
    Check out the depreciation area screen layout and not asset master screen layout. Check out your Configuration fro group assets at the depreciation area level.
    Thanks,
    Sujai

  • Record group/list of values question

    Is it possible to assign one record group/list of values to multiple data items on a canves? If so, how is it done.
    Thanks

    Thanks for the replies..
    What I have is this... I have a db record with 3 currency code fields, three different types of codes, displayed on the canvas. When the user mouse's over to any of the currency code fields, I wanted the lov to pop up and the user pick one of the selections. The lov has 2 columns, country and currency
    Ex: France | Euro
    U.S. | Dol
    I built this as a static record group. If I'm in the second currency code field and pick a value, the first currency code field gets overlayed with the new value.

  • Error : Concatenated values used in documents for master data

    Hi Experts,
    I am trying to add one characteristics as compounding characteristics to my master data info object.
    previously 'Document property' option was checked for the infoobject. so i unchecked it, as it was not allowing me to add the compounding characterisitcs.
    After doing the changes, when I am trying to save, its throwing error as 'Concatenated values used in documents for master data'.
    Can anyone please help me with what exactly does it mean and what would be the solution to remove this error.
    Thanks,
    Neelima
    Edited by: Potnuru Neelima on Mar 1, 2011 8:39 AM
    Edited by: Potnuru Neelima on Mar 1, 2011 8:40 AM
    Edited by: Potnuru Neelima on Mar 1, 2011 8:41 AM

    Hi All,
    Just found the soultion...wanted to share this....
    Actually one document was created on one of my opportunity values, which was not simply visible from edit menu -> documents.
    Go to RSA1 -> documents -> master data -> and then give ur info object name -> will get all the documents maintained corresponding to it. Need to delete them.
    Then compounding characteristic can be added to our info object.
    Regards,
    Neelima

  • Concatenated values used in documents for master data-Urgent

    Hi,
    while trying to activate a master data object, it is not activating and this message appears
    "Concatenated values used in documents for master data"
    Please help me in this regard.

    Hi,
    this forum is about the SAP BusinessObjects BI Solution Architecture. I would suggest you post your questions into the SAP BW forum.
    regards
    Ingo Hilgefort

  • Concatenating values in one row

    I need to write a function that will give me a concatenated list of all the records where gurmail_matl_code_mod like '8%'
    This query is giving me those results:
    GURMAIL_PIDM     CODE1     CODE2
    1135711          
    1135711          8IBD
    1135711     8IBW     
    I want something like this 1135711 8IBW 8IBD in one row.
    select
    gurmail_pidm,
    max(decode(rn,1,gurmail_matl_code_mod )) code1,
    max(decode(rn,2,gurmail_matl_code_mod )) code2
    from (select gurmail_pidm,
                  gurmail_matl_code_mod,
                  row_number() over (partition by gurmail_pidm order by gurmail_matl_code_mod desc) rn
                  from
                      (select  gurmail_pidm,gurmail_matl_code_mod
                               from saturn.spriden,
                                    general.gurmail
                                    where spriden_pidm = gurmail_pidm
                                    and spriden_change_ind is null
                                    and gurmail_matl_code_mod  like '8%'
                                    and gurmail_pidm = 1135711
                                    and GURMAIL_DATE_PRINTED is null
                                    and gurmail_matl_code_mod is not null))
                                    group by gurmail_pidm, gurmail_matl_code_mod   How I can modify this query or let me know if you have other ideas..
    Thank you

    Hello
    try this,
    SQL>  with tab as(Select 1135711 GURMAIL_PIDM, Null CODE1 from dual Union All
      2               Select 1135711 GURMAIL_PIDM, '8IBD' CODE1 from dual Union All
      3               Select 1135711 GURMAIL_PIDM, '8IBW' CODE1 from dual)
      4  SELECT GURMAIL_PIDM || sys_connect_by_path(CODE1,' ') Result
      5    FROM (SELECT GURMAIL_PIDM
      6                ,code1
      7                ,row_number() over(Partition BY GURMAIL_PIDM Order BY GURMAIL_PIDM) rn
      8            FROM tab)
      9   WHERE connect_by_isleaf = 1
    10   Start With rn = 1
    11  Connect BY Prior rn = rn - 1;
    RESULT
    1135711  8IBW 8IBDHope this helps
    Christian Balz

  • Need help - Hide row of a recursive grouping if textbox value is empty

    Hard to explain, but I will do my best.
    I have a simple report that has a resource (accounting) recursive grouping.  The group and the recursion is working correctly.  The only dollar values I have to display are at the lowest level of the hierarchy so instead of having a simple SUM("POSTED_TOTAL_AMT")
    field to show the rollup totals I did the following =Sum(Fields!POSTED_TOTAL_AMT.Value, "TREE_NODE", Recursive).
    TREE   NODE
    POSTED   TOTAL AMT
    ALL_RESOURCES
    24163945.66
    BANK
    BENALL
    7027062.56
    BENWL
    3490587.96
    BENFT
    279969.6
    BENLD
    3210618.36
    COMAB
    1357934.08
    INCWL
    2178540.52
    CASH_FLOW
    CHRTY
    COGS-ENS
    Everything I have read shows you how to hide a row based on a dataset field but I need to hide the row based on the textbox expression.  For reference here is the expression for the values showing on the report: =Sum(Fields!POSTED_TOTAL_AMT.Value, "TREE_NODE",
    Recursive)
    I added this into the row visibility: =iif(IsNothing(Fields!POSTED_TOTAL_AMT2.Value),True,False)
    But when I run the report I get the following error:
    System.Web.Services.Protocols.SoapException: The Hidden expression for the grouping ‘TREE_NODE’ refers to the field ‘POSTED_TOTAL_AMT2’.  Report item expressions can only refer to fields within the current dataset scope or, if inside an aggregate, the
    specified dataset scope. Letters in the names of fields must use the correct case.

    Hi BlackHills_SD,
    According to your description, when you use the iif expression to set visibility of the row, you got the error message.
    When we write expressions, we will find that the term scope is used in multiple contexts. Scope can specify the data to use for evaluating an expression, the set of text boxes on a rendered page, the set of report items that can be shown or hidden based
    on a toggle. It seems that POSTED_TOTAL_AMT2 is not in the same dataset as TREE_NODE. We can refer to the following steps to troubleshoot the problem:
    Right-click the report and click Insert to add a text box.
    Right-click inside of the text box, then click Expression.
    Click Datasets, click First(POSTED_TOTAL_AMT2), scope of POSTED_TOTAL_AMT2 will be listed.
    For more information about Understanding Expression Scope, please refer to the following document:
    https://technet.microsoft.com/en-us/library/dd255256%28v=sql.105%29.aspx?f=255&MSPPError=-2147217396
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    Wendy Fu
    TechNet Community Support

  • How to read Group ID from Value Mapping Context in Cache Monitoring ?

    Hi friends,
        In RWB --> Cache Monitoring --> Integration Server (Java) -> (Search for Value Mapping Groups) in this each item is identified by Value Mapping Group (GroupID, Context, Identifier/Agency, Identifier/Scheme). Either we create Value Mapping Table in ID or replicate value mapping data directly from text file/SAP table etc., in run time cache, data will be identified in this manner.
        Now, our requirement is to delete a record the Cache for a particular context. Two operations provided by XI one is 'Delete' and another one is 'DeleteGroup'. When we use either of this, we should know GroupID. Suppose, I replicated some large amount of data from my text file in Runtime Cache. Value Mapping Table is like that IN --> India, US --> USA, AU --> Australia, EG --> Egypt. Now, I am required to write a program to get the input country code from user which is going to delete in the value mapping table like IN/AU....  For this, what logic we should follow in the program is, First we scan the value mapping table and find the record (country code)  which is match with the input. Then find the GUID value for this record. Now we use the DeleteGroup Operation and pass this GUID and then delete the record.
        So, in essence, how to read the GUID from value mapping context.
        Friends, Kindly help me to do this.
    Thanks in advance.
    Jegatheeswaran P.

    Did you get the way to read group id?

  • Grouping and sum values in XI

    Hello,
    I 'm working with invoice and I have this source structure as XI input:
    Invoice
    -- |....
    -- |....
    -- |Item1
    |taxcode=01
    |Amount=12
    --|Item2
    |taxcode=08
    |Amount=10
    --|Item3
    |taxcode=01
    |Amount=24
    Now my scope is to map these fields to the IDOC segment E1EDP04 grouping by taxcode (MWSKZ taxcode)and putting the sum of the group amount (MWSBT amount).
    IDOC:
    --|...
    --|...
    --|E1EDP01
    |...
    |...
    |EIEDP04
    |MWSKZ=01
    |MWSBT=36
    |...
    --|E1EDP01
    |...
    |...
    |EIEDP04
    |MWSKZ=08
    |MWSBT=10
    |...
    How can I group by a field in XI?
    Thank you
    Corrado

    Hi Corrado,
    If You want to do it in graphical mapping then I will do it this way:
    1. sort by taxcode
    (taxcode) --> split by value (valuechanged) --> formatByExample (Amount, and splitted value) --> sum(amount) --> MWSBT
    I can send u a screenshot of something similar if u need.
    best regards
    Dawid

  • Group based on value range and order with in group

    Hi All,
    I have a scenario like to group record set based on a value set.
    Example.
    Table data_table has 10 columns of which one column grouping_col can have value from 10 - 100
    i have to retreive a report with multiple order by clause with a precondition that
    record having grouping_col having 10-50 should be processed first then,
    record having grouping_col having 50-60 should be processed next and then so on untill 100.
    Is there a way to do this without union funcitonality.

    Please read the SQL and PL/SQL FAQ:
    SQL and PL/SQL FAQ
    especially the second question regarding how to post a question on the forums.

  • How to generate a report group by column value

    I have a table with five columns:
    c1, c2, c3, c4, count.
    I want to generate a report like this
    Total
    c1, c2
    c3, c4
    such as the values inside the table are:
    a1 b1 cc dd 2
    a1 b1 ee ff 3
    a1 b1 gg hh 4
    a1 b2 jj kk 3
    a1 b2 ll mm 4
    a1 b2 nn oo 2
    a3 b3 pp qq 3
    a3 b3 rr ss 4
    the report will be like:
    a1-b1
      cc-dd 2
      ee-ff 3
      gg-hh 4
    Total for a1-b1 9
    a1-b2
      jj-kk 3
      ll-mm 4
      nn-oo 2
    Total for a1-b2 9
    a3-b3
      pp-qq 3
      rr-ss 4
    Total for a3-b3 7
    What is the best way to achieve this?
    Thanks.
    Jen

    Hi Jen,
    Personnaly I would use a PL/SQL region and use MOD_PLSQL (htp.p) to create such a special layout, but then again you should know how to do it.
    Another way would be to create a select statement in which you select the lines you want:
    select c1||'-'||c2 key1, 0 key2, 'category '||c1||'-'||c2 , null count from table
    union
    select c1||'-'||c2, rownum, rpad(' ',5)||c3||'-'||c4, count from table
    union
    select c1||'-'||c2, count(*)+1, 'Total for cat. '||c1||'-'||c2 , sum(count)
    from table group by c1||'-'||c2, 'Total for cat. '||c1||'-'||c2
    union
    select c1||'-'||c2, count(*)+2, ' ',null from table group by c1||'-'||c2 /* empty line */
    order by 1, 2
    You can base a normal report on this.
    good luck,
    Dik

  • Payscale group and levels values are not appearing in IT0008

    Hi Friends,
    I craeted Payscale group & Level in V_T510. Eventhough these values are not coming as F4 (drop down)values in IT0008.
    Pls adivice where I have missed the configuration.
    Thanks

    Hi..
    ESG/CAP and and its grouping in V-t510 have already been maintained. however still it is not coming as drop down values.
    Pls suggest to resolve.
    Thanks

  • How to Limit the Grouped(through Bins) values in Pivot View

    Hi All,
    we have a column category which contains operational,staffing and allocation categories.
    in our requirement we need to group operational and staffing as group1 and the allocations as the other group2.i have grouped this using bins.
    our requirement is group1 should dispaly in one pivot view and group2 values should display in another pivot view.
    Could any one please suggest on this.
    NOTE: I have tried this with new calculated item option in pivot view but its unable to display character values.
    Thank You,
    Suhasini.
    Edited by: user10920790 on Nov 17, 2009 4:48 AM

    I think the issue here is that you have bins 1,2,3 but you want to see the values displayed, not 1,2,3?
    Try adding the same column again, use them next to each other in the pivot table, hide the one with the bins, what you should get is a prent and child type structure where the values are group according to the 1 2 3 in the first column.
    I htink the only way to get three separate tables would be to duplicate the query 3 times, filtering the bins column by 1 then 2 etc and displaying all three tables one below the other. Alternatively, you could try putting the bins column in the section header of the pivot table to see if that splits the tables by 1 2 3 .
    Sorry if this is a bit long winded, it's worth playing around with it though.
    regards
    Ed

Maybe you are looking for

  • Read options

    Is there any command to tell Siri read options? For example I tell "Call Peter" and Siri asks 'Which Peter' and displays three contacts named Peter. If I have my phone in the pocket or can't look at my phone while driving it is hard to tell what opti

  • Puttiing the Appplication Icon in the Dock

    I know there is a way to put the Applications Folder Icon (the "A") in the Dock to the right of he vertical line - how do you do this - I don't want to have to go to the hard drive icon and open it first before I can then applications - thanks for an

  • Lock form but not fillable fields

    I'm sure this has been discussed and the answer is somewhere, I just can't find it. I created a form from a blank page. When opened in Reader the user is able to move around my text and fields. How do I lock the form from being altered and still allo

  • How can connect java with 3D Max

    i want to make 3d maze by reading from text file for example when i read 0, then i draw wall when i read 1 i draw path ..and so on and i want to move the object in the maze by using AI techniques my questions are: - can I read from file and draw by u

  • Down loaded Adobe reader 9 and can't open PDF

    I am operating Windows Vista. I have installed reader 9.3 several times including using the installer icon. When i atempt to open a pdf all I get is a window that remains blank. The reader was working previously on my computer and suddenly it quite w