Grouping of colums,

Hello Guys,
I just have an issue,I have sql to be shown below:
COL1 COL2 COL3 COL4
A1 1 mycol1 genes1
mycol2 genes2
genes3
genes4
2 mycol1 genes1
mycol4 genes22
mycol11 genes23
genes29
Where Col1,COL2,COL3 are from table a. and col4 is from table 2 and join is on
tablea.col1 = tableb.col1
and tablea.col2 = tableb.col2
I have grouped all columns in record source of the report.
BUT I M GETTING:
COL1 COL2 COL3 COL4
A1 1 mycol1 genes1
genes2
genes3
genes4
mycol2 genes1
genes2
genes3
genes4
2 mycol1 genes1
genes22
genes23
genes29
mycol2 genes1
genes22
genes23
genes29
...........and so on .
in my sql i have grouped on all 4 columns,its giving cartesan product. the result should be as mention above.
Please help me out asap.
Thanks
Vinsap

Hi,
The definition of  groupingValue (Table Column property) says:
If rows in this column have the same groupingValue and are bound, they are displayed only in one cell.
So, make sure, the columns across a row in a table have same groupingValue and are bound.
Hope this helps.
Regards,
Pavan.

Similar Messages

  • How to group the colume in Enterprise link design studio

    I want count a table record by group some columes,After checking all the transforms,I can't found the appropriate one,Please give me some advices,thanks.

    hi
    You have to create a plan to connect to the external message source, get the message and parse , and finally put it in the ADC data object (user created object). After this step, all your incoming messages will be in ADC data object. Only after getting the message into ADC object, you can use this object - you can create reports using this object.
    I have a few questions
    a) Can you identify your company. b) Have you taken the BAM training course c) These steps are given in training documents in lab 2-6 step by step.
    Do let me know if you need any help, contact directly at [email protected]

  • [JS] CS3 One radio group multiple colums

    Is there any way to split one radio group into multiple columns?
    For example:
    Paragraph Alignment: Left
    Right
    Center
    Justify
    I would like it to look like this:
    Paragraph Alignment: Left Center
    Right Justify

    > Would you know where documentation for ScriptUI would be?
    ESTK 3: Help > JavaScript Tools Guide
    ESTK 2: Help > SDK > JavaScript Tools Guide
    Peter

  • How to group this colum ?

    Hi,
    I have this request :
    select b.nom, d.libelle, a.TOTAL_HEURES
    from observatoire.fiche a, observatoire.agent b, observatoire.activite_faite c, observatoire.activites d
    where equipe_id = 161
    and a.agent_id = b.agent_id
    and a.fiche_id = c.fiche_id
    and c.activites_id = d.activites_id
    group by b.nom, d.libelle, a.total_heures
    order by b.nom
    It gives me this result :
    "NOM"     "LIBELLE" "TOTAL_HEURES"
    LEQUET     Aménagement de berges et milieux naturels 8,5
    LEQUET     Nettoyage rivière et vallée 8
    LEQUET     Mobilier 8,5
    LEQUET     Nettoyage rivière et vallée 9
    LEQUET     Tonte 8
    LEQUET     Tonte 5,5
    LEQUET     Entretien matériel, véhicule ou magasin, livraison, devis     9
    LEQUET     Tonte 8,5
    LEQUET     Tonte 9
    LEQUET     Entretien de berges et milieux naturels 9
    PARIS     Tonte 7
    TILLET     Nettoyage rivière et vallée 9
    TILLET     Tonte 9
    I would like that the column with the same "LIBELLE" and with the same "NOM" be grouped, for example :
    LEQUET     Tonte 8,5
    LEQUET     Tonte 9
    Would give this :
    LEQUET     Tonte 17,5
    I have tried but could not succeed.
    Do you have a suggestion ?
    Thank you for your kindness ! <<Christian

    Do you mean a simply SUM over total_heures? Try change your SELECT to:
    select b.nom, d.libelle, SUM(a.TOTAL_HEURES) ...
    group by b.nom, d.libelle
    order by b.nom

  • Group by colum wise data in adobe form

    Hi,
      I have a requirement to print data in adobe form thru webdynpro for abap.
    example; i have a table data getting from webdynpro like below.
    date               empno   activity.
    11-11-2008     p101       x1.
    11-11-2008     p101       x2.
    11-11-2008     p102       z1.
    12-11-2008     p110       z2
    12-11-2008     p111       z3
    above table data i need to print in adobe form like this.
    date :  11-11-2008
    empno       activity
    p101           x1.
    p101           x2.
    p102           z1.
    date : 12-11-2008
    empno        activity
    p110             z2
    p111             z3
    please tell me how can make this
    Thanks
    Murali Papana
    Edited by: murali papana on Nov 14, 2008 1:47 AM

    Hi,
    After creating new data connection in the Lifecycle designer, all the attributes in the web service will appear in the 'Data View'.
    Drag and drop a DropDownList from the library palette
    Add the static values and texts to it
    Select the UI element (DropDownList) within the form designer.
    Goto Object palette --> Binding
    select Import/Export Bindings (Execute):
    Select data connection and give the binding attribute.
    Thanks & Regards,
    Sanoosh

  • GROUP BY column name

    Hi
    Is there anyway to use group by colum name?
    Select field1,field2
    from table
    group by 1,2
    Is it possible?

    user544364 wrote:
    Hi
    Is there anyway to use group by colum name?
    Select field1,field2
    from table
    group by 1,2
    Is it possible?Do you mean group by column number?
    No. You must specify the column names to group by. Only ORDER BY allows for column numbers to be referenced.

  • Distinct query problem

    Hi,
    Does anyone know why this doesn't work?
    USE LOGONs;
    SELECT ComputerName, Description, Make, Model, Servicetag, [Serial Number], TagShipdate, OperatingSystem, startdate, enddate
    FROM All_Warranties_Archive$
    WHERE TagShipDate < DATEADD(dd,-1095,GETDATE())
    GROUP By ServiceTag
    The error I get is
    Column 'All_Warranties_Archive$.ComputerName' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.

    Hi,
    This is the data I am getting back with JingLangli's query
    NULL    stock        Dell    PRECISION M4300    19J***    NULL    2007-08-30 00:00:00.000    NULL    2007-08-29 00:00:00.000  
     2010-08-29 00:00:00.000
    NULL    stock        Dell    PRECISION M4300    19J***    NULL    2007-08-30 00:00:00.000    NULL    2007-08-29 00:00:00.000  
     2010-08-29 00:00:00.000
    NULL    stock        Dell    PRECISION M4300    19J***    NULL    2007-08-30 00:00:00.000    NULL    2007-08-29 00:00:00.000  
     2010-08-29 00:00:00.000
    NULL    stock        Dell    PRECISION M4300    19J***    NULL    2007-08-30 00:00:00.000    NULL    2007-08-29 00:00:00.000  
     2010-08-29 00:00:00.000
    NULL    stock        Dell    PRECISION M4300    19J***    NULL    2007-08-30 00:00:00.000    NULL    2007-08-29 00:00:00.000  
     2010-08-29 00:00:00.000
    NULL    stock        Dell    OPTIPLEX 755    1FP***    NULL    2008-10-01 00:00:00.000    NULL    2008-09-30 00:00:00.000  
     2011-09-30 00:00:00.000
    NULL    stock        Dell    OPTIPLEX 755    1FP***    NULL    2008-10-01 00:00:00.000    NULL    2008-09-30 00:00:00.000  
     2011-09-30 00:00:00.000
    6th column along is the Service tag, there are multiple entries in this column and I'd like this to be the distinct or grouped by colum.  The only other colum I am interested in is the 8th column along, tagshipdate....  Tag ship date should all
    be the same for each Service Tag...

  • Give a title to some selection

    Hello Gurus,
    I have to do a report where I need to give some titles to some group of colums but I don't know how to do that without using a workbook.
    I need to do the following:
      Title 1                                    |   Title 2
    Selection1 Selection2 Formule1 | Selection3 Selection4 Formula2
    Please if you know or have some idea of how can I associate the titles to each group of selections and formulas please tell me something because this is quite urgent!
    Thank you in advance.
    Regards,
    Ana

    Hi Ranga,
    First of all thanks for your answer.
    Unfortunatelly I need to give more to title so it can´t be solved with structures because I just can create 2 structures right?
    This is the correct example:
    Title1                 | Title 2                |Title3                  | Title4
    Sel1 Sel2 Form1| Sel3 Sel4 Form2 | Sel5 Sel6 Form3 | Sel7 Sel8 Form4 
    Hope somebody can help me soon.
    Thanks you in advance
    Regards,
    Ana

  • Displaying a group of  data in different colums

    I have a problem with displaying a group of data in different colums. I want to display a group of data like this:
    Column 1 --- Column2 ----- Column3
    data1 data6 data11
    data2 data7 data12
    data3 data8 data13
    data4 data9 data14
    data5 data10 data15
    That is, the coulm headers must be at the same height of the page and data must be in paralell columns.
    My number of data is variable depending on a query result, and I want to start displaying my group on the first column and when it is full (the number of records per column is fixed), is must switch into the next one.
    In case there were more than 15 records, the 16th and the followings, must be displayed on the next page, with the same format as i have explained before.
    Thank you very much.

    Send me all files along with expected output at [email protected]

  • Change colums from group to group in Reports 2.5 (Developer 2000)

    Hi
    I know there is a easy way to do it in reports 6i, simply dragging and dropping the colum from group to group. But in 2.5 it doesnt work.I suppose there is a way to do it but i dont find it
    Thanks a lot

    Hi,
    In reports 2.0 we have the "Reports Generator Version 2.0" to do this but do we have anything of this sort ( to convert rpt to rex) in reports 2.5 it tells something about case dictionary and stuff...
    I'am not able to get exacltly what U are telling could U explain a bit U can mail me
    to "[email protected]"
    please
    thank U so much
    regards
    Naresh
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by nirali:
    Hi!
    1.sccs edit .exp/inp
    - Check out most recent version from SCCS(source control)
    2. pasterex *.exp *.rex - Add special characters so this report can be loaded into the DB.
    this will generate *.rex file.
    Nirali<HR></BLOCKQUOTE>
    null

  • Most recent date from a colum, group by numbers.

    I want to get the most recent 3 dates from a colum group by account numbers.
    for a account number what are my 3 recent dates. i only need to see the 3 recent dates. for e.g
    Account_number DATE
    1011001002117010     010607
    1011001002117010     010507
    1011001002117010     300307
    1011001002117010     010307
    1011001009077015     010607
    1011001009077015     010507
    1011001009077015     300307
    1011001009077015     010307
    i want to pick up the 3 recent date from the date column
    ( 01/06/07,01/05/07,30/03/07 ) for both the account number.
    Please help me with how do i get that using a select statement.
    Thanks in advance
    ahmed

    Hi,
    Use the following query. This may probably help.
    select account_number, date
    from
    (select account_number, date, row_number() over (partition by account_number order by date desc) rn
    from <your_table_name>)
    where rn <= 3;
    Regards,
    MAK
    Message was edited by:
    user545088

  • Person or Group colum in the SharePoint list retrieves empty value for Mobile phone property

    Person or Group colum in the SharePoint list retrieves empty Mobile phone for some users although thoses users have Mobile Phone values in the User Proifles. This happens only for some users. For some users  it shows Mobile phone for
    some days and after some days it dess not show Mobile Phone though Mobile Phone entries are in the User Profiles for those users.
    Appreciate any help to fix this.
    Thanks in Advance!
    Narayana Reddy
    Narayana Reddy G

    Hi Narayana,
    According to your description, my understanding is that the person or group column retrieved an empty value for Mobile phone in SharePoint 2010.
    Please go to the hidden User Information List using
    http://<SiteCollectionUrl>/_catalogs/users/detail.aspx , check the value of Mobile phone.
    Please go to CA->Monitoring->Review job definitions, scroll to User Profile to SharePoint Full Synchronization
    and
    User Profile to SharePoint Quick Synchronization, make sure they work well.
    In addition, please take a look at :
    http://donalconlon.wordpress.com/2012/03/02/sharepoint-user-information-list-is-not-being-updated/
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Grouping issue vouchers items in an invoice

    Hi all
    I'm developing an inventory and sales system , I have a master detail form for issue vouchers issued to customers, the master block contains the columns voch_no (issue voucher no) and the customer_no from issheads table and the detail block contains voch_no, stock_code,quantity and price colums from isslines table.
    Each customer may have more than one issue voucher, and each issue voucher may have more than one item.
    I have another form, the invoice form (also a master detail just like the issue voucher).
    What i hope to do is when the user creates a new invoice for a specific customer, he shouldn't create the invoice items himeself, but he should select some issue vouchers that belong to that customer (better to be multi select), then the invoice items will be created automatically to get the sum(quantity) grouping a line for each item by stock_code,price.
    The issue voucher numbers related to each invoice should be saved in a table for later updating.
    my question is :
    1-Should i create a new table that contains all the nmbers of the issue vouchers related to the invoice no ?
    2- how can i handle this in forms builder ?, should i create a new form, or can i achieve this in the invoice form itself and how?
    Please help

    Thank you!
    You're probably right, I might be talking about a feature of the sistem I'm using. Actually I'm not sure if I have access to database but probably not, I work at Xerox in Brasil and would like to know a little bit more about Oracle, with out have to ask my boss all the time. I work with record receipts of different species have lost much time trying to find repeating items on invoices. Sometimes we have interface issues, some items don't go to WIS (warehouse information system) after it registers on Oracle, so we have the physical part but it's not in the report storage
    My boss once told me he would teach me a way to see items of an invoice (repeting or not) after it registers on Oracle, but he is too busy, so I'm trying to find out by myself. If it helps, the systems responsability is Oracle applications - OSPD and my security group is standart.
    I'm sorry if my english is not that good I feel that my words seem a little confusing to you...
    Did you understand what I mean? Hope you did, and hope you can help.
    Thanks once again for your interest in helping me I really aprecciate it.
    Regards,
    Maria Carolina.

  • How to make fields in field group as text fields in ABAP query

    Hi friends,
    I a have a ABAP query 85 corresponding to infoset A205,
    there is a field group in the infoset A205 and it contains some fields
    but some of the fields are made as text fields ................i want to know how to make these fields in
    the field group as text fields.
    there is a small icon  " T " on the field when it is made as a text field .
    Please help me
    Thanks & Regards

    Hi,
    IF you can specify which Field Catalog then it will be useful for us to provide appropriate answer.
    1. For Customer Master
    IMG> Financial Accounting New> Acs Recev and Acs Payable --> Customer Accounts --> Master Data --> Preperation of creating customer master Data --> Define Account Groups with screen layout (customers)
    In that you can create your own account group, and click Details Screen.
    There will Field Status header within that are listed three main areas
    General data
    Company code data
    Sales data
    When you double click these lines it will take you into "Status Group" Overview. Wherein under "Select Group" are listed fields Address, communiucation.... Double click on one group , you will bet aken into the group field wherein you will find 4 colums with indicators assigned to it. ( Suppress, Req. Entry, Opt Entry, Display) you can choose the required option. "Req. Entry" against the field. Click save after you complete your selections.
    2. Similarly you can do for Material Master in
    IMG --> Logistics General --> Material Master --> Field Selection --> Maintain Field Selection for Data Screens
    But be careful when you do it for material master as it is cuts across all the modules...
    Regards
    Sathya

  • Discover group problem with cross tab report

    Hi, I'm working on a cross tab report in discoverer 4i and I'm having a problem with two of the colums. I'm doing a count on one field but because they are called something different they are being shown as two seperate columns rather than 1.
    I have one called 101 -AVG and another called 101-AVG. My condition pulls every result back that starts with 101 in the table. So because in the table the values are different it breaks the count into totals for 101 -AVG and 101-AVG.
    Is there some way I can group these results together into one field?
    thanks,
    Ian

    Pitson,
    better to ask this question in the BI Publisher Forum than here in the Oracle Reports Forum:
    BI Publisher
    Regards
    Rainer

Maybe you are looking for