Giving error in update query

This is my update query in oracle but it is giving error:
Update (select NM.Nominal_Amount,NM.Number_of_Units,NM.Current_Spot,NM.Published_Spot,NM.Strike_Price
from note_master NM ,
(     select NORM.Note_Master_ID, NORM.Asset, NORM.Currency , 50 as Spot_Price_Calc,      NVL(TOADD.NA,0) As NA, NVL(TOADD.NS,0)
As NS, NVL(TOADD.NA_P,0) As NA_P, NVL(TOADD.NS_P,0) As NS_P, NVL(TOADD.SA,0) As SA,      (50 * (NORM.Strike_Price_Per/100)) as
rike_Price_Calc,      (Case When UPPER(NORM.Misc2) = 'Q' THEN (NORM.No_Of_Shares * 50 * (NORM.Strike_Price_Per/100)) Else
NORM.Nominal_Amount End )as Nominal_Amount_Calc,     (Case When UPPER(NORM.Misc2) ='N' THEN (NORM.Nominal_Amount /( 50 * (NORM.Strike_Price_Per/100)))
Else NORM.No_Of_Shares End )as NO_Of_Shares_Calc,     (Case When UPPER(NORM.Misc2) = 'Q' THEN (NORM.No_Of_Shares * 50 * (NORM.Strike_Price_Per/100) * NORM.Issue_Price )/100
Else (NORM.Nominal_Amount * NORM.Issue_Price )/100 End )as Settlement_Amt_Calc     from      (          select Note_Master_Id, MIN(Spot_Price) as Spot_Price, Min(Strike_Price) as
Strike_Price, SUM(Nominal_Amount) as Nominal_Amount, SUM(No_Of_Shares) as No_Of_Shares , MIN(Issue_Price) as Issue_Price, MIN(Asset) as Asset, MIN(Currency) as Currency,
MIN(Strike_Price_Per) as Strike_Price_Per, MIN(Misc2) as Misc2      from      (          Select Note_Master_Id, Spot_Price, Strike_Price, Nominal_Amount, No_Of_Shares, Issue_Price, Asset,
Currency , Strike_Price_Per,Misc2      from Sample_ADF_FinIQ_Common.Note_Order_RM      Where Order_Status_Flag = 'YYYYYYNNNNNNNNNN'      And RO_ID = 'R000000002'     ) NORM      Group by Note_Master_Id     ) NORM
Left Outer JOIN Sample_ADF_FinIQ_Common.RATESSPOTBIDASK RSBA     On RSBA.PairCode = (NORM.Asset )          Left Outer JOIN      (     select Note_Master_ID,sum(Nominal_Amount)
as NA, sum(No_Of_Shares) as NS, sum(NominalAmt_Pending) as NA_P, sum(NoOfShares_Pending) as NS_P,sum(Settlement_Amt) as SA      from Note_Order_RM     
Where RO_ID <> 'R000000002'     group by Note_Master_ID ) TOADD     On TOADD.Note_Master_ID = NORM.Note_Master_ID ) RESULT1 where NM.Note_Master_ID = RESULT1.Note_Master_ID )
set      Price_Updated_YN = 'Y'           ,
Nominal_Amount = RESULT1.NA + RESULT1.Nominal_Amount_Calc          , Number_Of_Units = RESULT1.NS + RESULT1.NO_Of_Shares_Calc          ,
Current_Spot = RESULT1.Spot_Price_Calc           , Published_Spot = RESULT1.Spot_Price_Calc           , Strike_Price = RESULT1.Strike_Price_Calc
where NM.Note_Master_ID = RESULT1.Note_Master_ID;
error :
rror at Command Line:17 Column:105
Error report:
SQL Error: ORA-00904: "RESULT1"."STRIKE_PRICE_CALC": invalid identifier
00904. 00000 - "%s: invalid identifier"
can anybody help.
Thanks

