Standardized query

I am curious if there is a standard (like a w3c standard) that defines how to write sql queries in java to interact with the database...anyone know if this exists?
Thanks,
Jesse

Lots of standards, indeed.
I've always thought that SQL 92 was "lowest common
denominator SQL", in that every RDBMS vendor supports
it. True?I agree for the most part. I would place large sums of money betting that each vendor has ignored the 'standard' at some point to make their database 'better than the standard'.
In my experience, more than half the time I end up using a feature of a database which is non-standard. By this, I mean I am using a totally proprietary feature, not just something which doesn't adhere to SQL-92.

Similar Messages

  • How to change the standard query "Create a Master Agreement" by a custom one

    Hello Sourcing CLM experts,
    I would need to replace the standard query displayed when the user tries to create a Master Agreement by a custom query to filter the MA types according to some criteria:
    According to this post: Re: Create security profile for a document template in SAP Sourcing, I've tried to achieve it by doing the following steps:
    Create a new query as a copy of exsiting query FCI-ContractTypes
    Modify query group FCI-ContractTypesBP to include my custom query instead of the standard one to only list the MAType "Standard Master Agreement"
    Following you can see the change done into the query group FCI-ContractTypesBP:
    However, standard query has not been replaced and same set of MA Types are listed.
    Therefore, I would like to ask you:
    Is it possible to do this kind of modifications? If so, which query group need to be modified?
    If it is not possible, is there any other way to achieve that requirement?
    Thanks in advance for your time and support!
    Best regards,
    Isaac

    Hello again experts,
    If this query cannot be modified, is there any option to disable button below? Or at lease, to disable the query group to avoid the listing of MA Types when it is pressed?
    The reason is because we are going to set up the system in the way that only it will be possible to create Master Agreements from Template. However, if user keep on using that button he will be able to create MA from document types.
    Any ideas?
    Thanks again and best regards,
    Isaac

  • 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

  • For Container Freight payment can be downloaded through a standard query.

    for Container Freight payment can be downloaded through a standard query.
    Regards
    Mahesh

    hello, friend.
    are you using LE-Transportation?  if yes, there are some helpful t-codes such as VI11 and VI12.  you may also use t-code SQVI for queries, but you would have to know what tables to look for.
    hope this helped even if a bit.  reward, even a little if yes.
    thanks and regards.
    jty

  • ANSI Standard Query

    HI Anyone can help me to have the correct ANSI Standard Query for the following
    SELECT * FROM AFFILIATED_PERSON ap WHERE EXISTS (
    SELECT 'x' FROM VB_HOUSEHOLD_MEMBERSHIP VBHM, VE_HOUSEHOLD_ORG_AFFIL VEHOAF
    WHERE VEHOAF.family_household_id = vbhm.family_household_id
    AND vehoaf.primary_type= 'ASGNLOCCAR'
    AND vbhm.affiliated_person_id = ap.AFFILIATED_PERSON_ID )
    AND EXISTS (
    SELECT 'x' FROM VB_PERSON_ORG_ASSIGNMENT vbpoas, VB_PERSON_ORG_AFFILIATION vbpoaf
    WHERE vbpoas.person_org_affil_id = vbpoaf.person_org_affil_id
    AND vbpoaf.affiliated_person_id = ap.AFFILIATED_PERSON_ID)
    ORDER BY ap.AFFILIATED_PERSON_ID
    Thanks in advance
    nattu

    hey,
    a. to me it seeems o.k.
    b. trust no one :)
    c. you can use: (from 10g sql reference)
    FLAGGER
    Syntax:
    FLAGGER = { ENTRY | INTERMEDIATE | FULL | OFF }
    The FLAGGER parameter specifies FIPS flagging, which causes an error message to be
    generated when a SQL statement issued is an extension of ANSI SQL92. FLAGGER is a
    session parameter only, not an initialization parameter.
    In Oracle Database, there is currently no difference between entry, intermediate, or full
    level flagging. After flagging is set in a session, a subsequent ALTER SESSION SET
    FLAGGER statement will work, but generates the message, ORA-00097. This allows
    FIPS flagging to be altered without disconnecting the session. OFF turns off flagging.
    e.g.
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    SQL> alter session set flagger=full;
    Session altered.
    SQL> select * from dual where dummy ='X';
    select * from dual where dummy ='X'
    ERROR at line 1:
    ORA-00097: use of Oracle SQL feature not in SQL92 Full Level
    ORA-06550: line 2, column 32:
    PLS-01454: No operator may be used with values of data type CHAR
    SQL> alter session set flagger=off;
    ERROR:
    ORA-00097: use of Oracle SQL feature not in SQL92 Full Level
    Session altered.
    SQL> select * from dual where dummy ='X';
    D
    X
    SQL>
    Amiel Davis
    Message was edited by:
    Amiel D.

  • "Expiring Agreements" Standard Query Issue

    Hi All,
    I m getting an issue regarding "Expiring Agreements" Standard Query.
    It should show all the master agreements and contracts.But if I have attached a subagreement to the masteragreement, then I m getting the following issue:
    1. Master agreement link is deactivated and subagreement link is activated.
    2. If subagreement link is not attached, then Master Agreement link is activated.
    Can any one help me in solving this issue.
    Any help will be appreciated.
    Thanks & Regards,
    Vignesh

    Hi Vignesh,
    The behavior you explained is the standard behavior for all out of the box MA related queries. If you would like to alter the behavior of the standard query, create a custom query by duplicating the standard one and modify the SQL.
    Regards,
    Vikram

  • BEX Standard Query

    Hi
    Initially when i transport the query for the first time from DEV, I need to create a BEX standard request. I created a bex standard request and transported. Now i want to transport few more queries.
    So now i need to create an other request in CTO. Here my doubt is do i need to assign the request to the PACKAGE or just create it.
    Regards
    Annie

    Hi,
    <i>As u said, when we transport the queries for the first time, we need not create a standard BeX request with truck icon.
    Did i get right?</i>
    Right, This is most used way.
    <i>And also you mean that when we make some changes to the queries that are already transported then we need to have BEX Standarad request. Am i right?</i>
    Right.
    <i>Now what i have done is..Collect all the queries in the in transoprt connection, clicked on BEX request (truck icon) and created a request. Now after collecting all the queries, i clicked on transoprt icon and saveed all the queries in the request.
    Is it the right way or will i get any problems later.</i>
    If those queries are getting tranport first time, have you checked whether the Query elements are collected in that request after saving them in in the request.
    Here generally we click on truck button and not  truck button with <i>BEx</i> label.
    With rgds,
    Anil Kumar Sharma. P

  • Standard Query Issue.

    Hi All,
    In Query Definition, for a query "Browse Product Category Tree view", when im trying to duplicate the query and save it then its throwing an error as :
    "The Java execution type is not allowed in a custom query."
    But we have a requirement to edit this query and on execution show the results directly instead of clicking on show button as the original query shows.
    in help.sap documentation they say "Query Executor Class" field in query is available for standard queries only.
    Can anyone throw some light on how to proceed for the requirement.
    Any help would be appreciated.!
    Thanks!

    Hi Vikram,
    We have a similar requirement now, where the query "Scorecard Report" is a java query, but we want to make changes in this query. We want to add new fields and remove few existing fields from it.
    Can u pls help us with this?.
    Thanks,
    Shikha

  • MAP activate in the BEX/Standard query

    Hai,
       I want to make map in BEx report of one my query(based on activation of standard business content).
      As per rule I have one info object(0SOLD_TO) in QUERY for map.But map is not coming in my report. The geographical type is  dynamic geo-characteristics with values attribute.
    This is first time I am making map.
    I.e I want to make map for any one query.
    Any tips??? Thanks in advance.
    With Regards,
    Jaheer,Yanbu,Saudi arabia.

    Hi,
    The BEx Map is part of the Business Explorer. It is used for reporting on geo-relevant data.Check the link in below there you can find what you need exactly.
    BEx Map
    Regards,

  • Standard Query (Sq01) for Leave Details

    Hi Experts,
    I have created a query using SQ01 for Leave Details which includes all infotypes required viz. 2001, 2002 etc.
    When i use this query for any employee using any subtype/absence type, it works fine, but when i use it for a particular type i.e. On Duty, it do not brings any result although it has the data in the respected infotype. This absence type has been newly created by my functional consultant.
    Kindly let me know if there are any possible solutions for this. If yes, plz let me know the steps how to correct it.
    Prateek

    resolved.

  • Standard Query Variables not available in Q

    Hi All,
    We are not planning to transport the queries from DEV but create them in directly in Q and P. But I am unable to see any of the standard variables in Q or P. Do we need to transport the variables from DEV(even the standard ones)? If so, can we transport all the available standard variables into Q as a set or do I need to collect all of them in the transport connection and follow thw same process which we use to transport the normal objects?
    Best Rgds,
    Nene.

    Nene,
    If you have authorization you can do that in P or Q. Well, asking for a request can be suppressed by basis team. But the best practice to activate them in dev and transport them to QA and prod. And still if the prod and QA systems are opened and client has no problem you can do that in respective systems. Basis people can make it not to ask for transport request and can make it save by default as a local object.
    Activating and transporting them to target systems will no lead to inconsistencies in future transports related to these objects. Now its up to you to decide the mode....

  • Non-Standard query

    Hi All,
    I may be a little too late to post this issue.
    I want to follow a non standrad procedure of carrying Settlement a Process Order to Cost Center instead of Material.
    This is needed due to business practice with client.
    However i wanted to know the repercussions and areas of worry where i may face errors.
    Can anyone help me in getting this conceptually clear.
    Thanks in advance.
    Piyush

    Hi Ramesh,
    Thanks a lot for the information.
    In this regard i would like to further say that in our current project we do not have the feature of WIP. In PP only BoM is being maintained without any routing etc.
    As regards capturing of Raw Material Cost, i find the following JE flowing into FI from PP :
    Raw Material Consumption Dr.      (P/L item)
    Raw Material Stock           Cr.       (B/S item)
    FG Stock                         Dr.       (B/S item)
    Inc/Dec in FG Stock         Cr.        (P/L item)
    I tried to settle the Process Order to a Cost Center (instead of standard Material by changing the Settlement rule manually)
    The value for the 2 P/L items(for which cost element is maintained) is flowing into Cost Center from where i can pick up only the Raw Material Consumption cost element for my reporting.
    All other expenses are being captured at Cost Center Level.
    However the area of concern that i am facing is that i am unable to make settlement of Process Order in periods other than period 1.
    Maybe you can throw some more light on this aspect.
    Thanks again...and not to forget to mention the reward points will be coming soon coz ur reply has been very helpful.
    Piyush

  • Standard Query for Top 10 queries and Users

    Hi Experts,
    Is there any query which gives the details like ,
    1. Top 10 queries executed in a month
    2. Top 10 users ( By no of queries executed )
    Regards,
    Bhadri M.

    1. Top 10 queries executed in a month
    Use Query 0TCT_MCA1_Q0142.
    In this report you will have to filter variable BI Object to Queries and also it gives stats for the last 30 days, you have have to remove the SAP User exit variable in case you do not want to use the 30 days option. And then you will have to define Condition for Top 10.
    2. Top 10 users ( By no of queries executed )
    Use Query 0TCT_MCA1_Q0141.
    Similarly you have to modify this query.
    -Neelesh

  • Retrieve a corrupted standard SAP query (SQ01)

    Hi experts,
    We have an standard query that is giving a dump because an user has modified and transported it to consolidation and production systems.
    I don't know if there's a way to compare versions and retrieve versions.  Right now we have accessed to client 000 and we are analysing if it's feasible to retrieve the  000 version. The query is defined as GLOBAL (client independent) and it's assigned to an standard package /SAPQUERY/FIAQ.
    I'm on the right way or maybe there's another solution that we're not taking into account?
    More ideas would be appreciated.
    Ismael
    Message was edited by:
            Ismael Mateo

    Thanks for the answer Barry, this is clear.
    But the problem is that all the systems are overwritten with the modified version (Development, Consolidation and Production) and we don't have the original version anywhere, therefore we can't export/import it.
    As the query is a global query (not client dependent), a modification in the query also affects to the other clients.  In this case this  modification has been transported to all systems as well...
    To correct that situation we want to identify the changes done by the user or retrieve the old version.
    One solution would be to create one transport request from an external SAP system, with the same SAP version(ECC 5.0), and transport it to our system.
    Before trying with this solution we want to know if there's any SAP standard tool to retrieve/compare query versions.

  • Re: Standard BI Query

    Guys,
    I have activated the standard query time-to-fill, i am getting an error
    Value '-1' is invalid for property 'Ref. Characteristic' of element 'Time-to-Fill (Days)'
    I checked the exception aggregation, Under Exception aggregation points to use standard aggregation & ref. characteristics to -1. Now if i have to change the ref. characteristics what value i have to choose.
    this is the formula used for CKF 'Time-to-Fill (Days)'
    Candidacy Status == 3 * candidacy start date - requisition creation date.
    Regards,
    Anand

    technical Name: 0ERC_ IS02_Q0001
    Edited by: araj123 on Sep 17, 2010 3:55 AM
    Have anybody worked on SAP BI E-recruiting standard contents?
    Is there any solution for the above issue?
    Edited by: araj123 on Sep 20, 2010 4:30 PM
    Edited by: araj123 on Sep 20, 2010 4:31 PM

Maybe you are looking for