Sql statement substituion - any special rules for formatting the query?

Hey,
I was wondering - are there any special rules for formatting the query that is to be substituted?
I am asking, as somehow I am unable to make the DSP substitute my query. I took the basesql from the server console (to make sure that I have the correct version), configured a query substitution, and well, nothing happens.
I've tried to substitute it with a modified version of the original query (where NVL(,0) is changed to NVL(,-9999)), then also with select * from dual (which I hope would generate some error), but DSP is ignoring everything...
The query is rather big (400 lines), so maybe I need to format it somehow? I've noticed that in the docs (http://edocs.bea.com/aldsp/docs25/admin/server.html#wp1049919) that the query used in the example has all leading spaces removed. I've tried that, but DSP is still not doing any substitution...
Any suggestions welcomed...
Thanks,
Leszek

Michael,
I am doing everything as in edocs, retrieving from logs the basesql (so with place holders). I've removed all new lines (so the query is now in a single line) and all excessive blanks (so all double/more blanks replaced with a single blank). Still the DSP is like ignoring the substitution. I've tried to do it even with a simple query, like:
SELECT t4."PRODUCT_ID" AS c1, t4."PRODUCT_NAME" AS c2 FROM {DB}.{SELECTION} t1 JOIN {DB}.{CUSTOMER_FACT} t2 ON (t1."VAL" = t2."CUSTOMER_ID") JOIN {DB}.{CUSTOMER} t3 ON (t3."CUSTOMER_ID" = t2."CUSTOMER_ID") JOIN {DB}.{PRODUCT} t4 ON (t4."PRODUCT_ID" = t3."PRODUCT_ID") WHERE ((? = t1."SESSN_ID") AND (t1."NAME" = 'CUSTOMER_ID') AND (t3."DELET_DATE" IS NULL) AND (t3."PRODUCT_TYPE" = 11))
am I missing something here? do I need to remove/add something , to make it work?
I've tried removing blanks around = signs (which from the DSP pov results in a different query), sitll with no results.
Edited by xnts at 06/24/2008 7:37 AM