Still one more typo problem exists in you sql stament , equal to(=) operator is missing in your original statement look below
original
Where RO_ID 'R000000002'     group by Note_Master_ID ) TOADD     On TOADD.Note_Master_ID = NORM.Note_Master_ID ) RESULT1 where NM.Note_Master_ID = RESULT1.Note_Master_ID )
set Price_Updated_YN = 'Y'
modified
Where RO_ID='R000000002'     group by Note_Master_ID ) TOADD     On TOADD.Note_Master_ID = NORM.Note_Master_ID ) RESULT1 where NM.Note_Master_ID = RESULT1.Note_Master_ID )
set Price_Updated_YN = 'Y' Ok, once try with this code, some syntax prob i modified it.
Update (select NM.Nominal_Amount,NM.Number_of_Units,NM.Current_Spot,NM.Published_Spot,NM.Strike_Price
from note_master NM ,
(     select NORM.Note_Master_ID, NORM.Asset, NORM.Currency , 50 as Spot_Price_Calc, NVL(TOADD.NA,0) As NA, NVL(TOADD.NS,0)
As NS, NVL(TOADD.NA_P,0) As NA_P, NVL(TOADD.NS_P,0) As NS_P, NVL(TOADD.SA,0) As SA, (50 * (NORM.Strike_Price_Per/100)) as
Strike_Price_Calc, (Case When UPPER(NORM.Misc2) = 'Q' THEN (NORM.No_Of_Shares * 50 * (NORM.Strike_Price_Per/100)) Else
NORM.Nominal_Amount End )as Nominal_Amount_Calc,     (Case When UPPER(NORM.Misc2) ='N' THEN (NORM.Nominal_Amount /( 50 * (NORM.Strike_Price_Per/100)))
Else NORM.No_Of_Shares End )as NO_Of_Shares_Calc,     (Case When UPPER(NORM.Misc2) = 'Q' THEN (NORM.No_Of_Shares * 50 * (NORM.Strike_Price_Per/100) * NORM.Issue_Price )/100
Else (NORM.Nominal_Amount * NORM.Issue_Price )/100 End )as Settlement_Amt_Calc     from (      select Note_Master_Id, MIN(Spot_Price) as Spot_Price, Min(Strike_Price) as
Strike_Price, SUM(Nominal_Amount) as Nominal_Amount, SUM(No_Of_Shares) as No_Of_Shares , MIN(Issue_Price) as Issue_Price, MIN(Asset) as Asset, MIN(Currency) as Currency,
MIN(Strike_Price_Per) as Strike_Price_Per, MIN(Misc2) as Misc2 from (      Select Note_Master_Id, Spot_Price, Strike_Price, Nominal_Amount, No_Of_Shares, Issue_Price, Asset,
Currency , Strike_Price_Per,Misc2 from Sample_ADF_FinIQ_Common.Note_Order_RM Where Order_Status_Flag = 'YYYYYYNNNNNNNNNN' And RO_ID = 'R000000002'     ) NORM Group by Note_Master_Id     ) NORM
Left Outer JOIN Sample_ADF_FinIQ_Common.RATESSPOTBIDASK RSBA     On RSBA.PairCode = (NORM.Asset )      Left Outer JOIN (     select Note_Master_ID,sum(Nominal_Amount)
as NA, sum(No_Of_Shares) as NS, sum(NominalAmt_Pending) as NA_P, sum(NoOfShares_Pending) as NS_P,sum(Settlement_Amt) as SA from Note_Order_RM     
Where RO_ID 'R000000002'     group by Note_Master_ID ) TOADD     On TOADD.Note_Master_ID = NORM.Note_Master_ID ) RESULT1 where NM.Note_Master_ID = RESULT1.Note_Master_ID )
set Price_Updated_YN = 'Y' ,
Nominal_Amount = RESULT1.NA + RESULT1.Nominal_Amount_Calc      , Number_Of_Units = RESULT1.NS + RESULT1.NO_Of_Shares_Calc      ,
Current_Spot = RESULT1.Spot_Price_Calc , Published_Spot = RESULT1.Spot_Price_Calc , Strike_Price = RESULT1.Strike_Price_Calc
where NM.Note_Master_ID = RESULT1.Note_Master_ID;Edited by: darkStargate on Dec 8, 2011 7:42 PM

