How to put distinct in the query

Hi all,
How to put distinct in the query.I checked in RPD , Distinct supported is already available. I marked the distinct check box in advance option still then i'm not getting distinct in the query.
any idea , please help...

In the RPD i have join between base table and view .i'm selecting 2 columns one from base table and other from view . which gives cartesian product . to avoid that i want to put distinct . I'm not using any measure . I'm taking direct columns.
I'm getting distinct keyword if i'm accessing the report directly . but when i'm accessing it from dashboard in the back end while preparing the query it's writing distinct but the actual query which is sending to db does not have distinct.
==================================================
RqList distinct
VW_SCNR_114000074_TA_DATA.Match Identifier as c1 GB,
VW_SCNR_114000074_TA_DATA.Tot Trans Amt as c2 GB,
VW_SCNR_114000074_TA_DATA.Tot Trans Ct as c3 GB,
case when VW_SCNR_114000074_TA_DATA.Alert Quality Code = '1' then 'Productive' when VW_SCNR_114000074_TA_DATA.Alert Quality Code = '2' then 'Non Productive' else 'Indeterminate' end as c4 GB,
VW_SCNR_114000074_TA_DATA.Batch Identifier as c5 GB
DetailFilter: Alert TA Data.Run Id > 0 and Alert Scenarios.Scenario Name = 'ScnroName' and Alert TA Data.Batch Id > 0
OrderBy: c4 desc
=================================================
-------------------- Sending query to database named KYC1.1DEV-179 (id: <<16315>>):
select T353.BATCH_ID as c1,
case when T353.QLTY_RTG_CD = '1' then 'Productive' when T353.QLTY_RTG_CD = '2' then 'Non Productive' else 'Indeterminate' end as c2,
T353.TOT_TRXN_CT as c3,
T353.TOT_TRXN_AM as c4,
T353.BREAK_ID as c5,
T117.SCNRO_NM as c6
from
KDD_SCNRO T117,
KDD_TA_DATA T130,
KDD_TSHLD_SET T171,
VW_SCNR_114000074_TA_DATA T353
where ( T117.SCNRO_ID = T130.SCNRO_ID and T117.SCNRO_ID = T171.SCNRO_ID and T130.SCNRO_ID = T171.SCNRO_ID and T130.SCNRO_ID = T353.SCNRO_ID and T130.TSHLD_SET_ID = T171.TSHLD_SET_ID and T171.SCNRO_ID = T353.SCNRO_ID and T171.TSHLD_SET_ID = T353.TSHLD_SET_ID and 0 < T130.BATCH_ID and 0 < T130.RUN_ID )