Similar Messages

  • How to install plugin and exta filter in photoshop cs ? and any special filter for special effects ?

    how to install plugin and exta filter in photoshop cs ? and any special filter for special effects ?
    kindly recommend me any best one and tel me step by step how i will add more plugins n filters

    A Plug_in normally come with an installer or install instructions. Check the documentation for the plug-in you trying to install.  It sounds like you don't know what plug-ins you want to install.  In that case you don't need to install any.  At some point you may read about a plug-in and what it can do and feel you have a need for it.  Then you will have a reason to install a plug-in that is not installed by default.  There may also be a cost involved most worthwhile plug-ins are not free.
    Adobe Optional Plug_ins downloads are Plugins Adobe want to remove from Photoshop  and no longer install by default. Also at some point in time these will no longer install into the current Photoshop for Adobe will remove feature or interfaces the use. For example the CS5 optional plugins will install in Windows CS6 perpetual version 13.0.1.3 but not in Subscription version 13.1.2 or perpetual Mac version 13.0.6 fot its 64bit only and the Mac CS5 optional plug-in for Picture package is only a 32bit plug-in.
    You will need to keep and maintain old versions of Photoshop if Adobe remove features you use in new versions of Photoshop.

  • Garnishment - Special Rule for Non-Exempt Amount

    There is calculation scheme for each special rule for non-exempt amount. For example federal rule for support is 04.  The calculation scheme for this rule has 2 lines with operation multiplication and subtraction; and operand F1 and DN.  Can someone explain to me what each line means and the cumulative effect of both the lines?
    Thanks for your help!!
    BBC

    Hi,
    Line 1 = F1 * DN i.e. Field 1 from infotype (IT0195 field 1 for fed exempt as per table T5UGA config) is multiplied by Disposable Net (wage type /G00) and stores result in R1 (intermediate result field)
    Line 2 = DN - R1 i.e. subtract intermediate result stored from line 1 in R1 field from Disposable Net (/G00 wage type) to output result as minimum limit defined for nonexempt amount.
    You can verify same in UGARN CALC (Garnishment Calculations section) in schema.
    Thanks,
    Ameet

  • SSIS The parameterized sql statement yields metadata which does not match the main SQL statement

    Hi all,
    I'm getting the above error when trying to execute a custom lookup.  What I'm trying to do is lookup the minimum promotional price between date ranges.  The SQL executes fine in SSMS
    SELECT refTable.PRICE
    FROM ( SELECT MIN(PRICE) AS PRICE ,
    NAME ,
    ITEMRELATION ,
    FROMDATE ,
    TODATE
    FROM [dbo].[AllCustPrices]
    GROUP BY NAME ,
    ITEMRELATION ,
    FROMDATE ,
    TODATE
    ) [refTable]
    WHERE [refTable].[NAME] = ?
    AND [refTable].[ITEMRELATION] = ?
    AND ? BETWEEN [refTable].[FROMDATE]
    AND [refTable].[TODATE]
    but errors in SSIS?

    Apologies, totally forgot i posted a question on here.  I still haven't resolved this.  full error text is TITLE: Package Validation Error
    Package Validation Error
    ADDITIONAL INFORMATION:
    Error at Data Flow Task [Lookup MIN Price [440]]: The parameterized SQL statement yields metadata which does not match the main SQL statement.
    Error at Data Flow Task [SSIS.Pipeline]: "Lookup MIN Price" failed validation and returned validation status "VS_ISBROKEN".
    Error at Data Flow Task [SSIS.Pipeline]: One or more component failed validation.
    Error at Data Flow Task: There were errors during task validation.
     (Microsoft.DataTransformationServices.VsIntegration)
    BUTTONS:
    OK
    If I take off the MIN function and just put * SSIS is quite happy, it does not like MIN for some reason?
    I'm really stumped with this... checked metadata for third parameter which is W/C Date DT_DBTIMESTAMP which is same as FROMDATE, TODATE where i'm using BETWEEN...

  • I would like to ask whether anyone knows of any true explanation for why the iPhone 5 starts at $199 in the US and £529 in the UK? That is more than a £400 discrepancy...

    I would like to ask whether anyone knows of any true explanation for why the iPhone 5 starts at $199 in the US and £529 in the UK? That is more than a £400 discrepancy...
    iPhones are duty free and even with a $50 shipping fee it would only come to £185.75 including VAT at the current exchange rate.

    How much a month is the standard 24month contract with AT&T or one of the other American providers that makes the handset cost $199?
    Here's the cheapest plans available from the big three:
    The plans start there and can run up to $230/mo (for AT&T).

  • After I edited the SQL in a dataset, I can't use the query builder in any datasets that I create.

    Is there a way to reset BI Publisher Enterprise 11 so that I can use the query builder again instead of having to write out all of the SQL? I know that I can't use the query builder for the dataset that I edited the sql in but I would like to use the query builder for new datasets.
    Thanks,

    Hi J_Constantine,
    Welcome to the Apple Support Communities!
    I understand that your iPad is restarting and not responding sporadically. You have already attempted some great troubleshooting steps and I think you are on the right track. Holding the home button is one step that you take while placing your device in recovery mode to restore. This is the method that I would suggest to restore. For complete information on how to place your device into recovery mode, please reference the attached article. 
    If you can't update or restore your iPhone, iPad, or iPod touch - Apple Support
    Best regards,
    Joe

  • If we dont want to use sleep/wakeup button for dissconnect the call so there is any other option for dissconnect the call without using sleep/wakeup button in ios 8.1.3. kindly suggest

    if we dont want to use sleep/wakeup button for dissconnect the call so there is any other option for dissconnect the call without using sleep/wakeup button in ios 8.1.3 . kindly suggest..!

    Hello kumar kalptaru, 
    Thank you for participating in the Apple Support Communities. 
    It sounds like you're wondering how to hang up a call besides using the Sleep/Wake button. 
    Other than this, you can tap the red hang up button on the Phone app. See the iPhone User Guide for more help:
    While on a call - iPhone
    End a call. Tap  or press the Sleep/Wake button.
    Best Regards,
    Jeremy 

  • Is possible to config an subscrat rule for all the signatures enables in IPS?

    Hi.
    is possible to config an subscrat rule for all the signatures enables in IPS?
    Thnks
    Sent from Cisco Technical Support iPad App

    Yes, In the event action filter configuration configure the signature range , victim IP address and the action to subtract.

  • Kontext rule for formatting only the first child section in a chapter

    Hi all, I have run into a DITA problem. Each chapter of the document, i.e. top-level topic, contains a miniature toc of the nested sections. Therefore the first child topic's title should receive a page break.
    I tried this context rule for the title element, below you find the screenshot which I have tried to translate because the EDD is in German. Even though I define that the context should be the first parent topic only, the result is that every second-level topic now has a page break. Any ideas?
    8. Count ancestors: topic
        concept
        task
        reference
        If level is: 2
          8.1 If context is: (topic{first} | concept{first} | task{first} | reference{first})
                ..then set page break.
    Robert

    First, regardless of the UI language, you can import element definitions from an EDD using any of the language templates. Second, you can change the template that FM uses when it creates new EDDs (from the commands that in English are labeled StructureTools > New EDD and StructureTools > Export Element Catalog as EDD). Simply copy the desired template to $FMHOME\fminit\fmstruct\elemcat where $FMHOME is the directory in which FrameMaker is installed. I recommend backing up the original first.
    You can create an English EDD template from any English EDD simply by deleting all its content.
    By the way, you can modify the EDD template by changing its formatting rules, master pages, and so forth. I haven't yet done so for FM 11, but see http://forums.adobe.com/thread/909395 for information on various changes I've made to the English EDD templates for previous versions.
             --Lynne

  • Is there any Specific rule for using "IS" and "AS" keyword?

    Hi,
    i am confused about the use of these two keywords "IS" and "AS".It seems to me they are used randomly anywhere in procedure,package or triggers etc..
    Is there any rule for there usages , or only way is to remember the actual syntax whenever they are used ?

    They are generally interchangeable, so you can use whichever you choose.
    In the English language we say that "some object IS" and "do an action AS" so, for example...
    in a package if we define a type it reads better as:
    TYPE mytype IS TABLE OF NUMBER;because we are saying that this type called mytype IS a table of numbers.
    but if we were to create the type on the database we would use e.g.
    CREATE OR REPLACE TYPE mytype AS RECORD (x number, y number);because we are saying that we are creating (action) a type called mytype AS a record.
    Just a slight difference in grammatical meaning, but Oracle isn't bothered if you choose to use the other one in most cases.

  • Any special reason for this behavior...?

    Is there any special reason why the Process Black shows in ink separation list, when the only black i have is an an object with applied shadow in a hidden and unprintable layer and no other object has black as fill or stroke in any of the visible layers? Thanks for any tips ...

    The separations preview is just what it implies - an overview of the inks used in the doc, based on the assumption that the document is going to be printed at some point using a standard process. It doesn't matter, whether the objects are invisible, non-printable or what else. AI has no concept of these things. And you can't print anything without any kind of ink, can you? I really don't see why you think it's a problem.
    Indeed?
    (When in doubt, pound the pulpit.)
    The document is empty except for four squares.
    The blue is process global.
    The orange is process non-global.
    The green is spot.
    The black is 100%K.
    The black is on its own layer.
    The green is on its own layer.
    The blue and orange are on the same layer.
    Screenshots are from the Output tab of the Print dialog. Mode is Separations. Printer is Adobe PDF.
    All Layer visibility on:
    Layer containing the green spot color visibility off. Note that the green sep will not print:
    Layers containing the green and the black visibility off:
    Layer containing the black is off.
    The only difference here is that a 40% K drop shadow has been applied to the black path:
    The only difference here is that the drop shadow has been removed from the black path:
    Clearly, AI does have some "concept about these things." But AI's "concept" about this--like so many other things--is rather illogical.
    JET

  • ARQ:  Does LDAP User Search action require any special authorization for requester???

    Hi All,
    I was wondering if requester need to be given any special authorization to search users in LDAP?
    Because, I have noticed that a requester can not search users from LDAP. However, another user who is a super user in GRC system and has SAP_ALL profile assigned, can search users from LDAP easily!
    I have noticed only this change between these two users and not sure what authorizations should be granted to requester to search users from LDAP. I have tried to search relevant auth. object in his role "SAP_GRAC_ACCESS_REQUESTER" but could not find. I also check security guide for this but did not get any details.
    Can anyone advise?
    Regards,
    Faisal

    Alessandro,
    I switched on trace using ST01 for one of the requesters and viewed its details later. I found RC=4 or 12 for some of the auth. objects.
    For example:
    I opened of of the records and could see above details. I am unable to interpret it further. Can you please assist in this?
    Regards,
    Faisal

  • Need SQL statement to generate a sequence number in the output rows

    Hi folks. I need to create an SQL statement that generates a sequence number column in the output rows (records) such that the first returned row has this column set to 1, second returned row has the column set to 2, etc.
    For example, consider the query:
    SELECT income from employees WHERE income != 20000 ORDER BY income;
    If employees.income contains 60,000, 20,000, 35,000, and 19,000 for respective rows, the output would be this:
    19,000
    35,000
    60,000
    I would like the SQL to also return a sequence number that is computed across the returned rows, resulting in two output columns:
    1 19,000
    2 35,000
    3 60,000
    Is there a simple SQL function that generates the sequence number, in order, and only for the returned rows? Or is there another way?
    I'm stumped. Any help is appreciated! Thanks!
    - Jack Cochrane

    Hi,
    Welcome to the forum!
    Use ROWNUM, like (example):
    Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0
    Connected as hr
    SQL> select rownum, first_name from (select e.first_name from employees e where e.first_name like 'J%' order by e.first_name);
        ROWNUM FIRST_NAME
             1 Jack
             2 James
             3 James
             4 Janette
             5 Jason
             6 Jean
             7 Jennifer
             8 Jennifer
             9 John
            10 John
            11 John
            12 Jonathon
            13 Jose Manuel
            14 Joshua
            15 Julia
            16 Julia
    16 rows selected
    SQL> But rememeber if you want to be sure of unique numbers in certain field is better to use sequences and use seq_name.nextval each time you need.
    Regards,

  • SQL statement that includes LEFT & RIGHT JOIN in the same statement??? Help

    Hi,
    How an I write an SQL statement with a GROUP BY that will both (a) include the NULL value from the left hand table, but also (b) include ALL columns from the right hand table. It's like I need a LEFT JOIN and a RIGHT JOIN in the query at the same time.
    Here's an example of the 2 tables I have and the result I'm after. As you can see I want the NULL's from Expenses Table summed, as well as include all categories from the right hand table (i.e. even if there are no expenses against them)
    Table = Expenses
    Amount Category
    $10 1
    $20 2
    $30 1
    $40 NULL {i.e. not yet categorised}
    Table = Categories
    ID Title
    1 Food
    2 Entertainment
    3 Travel
    4 Personal
    REQUIRED RESULT
    Category Total
    Food 40
    Entertainment 20
    Travel 0
    Personal 0
    NULL 40
    Thanks

    SQL> create table expenses (amount,category)
      2  as
      3  select 10, 1 from dual union all
      4  select 20, 2 from dual union all
      5  select 30, 1 from dual union all
      6  select 40, null from dual
      7  /
    Table created.
    SQL> create table categories (id,title)
      2  as
      3  select 1, 'Food' from dual union all
      4  select 2, 'Entertainment' from dual union all
      5  select 3, 'Travel' from dual union all
      6  select 4, 'Personal' from dual
      7  /
    Table created.
    SQL> select c.title category
      2       , nvl(sum(e.amount),0) total
      3    from expenses e
      4         full outer join categories c on (e.category = c.id)
      5   group by c.id
      6       , c.title
      7   order by c.id
      8  /
    CATEGORY                                       TOTAL
    Food                                              40
    Entertainment                                     20
    Travel                                             0
    Personal                                           0
                                                      40
    5 rows selected.Regards,
    Rob.

  • Is there any database table for storing the weeks of a physical year?

    Hi all,
    Is there any standard table for displaying weeks in a year
    thanks in advance.

    Not sure about tables
    See the FM : TSTR_PERIODS_AMERICAN_WEEKS,TSTR_PERIODS_WEEKS
    Thanks
    Seshu