Similar Messages

  • Error in update query with join

    hi all,
    im using oracle 10g in windows.
    im not able to use this update query having join......
    UPDATE
    b
    SET
    b.is_stud = 1
    FROM
    boy b
    INNER JOIN
    relationship r
    ON
    b.id = r.boy_id;
    thanks a lot..................

    887268 wrote:
    hi, thanks,,,,,,,,,
    create table emp ( id,name,date,empno);
    create table emp_status(slno,ename,empno);
    i need to update "emp.name" in "emp" table from "emp_status.ename"
    where emp.empno=emp_status.empno;
    i.e) for all matched "empno" from both table, update "emp.name" from "emp_status.ename"Whats the relationship between emp and emp_status tables? If there exists one to one mapping for empno in both tables, then try
    update emp e
    set    e.name = (select es.ename
                     from   emp_status es
                     where  e.empno = es.empno)

  • Output giving error message update was terminated

    Dear All,
    Question: Do we need to maintian the Logical destination(Printer name) for the output type which is created with Medium 5?
    I have created the output type with transmission medium 5 communication strategy is maintained as CS01,its determining correctly in the docuemnt.
    Now the issue
    IF I open the sale order/Invoice and select the ouput (Which was determined with medium 5) click on communication method and I have not maintained any communication menthod(Printer name) because transmission medium is 5after saving and I am trying open the transaction SOST I am geeting popup with update termination error
    Note: if I maintain printer name in communication method i am not getting any error message.
    My question for transmission medium which is having communication stratege CS01 no need to mtaintain printer name, why I am getting this error.
    Please check and help to solve this issue.
    Thanks & Regards,
    MK.

    Dear Eduardo,
    In SM13 I can see the error message TD 356(Maintain an output device in your user master record) then issue if we don't maintaint the logical destination (printer name), bu if give LOCL its not giving any error.
    My question if the output type created with transmission medium 5 why we should givem the printer name?
    Thanks & Regards,
    MK

  • Error in update query

    Hi everybody,
    I'm using oracle 8i and get the error as
    "ORA:00933 SQL Command not properly ended"
    When I try to execute the following query:
    UPDATE serv_req_gateway_event
    SET serv_req_gateway_event.GATEWAY_EVENT_STATUS_CD = 'S'
    FROM TASK
    WHERE serv_req_gateway_event.task_number = TASK.task_number
    AND serv_req_gateway_event.DOCUMENT_NUMBER = TASK.DOCUMENT_NUMBER
    AND TASK.TASK_STATUS IN ('Ready', 'Pending')
    AND TASK.document_number IN (145977424,145974024)
    Please help me out ...

    The syntax you have posted is unlike any Oracle update syntax.
    Look at the examples in Morgan's Library at www.psoug.org or the docs at http://tahiti.oracle.com.
    What does the TASK table have to do with the table you are updating? You can not have a FROM without a SELECT.

  • Syntax error in 'UPDATE' query  ???

    hi..
    i know there is something wrong with this query..but not able to find it out.
    i am using session bean in my project..in one of the method of the bean class, i am updating 'Acc_holder' table.
    below is the code
    public String insDeposit(String vuserid, String vaccountno, int amount, int chqno)
      ...   //connection code
      Statement stmt=null;
      query="UPDATE Acc_holder SET balance=balance" + vamount + "WHERE userid=' "+vuserid+" ' ";
    }In above query, Acc_holder Table has balance(int), vamount(int), userid(varchar) fields.
    when i run, error msg that i get is "java.rmi.RemoteException...java.sql.SQLException:...Incorrect syntax near 'userid'.
    please suggest how this query should be formatted

    Use a prepared statement.
    And after you start doing that then put a space in front of the 'where'

  • Error in update query involving different databases

    Hi everybody,
    I get the error "ORA : 00933 SQL Command not properly ended"
    when I try to execute the following query, in oracle8i. Also the tables it involves are from different db. I tried to put @server_name after the table name but still it didn't work:
    UPDATE ASAP.CAP_NW_CONN_DUMP cncd
         SET MS_INIT = ep1.task_status, HANDSET_DEL = ep3.task_status,
         ACTIVATION = ep.task_status, MS_UPDT = ep2.task_status,
         MS_FNL = ep4.task_status
    ep1.task_status, ep3.task_status, ep.task_status, ep2.task_status, ep4.task_status
    FROM eposmig.t_intf_order_task_dtls@eposload ep, eposmig.t_intf_order_task_dtls ep1, eposmig.t_intf_order_task_dtls ep2,
         eposmig.t_intf_order_task_dtls ep3, eposmig.t_intf_order_task_dtls ep4,
         eposmig.pos_order_lines@eposload pol
    WHERE cncd.ident_text = pol.telephone_no
    AND ep.task_type LIKE 'ACT%'
    AND ep1.task_TYPE = 'MSOLV-INIT'
    AND ep2.task_TYPE = 'MSOLV-UPDATE'
    AND ep3.task_type = 'MSOLV-FINAL'
    AND ep4.task_type = 'HANDSET-DEL'
    AND ep.ORDER_NBR = pol.ORDER_NBR
    AND ep1.ORDER_NBR = pol.ORDER_NBR
    AND ep2.ORDER_NBR = pol.ORDER_NBR
    AND ep3.ORDER_NBR = pol.ORDER_NBR
    AND ep4.ORDER_NBR = pol.ORDER_NBR
    AND pol.order_line_nbr IN (SELECT MAX(order_line_nbr) FROM eposmig.pos_order_lines
                                            WHERE telephone_no IN (SELECT ident_text FROM asap.cap_nw_conn_dump)
                                            GROUP BY telephone_no)
    The table that is being updated, is in same db, but rest of two tables are from different databases i.e eposload

    >
    UPDATE ASAP.CAP_NW_CONN_DUMP cncd
    SET MS_INIT = ep1.task_status, HANDSET_DEL =
    EL = ep3.task_status,
    ACTIVATION = ep.task_status, MS_UPDT =
    DT = ep2.task_status,
         MS_FNL = ep4.task_status
    ep1.task_status, ep3.task_status, ep.task_status,
    ep2.task_status, ep4.task_status
    FROM eposmig.t_intf_order_task_dtls@eposload ep,
    eposmig.t_intf_order_task_dtls ep1,
    eposmig.t_intf_order_task_dtls ep2,
    eposmig.t_intf_order_task_dtls ep3,
    3, eposmig.t_intf_order_task_dtls ep4,
         eposmig.pos_order_lines@eposload pol
    WHERE cncd.ident_text = pol.telephone_no
    AND ep.task_type LIKE 'ACT%'
    AND ep1.task_TYPE = 'MSOLV-INIT'
    AND ep2.task_TYPE = 'MSOLV-UPDATE'
    AND ep3.task_type = 'MSOLV-FINAL'
    AND ep4.task_type = 'HANDSET-DEL'
    AND ep.ORDER_NBR = pol.ORDER_NBR
    AND ep1.ORDER_NBR = pol.ORDER_NBR
    AND ep2.ORDER_NBR = pol.ORDER_NBR
    AND ep3.ORDER_NBR = pol.ORDER_NBR
    AND ep4.ORDER_NBR = pol.ORDER_NBR
    AND pol.order_line_nbr IN (SELECT MAX(order_line_nbr)
    FROM eposmig.pos_order_lines
    WHERE telephone_no IN (SELECT
    e_no IN (SELECT ident_text FROM
    asap.cap_nw_conn_dump)
                                            GROUP BY telephone_no)
    The syntax of your UPDATE statement is incorrect.
    Have a look at the "wire-diagram" in the documentation -
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_10007.htm#SQLRF01708
    and compare it with your UPDATE statement.
    HTH
    isotope

  • Syntax errors in update query

    Below is the query:
    UPDATE CFQCC
    SET sp_CFQCorr.RecImported = 1, 
    CFQCC.RecImported = 1
    from [HR_DEV_DM].[CFQ_TEST].CFQ_Coord_Corrections as CFQCC
    INNER JOIN [HR_DEV_DM].[CFQ_TEST].sp_CFQ_Coord_Corrections as sp_CFQCorr
    ON CFQCC.CorrID = sp_CFQCorr.ID 
    WHERE (((sp_CFQCorr.RecImported)=0) 
    AND ((CFQCC.RecImported)=0));
    When executed, it gives the below error:
    Msg 4104, Level 16, State 1, Line 2
    The multi-part identifier "sp_CFQCorr.RecImported" could not be bound.
    Please help....

    UPDATE Table1, Table2
    SET Table1.Column1 = 'one'
    ,Table2.Column2 = 'two'
    FROM Table1 T1, Table2 T2
    WHERE T1.id = T2.id
    and T1.id = 'id1'

  • Syntax errors in update query with inner joins and sub query.

    Below is the query:
    UPDATE sp_CFQ_Coord_Corrections 
    INNER JOIN (CFQ_Coord_Corrections 
    INNER JOIN CFQ_Referrals ON CFQ_Coord_Corrections.CorrID = CFQ_Referrals.RecID) 
    ON sp_CFQ_Coord_Corrections.ID = CFQ_Referrals.RecID 
    SET CFQ_Coord_Corrections.MatchFound = 1, 
    CFQ_Coord_Corrections.RecTblID = [CFQ_Referrals].[RecTblID], 
    sp_CFQ_Coord_Corrections.MatchFound = 1
    WHERE (((CFQ_Coord_Corrections.MatchFound)=0) 
    AND ((sp_CFQ_Coord_Corrections.MatchFound)=0) 
    AND ((CFQ_Coord_Corrections.RecImported)=1) 
    AND ((CFQ_Referrals.RecFileName)='COORDCORR_SPOINT') 
    AND ((CFQ_Referrals.RecCombKey)='No.Match') 
    AND ((sp_CFQ_Coord_Corrections.RecImported)=1));
    Error messages seen when executed:
    Msg 156, Level 15, State 1, Line 3
    Incorrect syntax near the keyword 'INNER'.
    Msg 102, Level 15, State 1, Line 10
    Incorrect syntax near 'CFQ_Coord_Corrections'.
    Please help.....

    Below is the query:
    UPDATE sp_CFQ_Coord_Corrections 
    INNER JOIN (CFQ_Coord_Corrections 
    INNER JOIN CFQ_Referrals ON CFQ_Coord_Corrections.CorrID = CFQ_Referrals.RecID) 
    ON sp_CFQ_Coord_Corrections.ID = CFQ_Referrals.RecID 
    SET CFQ_Coord_Corrections.MatchFound = 1, 
    CFQ_Coord_Corrections.RecTblID = [CFQ_Referrals].[RecTblID], 
    sp_CFQ_Coord_Corrections.MatchFound = 1
    WHERE (((CFQ_Coord_Corrections.MatchFound)=0) 
    AND ((sp_CFQ_Coord_Corrections.MatchFound)=0) 
    AND ((CFQ_Coord_Corrections.RecImported)=1) 
    AND ((CFQ_Referrals.RecFileName)='COORDCORR_SPOINT') 
    AND ((CFQ_Referrals.RecCombKey)='No.Match') 
    AND ((sp_CFQ_Coord_Corrections.RecImported)=1));
    Error messages seen when executed:
    Msg 156, Level 15, State 1, Line 3
    Incorrect syntax near the keyword 'INNER'.
    Msg 102, Level 15, State 1, Line 10
    Incorrect syntax near 'CFQ_Coord_Corrections'.
    Please help.....
    sp_CFQ_Coord_Corrections is a table and not a stored procedure.
    are these both tables "sp_CFQ_Coord_Corrections" and "CFQ_Coord_Corrections" different ??

  • Query Saving takes long time and giving error

    Hi Gurus,
    I am creating one query that have lot of calculations (CKF & RKF).
    When I am trying to save this query it is taking long time and it is giving error like RFC_ERROR_SYSTEM_FAILURE, Query Designer must be restarted, further work not possible.
    Please give me the solution for this.
    Thanks,
    RChowdary

    Hi Chowdary,
    Check the following note: 316470.
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=316470
    The note details are:
    Symptom
    There are no authorizations to change roles. Consequently, the system displays no roles when you save workbooks in the BEx Analyzer. In the BEx browser, you cannot move or change workbooks, documents, folders and so on.
    Other terms
    BW 2.0B, 2.0A, 20A, 20B, frontend, error 172, Business Explorer,
    RFC_ERROR_SYSTEM_FAILURE, NOT_AUTHORIZED, S_USER_TCD, RAISE_EXCEPTION,
    LPRGN_STRUCTUREU04, SAPLPRGN_STRUCTURE, PRGN_STRU_SAVE_NODES
    Reason and Prerequisites
    The authorizations below are not assigned to the user.
    Solution
    Assign authorization for roles
    To assign authorizations for a role, execute the following steps:
    1. Start Transaction Role maintenance (PFCG)
    2. Select a role
    3. Choose the "Change" switch
    4. Choose tab title "Authorizations"
    5. Choose the "Change authorization data" switch
    6. Choose "+ Manually" switch
    7. Enter "S_USER_AGR" as "Authorization object"
    8. Expand "Basis: Administration"/"Authorization: Role check""
    9. From "Activity" select "Create or generate" and others like "Display" or "Change"
    10. Under "Role Name", enter all roles that are supposed to be shown or changed. Enter "*" for all roles.
    11. You can re-enter authorization object "S_USER_AGR" for other activities.
    Assign authorization for transactions
    If a user is granted the authorization for changing a role, he/she should also be granted the authorization for all transactions contained in the role. Add these transaction codes to authorization object S_USER_TCD.
    1. Start the role maintenance transaction (PFCG).
    2. Select a role.
    3. Click on "Change".
    4. Choose the "Authorizations" tab.
    5. Click on "Change authorization data".
    6. Click on "+ manually".
    7. Specify "S_USER_TCD" as "Authorization object".
    8. Expand "Basis - Administration"/"Authorizations: Transactions in Roles".
    9. Under "Transaction", choose at least "RRMX" (for BW reports), "SAP_BW_TEMPLATE" (for BW Web Templates), "SAP_BW_QUERY" (for BW Queries and/or "SAP_BW_CRYSTAL" (for Crystal reports) or "*". Values with "SAP_BW_..." are not transactions, they are special node types (see transaction code NODE_TYPE_DEFINITION).
    Using the SAP System Trace (Transaction ST01), you can identify the transaction that causes NOT_AUTHORIZED.
    Prevent user assignment
    Having the authorization for changing roles, the user is not only able to change the menu but also to assign users. If you want to prevent the latter, the user must loose the authorization for Transactions User Maintenance (SU01) and Role maintenance (PFCG).
    Z1>Note
    Refer to Note 197601, which provides information on the different display of BEx Browser, BEx Analyzer and Easy Access menu.
    Please refer to Note 373979 about authorizations to save workbooks.
    Check in the transaction ST22 for more details on the Query designer failure or query log file.
    With Regards,
    Ravi Kanth.
    Edited by: Ravi kanth on Apr 9, 2009 6:02 PM

  • Error Executing Database Query. (Please help)

    I can't get this query to work properly. I have gone over it so many times.. I can't count, I don't get why it's throwing an error. Here is my code, and followed by the error:
    My update query:
    <cfquery name="UpdateDetails" datasource="#APPLICATION.dataSource#">
    UPDATE books234
    SET
    books234.title=<cfqueryparam cfsqltype="cf_sql_varchar" value="#form.title#">,
    books234.info=<cfqueryparam cfsqltype="cf_sql_varchar" value="#form.info#">,
    books234.statement=<cfqueryparam cfsqltype="cf_sql_varchar" value="#form.statement#">,
    <cfif fileuploaded is true>
    books234.MYFile=<cfqueryparam cfsqltype="cf_sql_varchar" value="#uploadedfile#">,
    </cfif>
    books234.links=<cfqueryparam cfsqltype="cf_sql_varchar" value="#form.links#">,
    books234.ordNum=<cfqueryparam cfsqltype="cf_sql_varchar" value="#form.ordNum#">
    WHERE books234.ID = <cfqueryparam value="#form.ID#" cfsqlType="CF_SQL_INTEGER">
    </cfquery>
    <cflocation url="bookView.cfm?ID=#Form.ID#" addtoken="no">
    Here is my error:
    Error  Executing Database Query.
    [Macromedia][SequeLink JDBC  Driver][ODBC Socket][Microsoft][ODBC Microsoft Access Driver]Invalid precision  value
    The  error occurred in C:\websites\209689jh6\slideAction.cfm: line  455
    Called from C:\websites\209689jh6\admin\cms\slideAction.cfm:  line 442
    Called from C:\websites\209689jh6\admin\cms\slideAction.cfm:  line 390
    Called from C:\websites\209689jh6\admin\cms\slideAction.cfm:  line 1
    Called from C:\websites\209689jh6\admin\cms\slideAction.cfm:  line 455
    Called from C:\websites\209689jh6\admin\cms\slideAction.cfm:  line 442
    Called from C:\websites\209689jh6\admin\cms\slideAction.cfm:  line 390
    Called from C:\websites\209689jh6\admin\cms\slideAction.cfm:  line 1
    453 : books234.links=<cfqueryparam cfsqltype="cf_sql_varchar" value="#form.links#">,
    454 : books234.ordNum=<cfqueryparam cfsqltype="cf_sql_varchar" value="#form.ordNum#">
    455 : WHERE books234.ID = <cfqueryparam value="#form.ID#" cfsqlType="CF_SQL_INTEGER">
    456 : </cfquery>
    457 : <cflocation url="bookView.cfm?ID=#Form.ID#" addtoken="no">
    Can anyone see what I did wrong here? It's not like it's a sophisticated query. I write these all the time.
    Thank you.

    Does it work without using cfqueryparam in the WHERE statement?  Are you sure the type CF_SQL_INTEGER is correct?  Is the value of form.ID really an integer?
    Cheers

  • Top N query giving error for oracle 8.0.6

    Dear All,
    We are executing this query SELECT XBLNR, WERKS, MATNR, MDV01, BACKFLQUANT, STATUS, SAPTIMESTAMP, PITSTIMESTAMP, PMTIMESTAMP, BATCH FROM (SELECT XBLNR, WERKS, MATNR, MDV01, BACKFLQUANT, STATUS, SAPTIMESTAMP, PITSTIMESTAMP, PMTIMESTAMP, BATCH FROM PMBPITS.PITS_UNITY WHERE STATUS = '01' ORDER BY PMTIMESTAMP) WHERE ROWNUM < 20
    on oracle 8.0.6 but this is giving the following error
    ora - 00907 missing right parenthesis error
    1. Is it that in the inner select we cannot use order by and where clause together.
    2. We also found that if we remove order by from inner select then the query is not giving error
    pls help . points will be awarded

    Hi,
    what ever the Aman said is correct. You check this is supported in 8.1.5, SQL allows you to embed the ORDER BY clause in a subquery and place the ROWNUM condition in the top-level query;
    'Top-N query' is a ORACLE 8i feature which is supported in SQL. However,
    Bug:855720 states the following:
    "PL/SQL does not support top-N queries (ORDER BY in SUBSELECT/SUBQUERY
    or VIEW. Since this feature is available in SQL, but not in PL/SQL,
    it has been logged as a Bug that will be fixed in 8.1.6."
    - Pavan Kumar N

  • Giving error message when saving the Query

    Hello,
    I have added a new calculated key figure to the structure in a Query but when I try to save the Query it is giving error message is below.
    Error Message:
    u201CThis internal error is an intended termination resulting from a program state that is not permitted.
    Procedure
    Analyze the situation and inform SAP.
    If the termination occurred when you executed a query or Web template, or during interaction in the planning modeler, and if you can reproduce this termination, record a trace (transaction RSTT).
    For more information about recording a trace, see the documentation for the trace tool environment as well as SAP Note 899572u201D.
    Could any one please suggest me how can I over come with this problem.
    Thanks
    Prathap.

    Hi Prathap,
    There is some problem in the definition of the Query.
    Please click on the check button before saving the query, it gives where the problem exists in it.
    Hope it helps.
    Veeerendra.

  • How to generate a dynamic update query to update error flag in a mapping?

    i have a mapping in which i m loading log table through generated parameter file.But i want to update the error flag using dynamic update query.for that i have to generate a query and use update sqloverridw in target instances.but i m not getting how to implement it.Please help..!!

    Hi  All, I have a scenario. Below is the source record. field1|field2|field3|field4|field5|field6|field7
    5|20150329|1|980100001|500|My name is Lalita|25
    5|20150329|1|303444442|200|My name is |Lalita.I work in TCS|26
    5|20150329|1|442101001|1000|My name is Lalita.I worked Syntel|56
    5|20150329|1|446788900|300|My name|67  My source file is | separator. But for field6 the data might come with '|'.
    So I want to import the data along with '|' after separating all field in Informatica Layer.  Source team is not going to preformat the file. Please suggest how to achive this.

  • Why this query is giving error in report

    I have a simple query ...
    SELECT &P_FLEXDATA C_FLEXDATA,
    CHART_OF_ACCOUNTS_ID C_NUM
    FROM GL_CODE_COMBINATIONS
    It is running fine in SQL prompt but when I create it as a report query then it is giving error: ORA-00904 "C_FLEXDATA": invalid identifier
    Please advise ....
    I shall be ever thankful...
    Best Regards

    Hello,
    You are using a "lexical" reference in the SQL query (&P_FLEXDATA).
    You must set a default value for P_FLEXDATA in order the SQL Query to be parsed successfuly
    Regards

  • TS3694 hello i am trying to update my phone . i am connecting it to itunes but it is giving error 3194 . can you help me resolve this problem please.

    hello i am trying to update my phone . i am connecting it to itunes but it is giving error 3194 . can you help me resolve this problem please.

    Hi ali hakim,
    Welcome to the Support Communities!
    The article below may be able to help you with this issue.
    Click on the link to see more details and screenshots.
    iOS: Restore error 3194 or 'This device isn't eligible for the requested build'
    http://support.apple.com/kb/TS4451
    This occurs when iTunes is unable to communicate with the update-and-restore server (gs.apple.com). This is most likely because it is being blocked, redirected, or interrupted by security software, hosts-file entries, or other third-party software.
    Cheers,
    - Judy

Maybe you are looking for

  • Task flow return-Current Record pointing issue.

    Hi friends Newbie in ADF (basically from .net back ground)...........I am in the process of developing my first module. I have a task flow where a master detail records are displayed ..When I click "Edit" it is calling a edit task flow where the edit

  • Used to startup Classic while in OSX but now I can't. +

    Hi, I have three questions in this post. Thanks for helping me with any of them! I am unable to start up Classic while I am on 10.4.1. I can go into the Start Up disk and select the folder OS.9.1 and restart my computer and I will be in OS.9.1, but w

  • UKMS versus Value Mapping versus Z tables ?

    Hello, has someone already made a choice whether to use UKMS or Value Mapping or Z Tables to do mapping or filtering of data ? If yes, what were the reasons to go for one or the other solution ? - both UKMS / Value Mapping provide key-pair mappings -

  • I'm trying to add the system date with a Label. What is wrong with the code

    import java.util.*; import javax.swing.*; public class CurrentDateApplet extends JApplet      Calendar currentCalendar = Calendar.getInstance();      JLabel dateLabel = new JLabel();      JPanel mainPanel = new JPanel();      int dayInteger = current

  • Java 1.5.0_17 core dumps

    Hi All, We have a java application which works in protocol level. Our java application uses JNI to interact with others modules which are written in C++. We are doing stress testing on the application. after that, we are stopping the java application