Reg:-duplicate reds. query

hi friends,
i want to remove 1 records from duplicate records how to remove by query.

Rajnish Chauhan wrote:
hi friends,
i want to remove 1 records from duplicate records how to remove by query.One whole record? wow... the easiest is DELETE from table where... ;)
Did you search the forum? Plenty of examples.

Similar Messages

  • Can we duplicate standard query Search Master Agreements and Agreements.

    Hi Experts,
    I have a requirement to hide Agreement Manager and Business Unit & Region result fields in standard Search Master Agreements and Agreements query.
    I have duplicated this standard query and deleted Agreement Manager and Business Unit & Region result fields. Try to run this query but it is giving error.
    Execution Type is Java.
    Query Executor Class: com.sap.eso.contracts.query.SearchAllMAandAgreements
    Error:  SQL Exception: Fail to convert to internal representation, ANSI-92 SQL State: 99999, Vendor Error Code: 17059. Fail to convert to internal
              representation.
    Does anyone have idea about this functionality or how this standard query can be modified.
    Thanks,
    Lava

    Hi Lava,
    There is the Standard Query ODP-ESO-MasterAgreementList
    Duplicate the query and remove the fields from the Result fields whcih you dont want. I think you will get the result required.
    Thanks
    Kushagra A

  • Would like to change the "Retrieve duplicate rows" Query Prop to unchecked

    Currently the Query Property "Retrieve duplicate rows" is checked (selected) by default.
    For our users, the typical case would be to NOT retrieve duplicate rows.
    Thus, we would like to change the default setting for the "Retrieve duplicate rows" query property to
    unchecked (not selected).
    Is there a way to do this?
    Thanks in advance.

    Is there a way to do this?
    No. Not easily/out of the box.
    The only way I can think off to do this would be to use the Enterprise and Webi SDKs.

  • Delete duplicates from query output

    Hello,
      I would like to delete duplicated records before the output of a SAP query
    I tried writing in SQ02 in additional coding, under "Free coding":
    data %dtab type standard table of /1BCDWB/IQ000000001053 with header line.
    sort %dtab by vbeln posnr.
    DELETE ADJACENT DUPLICATES FROM %dtab.
    In this way I get the short dump when running the query: "Statement is not accessible.".
    If I declare %dtab in the additional coding under "DATA", when I run the query I get the error "%DTAB" has already been declared.".
    If I don't declare %dtab, I can't generate the infoset.
    Do you have any suggestion about the way of obtaining this result?
    Thanks in advance for your support.
    Best regards,
    Andrea

    Hello,
      I didn't find any solution to this problem. I choosed another way: I asked an ABAPer to develop a report to get the same information I wanted to get with the query, as in the ABAP report there's more "space to move".
    Best regards,
    Andrea

  • Reg Structures in Query Designer

    Hi,
    Can someone explain the following regarding Structures usage in Query Designer
    1. Limitations of Structures usage
    2. When to use Structures and when not to use them in Query Designer
    Thanks in Advance
    Regards
    AVS Reddy

    Hi,
    Structures in Query designer are reusable across all the queries for particular info provider once you save in the query designer.
    Also check the below links for more info:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b2/e50138fede083de10000009b38f8cf/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b2/e50138fede083de10000009b38f8cf/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b2/e50138fede083de10000009b38f8cf/frameset.htm
    Reg
    Pra

  • Duplicates from query

    Hi i have an output which should show
    505350 EXH-130, 150, 170, 190, 210 EXD-150, 170, 210
    http://www.southerncooling.com/NEW.cfm
    but i am getting duplicates, i sure i have something wrong
    with my query, but not sure what
    can someone help

    ok lets start at the beginning as i have been on this for
    about 3 weeks now!!!
    if you look at
    http://www.southerncooling.com/Parts.cfm
    then use the selection BRAND, CATEGORY, MODEL
    THE RESULTS PAGE SHOULD SHOW ALL PRODUCTS THAT MATCH THE
    MODEL SELECTED, AND THEN SHOW NEXT TO THE PRODUCTS THE RANGE NAME
    FOLLOWED BY THE MODELS NUMBERS THAT THE PRODUCT IS ACCOCIATED WITH.
    IE
    884443 // EA-34, 45, 56 EF-34,45,46
    THEN HAVE THEM GROUPED INTO CATEGORYS FROM THE CATEGORIES
    TABLE
    HOPE THIS MAKES SENSE
    i have the following tables
    **PRODUCTS_TABLE**
    Products_ID (UNIQUE)
    Part_No
    Discription
    **MANUFACTURES_TABLE**
    Man_ID
    Man_Name
    **PRODUCT_TO_MANUFAC_TABLE**
    PM_Product_ID
    PM_Man_ID
    **PRODUCT_TO_CATEGORY_TABLE**
    PC_Product_ID
    PC_Category_ID
    **RANGE_TABLE**
    Range_ID (UNIQUE)
    Range_Name
    Man_Range
    Range_ID
    **MODEL_TABLE**
    Model_ID (UNIQUE)
    Man_Model
    Range_Model
    Model_Name
    **MODEL_PROD_TABLE**
    Model_Prods_ID (UNIQUE)
    Prod_ID34
    Model_ID34
    Range_Model
    Info
    and this is the full output i need
    <table width="100%" border="0">
    <cfoutput query="Products" group="Cat_Name">
    <tr>
    <td bgcolor="B02300"
    class="MainMidWhite"><strong>#Products.Cat_Name#</strong></td>
    </tr>
    <tr>
    <td><table width="100%" border="0">
    <tr>
    <td></td>
    <td bgcolor="##000000" class="fixed5"><div
    align="left" class="MainMidWhite"><strong>Part No
    </strong></div></td>
    <td bgcolor="##000000"><div align="left"
    class="MainMidWhite"><strong>Discription</strong></div></td>
    <td bgcolor="##000000"
    class="fixed5"> </td>
    </tr>
    <cfoutput>
    <cfset bgcolor="##BBCCE1">
    <tr>
    <td width="30"></td>
    <td bgcolor="#bgcolor#"
    class="fixed5">#Products.Part_No#</td>
    <td bgcolor="#bgcolor#"><div align="left"
    class="Main1Black">#Products.Discription#
    </div></td>
    <td bgcolor="#bgcolor#" class="fixed5"><div
    align="center"><span
    class="style3">#Products.Range_Name#-#Products.Model_Name#,</span>
    </div></td>
    </tr>
    </cfoutput>
    </table></td>
    </tr>
    </cfoutput>
    </table>

  • Help with Finding Duplicate records Query

    HI,
    I am trying to write a query that will find duplicate records/cases.
    This query will be used in a report.
    So, here are the requirements:
    I need to find duplicate cases/records based on the following fields:
    DOB, DOCKET, SENT_DATEI was able to do that with the following query. The query below is able to give me all duplicate records based on the Criteria above
    SELECT      DEF.BIRTH_DATE DOB,
               S.DOCKET DOCKET,
               S.SENT_VIO_DATE SENT_DATE, COUNT(*)
    FROM SENTENCES S,
                DEFENDANTS DEF
    WHERE      S.DEF_ID = DEF.DEF_ID
    AND       S.CASE_TYPE_CODE = 10
    GROUP BY  DEF.BIRTH_DATE, S.DOCKET, S.SENT_VIO_DATE
    HAVING COUNT(*) > 1;
    //I AM GOING TO CALL THIS QUERY 'X'Now, the information to be displayed on the report: defendants Name, DOB, District, Docket, Def Num, Sent Date, and PACTS Num if possible.
    The problem that I need help on is how to combine those queries together (what I mean is a sub query). the 'X' query returns multiple values. please have a look at the comments on the query below to see what I'm trying to achieve.
    here is the main query:
    SELECT      INITCAP(DEF.LAST_NAME) || ' ' || INITCAP(DEF.FIRST_NAME) || ' ' || INITCAP(DEF.MIDDLE_NAME) DEFENDANT_NAME,
            DEF.BIRTH_DATE DOB,
            TRIM(DIST.DISTRICT_NAME) DISTRICT_NAME,
            S.DOCKET DOCKET,
            S.DEF_NUM DEF_NUM,
            S.SENT_VIO_DATE SENT_DATE,
            DEF.PACTS_ID PACTS_NUM
    FROM      USSC_CASES.DEFENDANTS DEF,
            USSC_CASES.SENTENCES S,
            LOOKUP.DISTRICTS DIST
    WHERE      DEF.DEF_ID = S.DEF_ID
    AND      S.DIST_ID = DIST.USSC_DISTRICT_ID
    AND     S.CASE_TYPE_CODE = 10
    AND     S.USSC_ID IS NOT NULL
    AND // what i'm trying to do is: DOB, DOCKET, SENT_DATE IN ('X' QUERY), is this possible ??
    ORDER BY DEFENDANT_NAME; thanks in advance.
    I am using Oracle 11g, and sql developer.
    if my approach doesn't work, is there a better approach ?
    Edited by: Rooney on Jul 11, 2012 3:50 PM

    If I got it right, you want to join table USSC_CASES.DEFENDANTS to duplicate rows in USSC_CASES. If so:
    SELECT  INITCAP(DEF.LAST_NAME) || ' ' || INITCAP(DEF.FIRST_NAME) || ' ' || INITCAP(DEF.MIDDLE_NAME) DEFENDANT_NAME,
            DEF.BIRTH_DATE DOB,
            TRIM(DIST.DISTRICT_NAME) DISTRICT_NAME,
            S.DOCKET DOCKET,
            S.DEF_NUM DEF_NUM,
            S.SENT_VIO_DATE SENT_DATE,
            DEF.PACTS_ID PACTS_NUM
      FROM  USSC_CASES.DEFENDANTS DEF,
             SELECT  *
               FROM  (
                      SELECT  S.*,
                              COUNT(*) OVER(PARTITION BY DEF.BIRTH_DATE, S.DOCKET, S.SENT_VIO_DATE) CNT
                        FROM  USSC_CASES.SENTENCES S
               WHERE CNT > 1
            ) S,
            LOOKUP.DISTRICTS DIST
      WHERE DEF.DEF_ID = S.DEF_ID
       AND  S.DIST_ID = DIST.USSC_DISTRICT_ID
       AND  S.CASE_TYPE_CODE = 10
       AND  S.USSC_ID IS NOT NULL
      ORDER BY DEFENDANT_NAME;If you want to exclude duplicates from the query and do not care which row out of duplicate rows to choose:
    SELECT  INITCAP(DEF.LAST_NAME) || ' ' || INITCAP(DEF.FIRST_NAME) || ' ' || INITCAP(DEF.MIDDLE_NAME) DEFENDANT_NAME,
            DEF.BIRTH_DATE DOB,
            TRIM(DIST.DISTRICT_NAME) DISTRICT_NAME,
            S.DOCKET DOCKET,
            S.DEF_NUM DEF_NUM,
            S.SENT_VIO_DATE SENT_DATE,
            DEF.PACTS_ID PACTS_NUM
      FROM  USSC_CASES.DEFENDANTS DEF,
             SELECT  *
               FROM  (
                      SELECT  S.*,
                              ROW_NUMBER() OVER(PARTITION BY DEF.BIRTH_DATE, S.DOCKET, S.SENT_VIO_DATE ORDER BY 1) RN
                        FROM  USSC_CASES.SENTENCES S
               WHERE RN = 1
            ) S,
            LOOKUP.DISTRICTS DIST
      WHERE DEF.DEF_ID = S.DEF_ID
       AND  S.DIST_ID = DIST.USSC_DISTRICT_ID
       AND  S.CASE_TYPE_CODE = 10
       AND  S.USSC_ID IS NOT NULL
      ORDER BY DEFENDANT_NAME;SY.

  • Generalise Delete Duplicate Rows Query work in any Database

    Hello Friends,
    I need generalize SQL Query for removal of duplicate data from a table.
    Condition: It will work in both the database Oracle as well as SQL Server 2005.
    Waiting for your valuable response on the above issue.
    Thanks/Regards,
    Bhavin Patel
    Please reply to this post...

    Thanks, Nimish for your reply..._
    I know how to delete duplicate values entry from Oracle database.
    I'm using below method quite often when to delete duplicate value from the Oracle database.::
    SELECT * FROM dept do
    WHERE do.ROWID NOT IN (SELECT MIN(di.ROWID) FROM dept di WHERE di.deptno = do.deptno)
    WITH T1 AS
    (SELECT dept.*,ROW_NUMBER() OVER(PARTITION BY deptno,dname ORDER BY deptno) RNUM FROM dept)
    SELECT * FROM T1 WHERE RNUM > 1
    Actually in interview this question asked to me, I've given Oracle process, but unable to give solution for SQL Server or DB2

  • Reg: SQL select Query in BPEL process flow

    <p>
    Hi,
    I am suppose to execute a SQL select query (in BPEL Process flow) as mention below in JDeveloper using Database adapter.
    </p>
    <p>
    SELECT LENGTH, WIDTH, HEIGHT, WEIGHT,
    </p>
    <p>
    LENGTH*WIDTH* HEIGHT AS ITEM_CUBE
    </p>
    <p>
    FROM CUBE
    </p>
    <p>
    WHERE ITEM= &lt;xyz&gt;
    </p>
    <p>
    AND OBJECT= (SELECT CASE_NAME FROM CUBE_SUPPLIER WHERE ITEM=&lt;xyz&gt; AND SUPP_IND = &lsquo;Y')
    <strong>Now my question is:
    1.</strong> What does this "*" refer to in the query and how can I retrieve the value of LENGTH*WIDTH* HEIGHT from the query where LENGTH,WIDTH and HEIGHT are the individual field in the table.
    2.What does this " AS" refer to? If " ITEM_CUBE " is the alies for the table name "ITEM" to retrieve the value, then query shoud be evaluated as
    </p>
    <p>
    SELECT LENGTH, WIDTH, HEIGHT, WEIGHT,
    </p>
    <p>
    LENGTH*WIDTH* HEIGHT AS ITEM_CUBE
    </p>
    <p>
    FROM CUBE
    </p>
    <p>
    WHERE <strong>ITEM_CUBE.ITEM</strong>= &lt;xyz&gt;
    </p>
    <p>
    AND <strong>ITEM_CUBE.OBJECT</strong>= (SELECT CASE_NAME FROM CUBE_SUPPLIER WHERE ITEM=&lt;xyz&gt; AND SUPP_IND = &lsquo;Y')
    Is my assumption correct?
    Please suggest asap.
    Thanks...
    </p>
    <p>
    </p>

    Hi
    Thank for your reply!
    I have a nested select query which performs on two different table as shown below:
    <p>
    SELECT LENGTH, WIDTH, HEIGHT, WEIGHT,
    </p>
    <p>
    LENGTH*WIDTH* HEIGHT AS ITEM_CUBE
    </p>
    <p>
    FROM CUBE
    </p>
    <p>
    WHERE ITEM= &lt;abc&gt;
    </p>
    <p>
    AND OBJECT= (SELECT NAME FROM SUPPLIER WHERE ITEM=&lt;Item&gt; AND SUPP_IND = &lsquo;Y')
    I am using DB adapter of Oracle JDeveloper in BPEL process flow, where I can able to select only one master table in DB adapter say SUPPLIER and its attributes at a time.But as per my requirment I need to select both the table (CUBE and SUPPLIER) in a single adapter to execute my query.
    It can be achievable by using two DB adapter , One to execute the nested query and another to execute the main qyery considering value of nested query as a parameter.But I want to achieve it by using a single one.
    Am I correct with my concept?
    Please suggest how to get it ?
    </p>
    Edited by: user10259700 on Oct 23, 2008 12:17 AM

  • Reg. parameterizing VO query

    Hi all,
    We are trying to fix some dynamic VOs in our product where bind parameters have not been used. Below are two cases where we need to parameterize VO queries that do not have where clause or have sub-queries. In these cases, would setWhereClauseParam() method help in binding the parameters?
    Case 1: . I have a dynamic VO created using a PL/SQL API call in select clause where I need to bind parameters - Bind in select clause - Code is in AMImpl class
    String stmtStr = "select OEF_UTILS.chk_prg_since_last_prg("
    + odeftId+ "," + PPCId + ",'OEF_TASKS'," + taskId+ ")"
    +" from dual ";
    ViewObject tmpVO = transaction.createViewObjectFromQueryStmt(stmtStr);
    Need to parameterize 'odeftId' & 'taskId'
    Case 2: Sub-query binding - Code is in AMImpl class
    basePrtBsVO = this.createViewObjectFromQueryStmt("BasePrtBsVO",
    "SELECT prtBsBase.tot_expense " +
    ",prtBsBase.net_sub_to_fee " +
    ",prtBsBase.capped_exp " +
    "FROM XYEF_EDFF_PRTBS_ALL prtBsBase, " +
    "XYEF_EDFF_ALL reconBase " +
    "WHERE reconBase.period_start_dt = (SELECT MIN(recon.period_start_dt) " +
    "FROM XYEF_EDFF_ALL recon " +
    "WHERE recon.agreement_id = " + agrId + ") " +
    " AND reconBase.current_flag = 'Y' " +
    " AND prtBsBase.recon_id = reconBase.recon_id " +
    " AND prtBsBase.PRTBS_DTL_ID = " + prtBsDtlId);
    Need to parameterize 'agrId' & 'prtBsDtlId'
    Thanks,
    Srini
    Edited by: srini on Mar 3, 2011 6:42 PM

    To explain more -
    I have SQL queries without where clauses but with dynamic variables to be bound to query- For example in CASE1- I have a dynamic VO to query -
    select OEF_UTILS.chk_prg_since_last_prg(:arg1, :arg2)
    from dual;
    Note that there is no where clause and I call the PL/SQL API OEF_UTILS with two dynamic parameters arg1 & arg2. My requirement is to parameterize the query. Can I use setWhereClauseParams for this?
    Also case 2 is one where there are sub-queries in where clause.

  • Reg: Process Chain, query performance tuning steps

    Hi All,
    I come across a question like,  There is a process chain of 20 processes.out of which 5 processes are completed at the 6th step error occured and it cannot be rectified. I should start the chain again from the 7th step.If i go to a prticular step i can do that particular step, How can i start the entair chain again from step 7.i know that i need to use a function module but i dont know the name of FM. Please somebody help me out.
    Please let me know the steps involved in query performance tuning and aggregate tuning.
    Thanks & Regards
    Omkar.K

    Hi,
    Process Chain
    Method 1 (when it fails in a step/request)
    /people/siegfried.szameitat/blog/2006/02/26/restarting-processchains
    How is it possible to restart a process chain at a failed step/request?
    Sometimes, it doesn't help to just set a request to green status in order to run the process chain from that step on to the end.
    You need to set the failed request/step to green in the database as well as you need to raise the event that will force the process chain to run to the end from the next request/step on.
    Therefore you need to open the messages of a failed step by right clicking on it and selecting 'display messages'.
    In the opened popup click on the tab 'Chain'.
    In a parallel session goto transaction se16 for table rspcprocesslog and display the entries with the following selections:
    1. copy the variant from the popup to the variante of table rspcprocesslog
    2. copy the instance from the popup to the instance of table rspcprocesslog
    3. copy the start date from the popup to the batchdate of table rspcprocesslog
    Press F8 to display the entries of table rspcprocesslog.
    Now open another session and goto transaction se37. Enter RSPC_PROCESS_FINISH as the name of the function module and run the fm in test mode.
    Now copy the entries of table rspcprocesslog to the input parameters of the function module like described as follows:
    1. rspcprocesslog-log_id -> i_logid
    2. rspcprocesslog-type -> i_type
    3. rspcprocesslog-variante -> i_variant
    4. rspcprocesslog-instance -> i_instance
    5. enter 'G' for parameter i_state (sets the status to green).
    Now press F8 to run the fm.
    Now the actual process will be set to green and the following process in the chain will be started and the chain can run to the end.
    Of course you can also set the state of a specific step in the chain to any other possible value like 'R' = ended with errors, 'F' = finished, 'X' = cancelled ....
    Check out the value help on field rspcprocesslog-state in transaction se16 for the possible values.
    Query performance tuning
    General tips
    Using aggregates and compression.
    Using  less and complex cell definitions if possible.
    1. Avoid using too many nav. attr
    2. Avoid RKF and CKF
    3. Many chars in row.
    By using T-codes ST03 or ST03N
    Go to transaction ST03 > switch to expert mode > from left side menu > and there in system load history and distribution for a particual day > check query execution time.
    /people/andreas.vogel/blog/2007/04/08/statistical-records-part-4-how-to-read-st03n-datasets-from-db-in-nw2004
    /people/andreas.vogel/blog/2007/03/16/how-to-read-st03n-datasets-from-db
    Try table rsddstats to get the statistics
    Using cache memoery will decrease the loading time of the report.
    Run reporting agent at night and sending results to email.This will ensure use of OLAP cache. So later report execution will retrieve the result faster from the OLAP cache.
    Also try
    1.  Use different parameters in ST03 to see the two important parameters aggregation ratio and records transferred to F/E to DB selected.
    2. Use the program SAP_INFOCUBE_DESIGNS (Performance of BW infocubes) to see the aggregation ratio for the cube. If the cube does not appear in the list of this report, try to run RSRV checks on the cube and aggregates.
    Go to SE38 > Run the program SAP_INFOCUBE_DESIGNS
    It will shown dimension Vs Fact tables Size in percent.If you mean speed of queries on a cube as performance metric of cube,measure query runtime.
    3. --- sign is the valuation of the aggregate. You can say -3 is the valuation of the aggregate design and usage. ++ means that its compression is good and access is also more (in effect, performance is good). If you check its compression ratio, it must be good. -- means the compression ratio is not so good and access is also not so good (performance is not so good).The more is the positives...more is useful the aggregate and more it satisfies the number of queries. The greater the number of minus signs, the worse the evaluation of the aggregate. The larger the number of plus signs, the better the evaluation of the aggregate.
    if "-----" then it means it just an overhead. Aggregate can potentially be deleted and "+++++" means Aggregate is potentially very useful.
    Refer.
    http://help.sap.com/saphelp_nw70/helpdata/en/b8/23813b310c4a0ee10000000a114084/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/60/f0fb411e255f24e10000000a1550b0/frameset.htm
    4. Run your query in RSRT and run the query in the debug mode. Select "Display Aggregates Found" and "Do not use cache" in the debug mode. This will tell you if it hit any aggregates while running. If it does not show any aggregates, you might want to redesign your aggregates for the query.
    Also your query performance can depend upon criteria and since you have given selection only on one infoprovider...just check if you are selecting huge amount of data in the report
    Check for the query read mode in RSRT.(whether its A,X or H)..advisable read mode is X.
    5. In BI 7 statistics need to be activated for ST03 and BI admin cockpit to work.
    By implementing BW Statistics Business Content - you need to install, feed data and through ready made reports which for analysis.
    http://help.sap.com/saphelp_nw70/helpdata/en/26/4bc0417951d117e10000000a155106/frameset.htm
    /people/vikash.agrawal/blog/2006/04/17/query-performance-150-is-aggregates-the-way-out-for-me
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1955ba90-0201-0010-d3aa-8b2a4ef6bbb2
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ce7fb368-0601-0010-64ba-fadc985a1f94
    http://help.sap.com/saphelp_nw04/helpdata/en/c1/0dbf65e04311d286d6006008b32e84/frameset.htm
    You can go to T-Code DB20 which gives you all the performance related information like
    Partitions
    Databases
    Schemas
    Buffer Pools
    Tablespaces etc
    use tool RSDDK_CHECK_AGGREGATE in se38 to check for the corrupt aggregates
    If aggregates contain incorrect data, you must regenerate them.
    Note 646402 - Programs for checking aggregates (as of BW 3.0B SP15)
    Thanks,
    JituK

  • Reg. SAP Query

    Hi
    I have written an SAP Query for Selection Criteria.
    Example Scenario:
    I want to download list of sales orders in my BAPI.
    The download criteria is maintained as a SAP Query, like, Order Type, Creation Date, Plant etc.
    Can i invoke this query in my report program to fetch the values the user has maintained in the Query Variant?
    Regards
    Meera

    Hi
    I have written an SAP Query for Selection Criteria.
    Example Scenario:
    I want to download list of sales orders in my BAPI.
    The download criteria is maintained as a SAP Query, like, Order Type, Creation Date, Plant etc.
    Can i invoke this query in my report program to fetch the values the user has maintained in the Query Variant?
    Regards
    Meera

  • Reg Meta Data Query

    Hi all!,
    i am using 11g database and i couldnt execute the following query which was pretty strainght forward:
    SELECT CONSTRAINT_NAME FROM USER_CONSTRAINTS WHERE TABLE_NAME = "EMP";
    it says:
    ERROR at line 1:
    ORA-00904: "EMP": invalid identifier
    Regards,
    Sreekanth.J.U.P

    In where clause You use single quotes '...', for example
    select * from dba_objects where owner= 'SYS';
    But in from clause You use double quotes "..." if needed (it's not obligatory, just an example)
    select * from "TEST"."test";
    There are other cases and deeper explanation as well, these are just very basic.

  • Reg :Changing the query

    HI
      My requirement is to make a small change in a query which is available in production with out changing in Quality .When i am trying to change i got the error message like Error :System is not set to changeable - Objects are not changeable.How to change the report with out accessing tcode se06 and scc4 .Please advise.
    Regarsd
    Arun

    Hi Arun Kumar,
    Pls follow below mentioned steps
    Go to T Code Ras1---Transport Connection---Here on right hand top corner u will find Object Changability now click on that---a new window will open and search for below mentioned items and Initially u can see as Not Changable and when you double click on that it will change to Changeable Original.
    BITM     BEx Web Item     Changeable Original
    BTMP     BEx Web Template     Changeable Original
    ELEM     Query Element     Changeable Original
    QVIW     Query View     Changeable Original
    XLWB     Workbook     Changeable Original
    UOMT     Quantity Conversion Type     Changeable Original
    Regards
    Albaik
    Edited by: albaik on Mar 19, 2010 1:41 PM

  • Reg Input Enabled Query

    Gurus,
      I am trying to create an iput ready query. I have included all the characteristics of the Aggregation level in the query and given single selection conditions. I could see only one record after I execute my query, but its not ready for input. Please suggest me where I am deviating.
    Thanks.

    Hi Ram,
    with htese SPS there should be not problems, just to be sure, you could start using all Nav-Attributes also in your Query.
    I suppose you have already checked that your key figures are set to plannable, that the query ist set to plannable.
    Are you showing system messages? Are there any when you open the Template or Workbook?
    Are you maybe locking yourself because you show the data also in the planning modeler?
    Otherwise I suggest you start building you query fresh from scratch.
    First use all characteristics in the lines and collumns, if this works, then start building restricted key figures and filter in the way you really need it.
    filter - reminds me - do you use maybe the same char in both areas on the filter section of the query (I don´t know what it is called in english, I mean the first tab in query builder)? please use and restrict each char only in one of these areas.
    hope this helps.
    Cornelia

Maybe you are looking for