Similar Messages

  • How can i display all the query items to a table?

    how can i display all the query items to a table in a jsp file?
    i always have an out of memory error..

    any body??any idea?
    is it possible thru configuration or i have to write a program by the abaper??
    Biswa

  • How to put wallpaper on the homescreen on ipod touch 3g?

    I have an ipod 3g and I am wondering how to put wallpaper on the homescreen,I tired to go to settings,but it still won't work??

    Just so we don't spin our wheels, please confirm that it is indeed 3rd-gen (there was a 32GB 2nd-gen iPod touch). You may well be correct, but other people have been mistaken in what they have, so I've learned to confirm. The iPod touch (3rd generation) can be distinguished from iPod touch (2nd generation) by looking at the back of the iPod. In the text below the engraving, look for the model number. iPod touch (2nd generation) is model A1288, and iPod touch (3rd generation) is model A1318.
    Assuming you do indeed have a 3rd-gen iPod, what version of iOS is it running? And when you say "won't work", do you mean that you don't see the option, or you see the option but when you try and change the wallpaper it doesn't change?
    Regards.

  • How to pass parameter to the Query String of the Named Queries'SQL

    Firstly to say sorry,I'm a beginner and my English is very little.
    Now I want to know
    How to pass parameter to the Query String of the Named Queries'SQL in the Map editor.
    Thanks.

    benzi,
    Not sure if this is on target for your question, but see #5 in the link below for some web screencasts that show how to pass an input text form field value to the bind variable of a view object. If you're looking for something different, maybe provide some more details such as what you are trying to accomplish and what technology stack you are using - for example, ADF BC, JSF, etc.
    http://radio.weblogs.com/0118231/stories/2005/06/24/jdeveloperAdfScreencasts.html
    Also see section 5.9 and chapter 18 in the developer's guide.
    thanks

  • I have bought a Macbook Pro Retina, and the iPhoto which comes with it, has a different iPhoto Book menu.  I cannot see how to put text at the bottom of the pages of photographs, instead of the default place in the middle.  Is there a way to do this?

    I have bought a Macbook Pro Retina, and the iPhoto which comes with it, has a different iPhoto Book menu.  I cannot see how to put text at the bottom of the pages of photographs, instead of the default place in the middle.  Is there a way to do this?

    There are different templates for iPhoto books and they differ from version of iPhoto to iPhoto, so explore the other options.

  • How many optional allowed in the query?

    Hi,
    Data base is getting disconnected while running the below sparql query (Query with 9 optional conditions).
    I tested the query with 5 optional its working fine but, its not working for more than 5 optional.
    How many optional allowed in the query?
    Please advice me to solve this problem.
    Error Detail: ORA-03113: end-of-file on communication channel
    SELECT bi, OWNER,name,usage,notes,icto,app,ssd,ssdname,ssdid,sdname,sdarchitect,schedule
    FROM TABLE (sem_match('{
    ?bi rdf:type di:Bulk_Interface .
    ?bi di:hasBulkInterfaceItOwner ?OWNER .
    ?bi di:hasBulkInterfaceName ?name .
    ?bi di:hasBulkInterfaceRecipientApplicationArea ?usage .
    ?bi di:hasBulkInterfaceRecipientFeederType ?notes .
    ?bi di:hasBulkInterfaceSupplierApplicationId ?icto .
    ?app ds:hasConceptualSourceApplicationIctoId ?icto .
    ?ssd ds:hasConceptualSourceApplication ?app .
    ?ssd ds:hasConceptualSourceSubdomainName ?ssdname .
    ?ssd ds:hasConceptualSourceSubdomainIctoId ?ssdid .
    ?sd ds:hasConceptualSourceSubdomain ?ssd .
    ?sd ds:hasConceptualSourceDomainName ?sdname .
    ?sd ds:hasConceptualSourceDomainArchitect ?sdarchitect .
    ?bi di:hasBulkInterfaceDeliverySchedule ?schedule
    optional {?bi di:hasBulkInterfaceRecSet1AverageStorageRequirements ?avgsize}
    optional {?bi di:hasBulkInterfaceWorstStorageRequirements ?maxsize}
    optional {?bi di:hasBulkInterfaceRecSet1AverageNumberOfRecords ?avgrec}
    optional {?bi di:hasBulkInterfaceAverageNumberOfRecords ?avgrec}
    optional {?bi di:hasBulkInterfaceRecSet1WorstNumberOfRecords ?maxrec}
    optional {?bi di:hasBulkInterfaceWorstNumberOfRecords ?maxrec}
    optional {?bi di:hasBulkInterfaceTransferMethodJob ?job}
    optional {?bi di:hasBulkInterfaceDataFileAvailability ?post}
    optional {?bi di:hasBulkInterfaceBusinessDescription ?descr}
    sem_models ('IFM_CURR', 'SRC_CURR'),
    SEM_Rulebases('OWLPRIME'),
    sem_aliases(SEM_ALIAS('di','http://www.cse.com/sbip/dwh/mdm/data_interface#'),
    SEM_ALIAS('ds','http://www.cse.com/sbip/dwh/mdm/data_sources#'))
    , NULL));
    Let me know if you need any other details.
    Regards,
    Kavitha.
    Edited by: 789259 on Aug 3, 2011 2:01 AM

    If possible, I would suggest that you upgrade to the latest release: 11.2.0.2.0. It has many bugfixes and enhancements.
    There is no limit on the number of optionals per query. I suspect that the use of the same new variables (?avgrec and ?maxrec) in the parallel optional clauses is the reason you are seeing the error in this particular case. If you use different variable names does the error go away? If needed, you can use a coalesce in the outer SQL SELECT to get the same behavior as before (e.g. COALESCE(avgrec1, avgrec2) as avgrec).
    Thanks,
    Matt

  • How to put name in the application toolbar

    how to put name on the button in the application tool bar while it is created with selection screen

    I've never seen this done this way.  Learn something new everyday.  Anyway, here is a sample program that will show you what you need to do to add text to your function button,  this also adds an icon.
    report zrich_0002.
    Tables: sscrfields.
    selection-screen function key 1.
    select-options: s_datum for sy-datum.
    INITIALIZATION.
      MOVE '@49@ Export'  TO SSCRFIELDS-FUNCTXT_01. "ICON_EXPORT
    If this has solved your problem, please award points accordingly and mark this post as solved.  Thanks.
    Regards,
    Rich Heilman

  • I have new music on the itunes but have not a clue how to put it on the iphone, it only seems to want to put the old songs on

    i have new music on the itunes but have not a clue how to put it on the iphone, it only seems to want to put the old songs on

    http://support.apple.com/kb/HT1386
    Are you manually managing your songs?
    In itunes - music do you see checkmarks next to your musis/songs.  IF so go find your new songs click on it and then sync your music again.

  • How to put music in the pdf file?

    how to put music into pdf file?
    when open the pdf file in adore reader, music star automatic and when close the music stop itself....
    my version cant add music into it.
    Version: adobe reader x
    can someone show me the ways?

    Adobe Reader cannot do such a thing.

  • How to put borders in the tabular form report

    Hi,
    I need to put borders in the tabular form report in the apex UI .I mean in the by default no boundary comes so I need vertical lines in the column .
    So how to do that.
    Thanks in advance.
    Edited by: Vivek on May 22, 2012 8:25 PM

    Edit the report page > Report Attributes > Change the report template for different look and feel
    You can also customize the report template or even create your own template
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/ui_templt.htm#HTMDB25707

  • How to left trim in the query designer?

    Hi all,
    I have a sceanario like zcust_details contains   abcde/1000276  where 1000276 is the customer code (sold to party) how do i truncate this in the query and then reference this field to solto party.
    The issue is when the user run the query abcde/1000276   is been displayed but users wants 1000276 text to be displayed which is not been captured in bw system.
    so how to truncate and reference the same with 0customer master and display the text values from 0customer text.
    thanks

    Hi Pooja,
    It would be easier to achieve this on bachend. You can truncate and store the result in another Object and then display it in your Query.
    Deepika

  • DISTINCT in the query -- RBO vs CBO

    Hi all,
    We are in a process of migrating our applications from RBO to CBO as we moved to 10g and recently I observed a simple query with DISTINCT clause showing different results in CBO. Here is my order of creating a table in 10g environment,
    create table m_test(col1 varchar2(3));
    insert into m_test values('ZYT');
    insert into m_test values('ABC');
    insert into m_test values('RKT');
    select * from m_test
    col1
    ZYT
    ABC
    RKT
    alter session set optimizer_mode = RULE
    select distinct col1 from m_test;
    col1
    ABC
    RKT
    ZYT
    Note: Explain plan shows that it's doing SORT UNIQUE
    alter session set optimizer_mode = FIRST_ROWS_1
    select distinct col1 from m_test;
    col1
    ZYT
    ABC
    RKT
    Note: Explain plan shows that it's doing HASH UNIQUE
    I would appreciate if someone can let me know why this is happening,
    Thank you,
    Madhu

    It happened to be sorted when you were using the RBO because the query plan the RBO generated happened to involve a sort. The CBO knows that sorting isn't strictly necessary, so it may or may not choose to apply the sort.
    The CBO has a lot of options for generating query plans, depending on table, column, index, and system statistics, histograms, etc. and has a lot more plan options than the old RBO did. The CBO is a lot more likely to change a query plan than the RBO was, which is normally a good thing (a plan that works for a 10 row table might need to be changed if the table grows to 1 million rows). Depending on the Oracle version, initialization parameters, table statistics, system statistics, etc. the CBO may happen to sort rows before returning them.
    If you want Oracle to sort the rows, however, there is only one way to guarantee that-- add an ORDER BY clause.
    Justin

  • How to put pictures inside the table in Pages for IPad?

    How can I put pictures inside the table in Pages for IPad? I can do that in Pages in my macbook, but I can't in IPad.

    It would appear that unless you are working from a document that already had section breaks (or the equivilent) ,you can't. I have some files in pages that began as MS Word documents with multiple sections that allow that by tapping on the footer (or header) and making the change. Files created in Pages (or from other sources but without section beaks) do not.

  • How to put decimal in the substring function

    Hi Friends
    I am having a input value which is a UDF named GetValue which is mapped with a substring (0,4) which is again mapped to a split by value and then to the target field MENGE
    My problem is when value is coming from GetValue and i am mapping it to substring there i want to take the decimals also
    forexample let us value coming is 2 than in the substring and then to the target field i want to send as 2.000.
    Please help me how it can be done.
    Thanks

    Hi Aquarian,
    The value which is coming from GetValue UDF, map that to a FormatNumber Function
    Use the standard function 'formatnumber' with number format 0.00
    double click on 'formatnumber' function in mapping editor to get number format field.
    you need not put anything in the 'decimal separator' field.
    this function is available in arithmetic set of standard functions.
    I believe this should be it.
    Let me know if you need more help.
    Thanks,
    Varun

  • How to put data in the table for Absence Quotas.

    Hello Gurus,
    How to configure in the table (V_556A_B)Absence Quota for increase in SicK Leave and Priviledge Leave.
    Kindly provide me with steps.

    hi.
    please specify whether you are using time evaluation or time management quota generation based on which information can be provided. please do eloberate the query.
    madhu