Maybe you are looking for

  • How do you make in "urchin" in illustrator

    Hi everyone, So, I'm new to these boards; if there is a problem in how I ask this, please let me know I am making figures for research I am doing that involves sticking molecules on nanoparticles. In illustrator, what I've done so far was making a se

  • Help, Pivot SQL

    I am doing a report for a book store. We have data like: STORE_ID SUBJECT     SUB_DETAIL     NUMBERS 1001     CD     CD_TITLE1     2 1001     CD     CD_TITLE2     4 1001     CD     CD_TITLE3     1 1001     DVD     DVD_TITLE1     7 1001     DVD     DV

  • Steps to create a catalog item requisitions from iProcurement

    Hi All, Can any one give me what are the steps that I have do create a catalog item requisitions from iProcurement. Please I need your help and suggestions. Thank you, Pramood

  • PA-PT integration.  Booking a person on a course on a weekend.

    Hi, We have employee that have to go on courses or seminars which start on the Sunday and this is causing problems in the booking of this event.  SAP sees it as a day off and thus gives an ERROR message.  I have to change the message from an error to

  • Canon iRC3080-J1 – won't print

    We have a Canon iRC3080-J1 printer networked andused by about 20 users. It's not shared through a server but working as a "standalone" printer. This far it has been workin ok, but a a couple of weeks ago it just stopped working from my workstation. N