Maybe you are looking for

  • Two Freetalks, two numbers, one Skype Account

    I have two freetalk 1200's, one in my home and one in our vacation home.  I also have two Skype numbers.  I'd like one Skype number to be associated (exclusivily) with the home Freetalk and the other number associated (exclusivily) with the vacation

  • Is it possible to create a list of the contents of a portfolio

    I have the need to create a number of portfolios with different files based on the need of the individual in the organization and subject to document control procedures. As part of the document control procedure, I have to identify what versions of w

  • Home Hub 3 A.. BT's best ever home hub?

    Hi, I signed up for Infinity 2 (coming from sky) on the 31st May.  I timed it just before the line rental increase (yay) but also just before the home hub 4 was being supplied by default to new customers (doh).   On sign up BT clearly advertised they

  • Importing PSD's?

    Thank you in advance for any help on this... I'm trying to import some PSD files and when I drag them into the timeline and they pop up in the canvas/viewer window the image doesn't show up; instead a white box shows up with the words, "This layered

  • WiFi 802.1x - keeps thinking it is WEP

    Hello, I have just upgraded my iPod Touch to 3.1 and there continues to be a problem getting 802.1x (with machine certificate) working. The interface keeps thinking that the network is WEP enabled (I told it the network was WPA2 in iPhone Configurati