Query syntax problem.

Hi All
SELECT DATE '2009-08-10' dt, 'CP' TYPE, 500 amount FROM dual
When we execute the above query its fine. But when we specify datatype for the second column TYPE like the first date column dt.
Its shows error "ORA-00936: missing expression". Can any one tell what went wrong. Thanks in advance
SELECT DATE '2009-08-10' dt, CHAR 'CP' TYPE, 500 amount FROM dual
UNION ALL
SELECT DATE '2009-08-10' dt, CHAR 'CP' TYPE, 500 amount FROM dual
George
Kerala
Edited by: user6290570 on Aug 30, 2009 11:44 PM
Edited by: user6290570 on Aug 30, 2009 11:45 PM

small correction,
For your 'CP' string, this is already a varchar2 datatypeFor your 'CP' string, this is already a CHAR datatype
SQL> with test
  2  as
  3  (select 'CR' t
  4     from dual
  5  )
  6  select t
  7       , dump (t)
  8    from test
  9  /
T
DUMP(T)
CR
Typ=96 Len=2: 67,82
SQL> select text
  2    from all_source
  3   where type = 'PACKAGE'
  4     and name = 'DBMS_DESCRIBE'
  5     and line between 151 and 182
  6  /
TEXT
  --           0 - This row is a placeholder for a procedure with
  --               no arguments.
  --           1 - VARCHAR2
  --           2 - NUMBER
  --           3 - NATIVE INTEGER (BINARY_INTEGER or PLS_INTEGER)
  --           8 - LONG
  --          11 - ROWID
  --          12 - DATE
  --          23 - RAW
  --          24 - LONG RAW
  --          58 - OPAQUE TYPE
TEXT
  --          96 - CHAR
  --         100 - BINARY_FLOAT
  --         101 - BINARY_DOUBLE
  --         104 - UROWID
  --         106 - MLSLABEL
  --         112 - CLOB
  --         113 - BLOB
  --         114 - BFILE
  --         121 - OBJECT
  --         122 - NESTED TABLE
  --         123 - VARRAY
TEXT
  --         178 - TIME
  --         179 - TIME WITH TIME ZONE
  --         180 - TIMESTAMP
  --         181 - TIMESTAMP WITH TIME ZONE
  --         182 - INTERVAL YEAR TO MONTH
  --         183 - INTERVAL DAY TO SECOND
  --         231 - TIMESTAMP WITH LOCAL TIME ZONE
  --         250 - PL/SQL RECORD (see "Notes:" below)
  --         251 - PL/SQL TABLE
  --         252 - PL/SQL BOOLEAN (see "Notes:" below)
32 rows selected.;)

Similar Messages

  • About query related problem

    hi ,
           we are generate query in 2005b,and procced for execuite query.following problem occure'<b>odbc sql server driver'[sql server] syntax error the converting the nvarchar value' 70302/20307' to column of data type int received alert OAIB</b>
    QUERY SHOWN BE AS FOLLOW.
    SELECT T5.DocNum as'Po. No. ', T5.DocDate as 'Po Date',T0.CreateDate,T5.NumAtCard as 'Man.PO. No/ Dt.', T0.DocNum as'AP No. ', T0.DocDate as 'AP Date',T0.NumAtCard as 'Vendor Ref. No.', T0.U_vbdt as 'Vendor Ref. Date', T0.CardName as 'Vendor', T1.Dscription as 'Item',  T1.Quantity AS 'QTY'  , T1.Price as 'Basic Rate', (T1.Price *T1.Quantity) as 'Value',T0.Comments as 'Po No. & Po.Dt.' FROM OPCH T0 INNER JOIN PCH1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OCRD T2 ON T0.CardCode = T2.CardCode INNER JOIN OPDN T3 ON T2.CardCode = T3.CardCode INNER JOIN PDN1 T4 ON T3.DocEntry = T4.DocEntry INNER JOIN OPOR T5 ON T2.CardCode = T5.CardCode INNER JOIN POR1 T6 ON T5.DocEntry = T6.DocEntry INNER JOIN OITM T7 ON T1.ItemCode = T7.ItemCode INNER JOIN OITB T8 ON T7.ItmsGrpCod = T8.ItmsGrpCod WHERE (  T1.BaseRef  =  T3.DocNum )  AND ( T4.BaseRef =  T5.DocNum ) AND (  T0.U_vbdt >=[%25]AND  T0.U_vbdt <=[%26]) AND ( T4.Dscription =T1.Dscription ) AND ( T4.Dscription = T6.Dscription  ) AND  (( T1.Dscription=[%0] OR T1.Dscription=[%1] OR T1.Dscription=[%2] OR T1.Dscription=[%3] OR T1.Dscription=[%4] OR T1.Dscription=[%5] OR T1.Dscription=[%6] OR T1.Dscription=[%7] OR T1.Dscription=[%8] ) OR ( T0.CardName=[%10] OR T0.CardName=[%09] OR T0.CardName=[%27] OR T0.CardName=[%28] ) OR ((  T8.ItmsGrpNam =[%11]  oR T8.ItmsGrpNam =[%12] OR T8.ItmsGrpNam =[%13] OR T8.ItmsGrpNam =[%14] OR T8.ItmsGrpNam =[%15] OR T8.ItmsGrpNam =[%16] OR T8.ItmsGrpNam =[%17] OR T8.ItmsGrpNam =[%18] OR T8.ItmsGrpNam =[%19] ) and  ( T7.U_FirmName =[%20] OR T7.U_FirmName =[%21] OR T7.U_FirmName =[%22] 
    oR T7.U_FirmName =[%23] OR T7.U_FirmName =[%24] )) )

    Hi Vishal,
    the value '70302/20307' is not an whole number so converting it to an int is not possible.
    You should check your data for this value an change your query or data.
    Regards
    Ad

  • XPATH Database Query Syntax in an Assign

    Trying to get an XPATH Database query to work by assigning the Input variable value in a simple BPEL Process to my query condition. I keep getting invalid XPATH errors. I cannot seem to figure out how get write it out.
    Here is what I have:
    <from expression="orcl:query-database( 'select ename from emp where ename = bpws:getVariableData('inputVariable','payload','/client:ReadDBProcessRequest/client:input')' ,false(),false(),'jdbc:oracle:thin:scott/tiger@localhost:1521:ORCL')"/>
    Here is my error:
    Error(30): [Error ORABPEL-10039]: invalid xpath expression [Description]: in line 30 of "C:\OraBPELPM_1\integration\jdev\jdev\mywork\BPELws\ReadDB\ReadDB.bpel", xpath expression "orcl:query-database( 'select ename from emp where ename = bpws:getVariableData('inputVariable','payload','/client:ReadDBProcessRequest/client:input')' ,false(),false(),'jdbc:oracle:thin:scott/tiger@localhost:1521:ORCL')" specified in <from> is not valid, because XPath query syntax error. Syntax error while parsing xpath expression "orcl:query-database( 'select ename from emp where ename = bpws:getVariableData('inputVariable','payload','/client:ReadDBProcessRequest/client:input')' ,false(),false(),'jdbc:oracle:thin:scott/tiger@localhost:1521:ORCL')", at position "80" the exception is Expected: ). Please verify the xpath query "orcl:query-database( 'select ename from emp where ename = bpws:getVariableData('inputVariable','payload','/client:ReadDBProcessRequest/client:input')' ,false(),false(),'jdbc:oracle:thin:scott/tiger@localhost:1521:ORCL')" which is defined in BPEL process. . [Potential fix]: Please make sure the expression is valid.
    Any help?
    Thanks!!!

    Ok. I have figured out how to place the condition (variable value) inside a concatentated string. So my final result is the actual XPATH Query-Database statement. But the problem is it is being returned as a String. How can I turn that final string into the XPATH expression I need? I suspect another <COPY> block could pull this off but I am not sure how to do it.
    Here is my code:
    <process name="QueryBuild" targetNamespace="http://xmlns.oracle.com/QueryBuild" xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20" xmlns:ns1="http://www.w3.org/2001/XMLSchema" xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:bpelx="http://schemas.oracle.com/bpel/extension" xmlns:client="http://xmlns.oracle.com/QueryBuild" xmlns:ora="http://schemas.oracle.com/xpath/extension" xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc">
    <partnerLinks>
    <partnerLink name="client" partnerLinkType="client:QueryBuild" myRole="QueryBuildProvider"/>
    </partnerLinks>
    <variables>
    <variable name="inputVariable" messageType="client:QueryBuildRequestMessage"/>
    <variable name="outputVariable" messageType="client:QueryBuildResponseMessage"/>
    <variable name="QueryText" type="ns1:string"/>
    </variables>
    <sequence name="main">
    <receive name="receiveInput" partnerLink="client" portType="client:QueryBuild" operation="process" variable="inputVariable" createInstance="yes"/><!-- Generate reply to synchronous request -->
    <assign name="Assign_1">
    <copy>
    <from expression="concat(&quot;orcl:query-database('select ename from emp where empno = &quot;, bpws:getVariableData('inputVariable','payload','/client:QueryBuildProcessRequest/client:input'), &quot;,false(),false(),'jdbc:oracle:thin:scott/tiger@localhost:1521:ORCL)'&quot;)"/>
    <to variable="QueryText"/>
    </copy>
    <copy>
    <from variable="QueryText"/>
    <to variable="outputVariable" part="payload" query="/client:QueryBuildProcessResponse/client:result"/>
    </copy>
    </assign>
    <reply name="replyOutput" partnerLink="client" portType="client:QueryBuild" operation="process" variable="outputVariable"/>
    </sequence>
    </process>

  • Query syntax check

    Hello all
    I wrote an query and regarding one part, i have syntax problem, when should we seperate different arithmetic operators in a query?
    for example
    select  density_with_desert.popp  /  density_with_desert.arr  -  sum(darea)  from counytyi don't want to use variables.
    thank you im using oracle 11g.
    best,david

    1003209 wrote:
    Hello all
    I wrote an query and regarding one part, i have syntax problem, when should we seperate different arithmetic operators in a query?
    for example
    select  density_with_desert.popp  /  density_with_desert.arr  -  sum(darea)  from counytyi don't want to use variables.
    thank you im using oracle 11g.
    best,daviduse this:
    select sum(density_with_desert.popp) / sum( density_with_desert.arr) - sum(darea) from counyty;
    or use this:
    select sum(density_with_desert.popp) / sum( density_with_desert.arr) - sum(darea) from counyty group by darea;
    Edited by: Gaurav_91 on May 14, 2013 11:53 AM

  • Question about WebLogic query syntax

    Hello,
    I am using WebLogic Server 6.0, which came as part of the WebGain
    Studio SE 4.5 development kit. My question regards the Web Logic query
    syntax, which I have not yet mastered.
    I am trying to create a finder method that takes a single argument
    of type "char" and finds all matching fields of the column "keyword" in
    which the argument is the first letter of keyword. That is, if I were
    only looking for fields beginning with the letter "M", I'd use:
    (like keyword 'M%')
    However, I'm looking for all fields beginning with the first letter
    defined by the first argument. Sadly, this syntax:
    (like keyword '$0%')
    doesn't seem to be working. Any suggestions on the correct syntax?
    If this is not the right forum for this question, could someone
    suggest an appropriate newsgroup?
    Thanks, Dave

    962466 wrote:
    Hi all,
    I have an issue I need help with. I have created a script for an automated partition create on a monthly basis. It creates a monthly partition containing all dates within the respective month. The script is essentially this:
    ALTER TABLE SCHEMA.TABLE
    ADD PARTITION &&1
    VALUES LESS THAN (to_number(to_char(to_date('&&2', 'DD-MON-YY'), 'YYYYMMDD')))
    TABLESPACE LARGE_DATA94 COMPRESS;
    I continually get this error message "ORA-14019: partition bound element must be one of: string, datetime or interval literal, number, or MAXVALUE"
    The variable &&2 is passing in character data for the first of the month (E.G. '01-SEP-12'). &&1 passes character data for the month in MONYY (AUG12) I can run this query:
    select
    (to_number(to_char(to_date('&&2', 'DD-MON-YY'), 'YYYYMMDD')))
    from dual;
    With the output of 20120801. I cannot understand why I am able to run this partition create statement by hardcoding 20120901 but passing it in as a variable I receive the error. Note that I am not having problems with the &&1 variable. If anyone has any ideas please let me know. Thanks!I don't understand why you are taking a string, converting it to a date, then converting the date BACK TO a string ... then trying to convert that string to a number.
    What is the data type of the partitioning key? It appears that it is a NUMBER, but actually represents a DATE. If so, that is a fundamentally flawed design.

  • Ora-01704 string literal too long error  on long query syntax

    I have a query with more than 4000 characters. I can't seem to get ociparse to accept it. The bind variables are not an issue as I am not concatenating any strings to the query syntax. It is just that my query will all the columns and unions etc exceeds 4000 characters. Any way around this short of hiding it in a view ( which I have already done for other long queries ).
    System:
    PHP 4.3.10
    OCI driver
    Oracle 9i Release 2
    Thanks,
    Bryan

    Misread your post, sorry. Oracle limits literal strings to 4,000 chars. According to the documentation it's required that you use bind variables where possible to shorten literal strings below 4,000. You could also try a pl/sql block.
    The error you're getting is being returned by Oracle, not PHP. I've seen it pop up on bugtraq a couple of times for PHP, but the answer is always the same. I'm more of a programmer than a database expert, so forgive me for not having a better answer. You may want to try posting this to one of the more specific oracle forums where someone will probably have a better answer for you.
    http://www.stanford.edu/dept/itss/docs/oracle/9i/server.920/a96525/toc.htm

  • Query designing problem while applying cell properties

    Hello Experts,
    I have a problem while designing query. Problem is as follow:
    I have a calculated field on key figure column. This key figure calculates variance between 2 columns.
    for E.g I have 2 columns Budget and Actual and third column is %Variance which should be          
    1. ((Actual - Budget)/Budget) *100 or
    2. ((Budget -Actual)/Budget)*100, depening on some values on the row i should use any of these 2 formulas but the result should be dispalyed in single column % Variance.
    how can i change the formula in key figures depending on these conditions. I can achieve this by applying cells but i dont want to do so as it is very complex way to desing these queries.
    also let me know applying cells on query affects its performance or not?
    Regards,
    Nirav

    Hi Nitin,
    Your reply may help me.
    But my exact requirement is not that. Requirement is as follow:
    I have created Char. Structure in row which contains few rows as revenue and few rows as expense.
    I created them by creating selections. Now in case of expense the variance should be                (Budget-Actual)/Budget *100.
    In case of revenue variance should be (Actual-Budget)/Budget *100.
    So, here i have to find out revenue & expense char. iresspective of which one is greater.
    Regards,
    Nirav

  • Query has problem

    Below query has problem .
    Pls see the queries for Usage Summary with Partition and Without Partition
    . I have executed this now so it may be in Buffer …****
    DB Query ... SUM from event objects, bin variables
    SELECT sum(amount) , sum(quantity), event.poid_type,ebal.resource_id,****
    event.service_obj_type, event.service_obj_id0,ebal.
    rate_obj_id0, ebal.OFFERING_OBJ_ID0, ebal.IMPACT_CATEGORY ****
    FROM event_bal_impacts_t ebal, item_t item, event_tevent*
    WHERE event.item_obj_id0 = item.poid_id0****
    AND ebal.obj_id0 = event.poid_id0****
    --                   and event.Poid_id0 >= 266838277921701888****
    --                 and event.Poid_id0 < 267928993456455680****
    --               and ebal.obj_id0 >= 266838277921701888****
    --             and ebal.obj_id0 < 267928993456455680****
    AND item.bill_obj_id0 = 148715294****
    AND ebal.product_obj_id0 = 27433706****
    AND ebal.account_obj_id0 = 146876519****
    AND item.account_obj_id0 = 146876519****
    AND event.poid_type like '%session/telco/gsm%'****
    AND ebal.impact_category <> 'Free'****
    AND resource_id not in (select resource_id from
    resource_id_t)****
    group by****
    event.poid_type, ebal.resource_id,****
    event.service_obj_type, event.service_obj_id0,****
    ebal.rate_obj_id0, ebal.OFFERING_OBJ_ID0,ebal.
    IMPACT_CATEGORY****
    order by****
    ebal.resource_id desc;****
    SELECT sum(amount) , sum(quantity), event.poid_type,ebal.
    resource_id,****
    event.service_obj_type, event.service_obj_id0,ebal.
    rate_obj_id0, ebal.OFFERING_OBJ_ID0, ebal.IMPACT_CATEGORY ****
    FROM event_bal_impacts_t ebal, item_t item, event_tevent*
    WHERE event.item_obj_id0 = item.poid_id0****
    AND ebal.obj_id0 = event.poid_id0****
    and event.Poid_id0 >= 264199450015039488****
    and event.Poid_id0 < 265237388991660032****
    and ebal.obj_id0 >= 264199450015039488****
    and ebal.obj_id0 < 265237388991660032****
    AND item.bill_obj_id0 = 148715294****
    AND ebal.product_obj_id0 = 27433706****
    AND ebal.account_obj_id0 = 146876519****
    AND item.account_obj_id0 = 146876519****
    AND event.poid_type like '%session/telco/gsm%'****
    AND ebal.impact_category <> 'Free'****
    AND resource_id not in (select resource_id from
    resource_id_t)****
    group by****
    event.poid_type, ebal.resource_id,****
    event.service_obj_type, event.service_obj_id0,****
    ebal.rate_obj_id0, ebal.OFFERING_OBJ_ID0,ebal.
    IMPACT_CATEGORY****
    order by****
    ebal.resource_id desc;****
    --

    848478 wrote:
    Below query has problem .
    Pls see the queries for Usage Summary with Partition and Without Partition
    . I have executed this now so it may be in Buffer …****
    DB Query ... SUM from event objects, bin variables
    SELECT sum(amount) , sum(quantity), event.poid_type,ebal.resource_id,****
    event.service_obj_type, event.service_obj_id0,ebal.
    rate_obj_id0, ebal.OFFERING_OBJ_ID0, ebal.IMPACT_CATEGORY ****
    FROM event_bal_impacts_t ebal, item_t item, event_tevent*
    WHERE event.item_obj_id0 = item.poid_id0****
    AND ebal.obj_id0 = event.poid_id0****
    --                   and event.Poid_id0 >= 266838277921701888****
    --                 and event.Poid_id0 < 267928993456455680****
    --               and ebal.obj_id0 >= 266838277921701888****
    --             and ebal.obj_id0 < 267928993456455680****
    AND item.bill_obj_id0 = 148715294****
    AND ebal.product_obj_id0 = 27433706****
    AND ebal.account_obj_id0 = 146876519****
    AND item.account_obj_id0 = 146876519****
    AND event.poid_type like '%session/telco/gsm%'****
    AND ebal.impact_category <> 'Free'****
    AND resource_id not in (select resource_id from
    resource_id_t)****
    group by****
    event.poid_type, ebal.resource_id,****
    event.service_obj_type, event.service_obj_id0,****
    ebal.rate_obj_id0, ebal.OFFERING_OBJ_ID0,ebal.
    IMPACT_CATEGORY****
    order by****
    ebal.resource_id desc;****
    SELECT sum(amount) , sum(quantity), event.poid_type,ebal.
    resource_id,****
    event.service_obj_type, event.service_obj_id0,ebal.
    rate_obj_id0, ebal.OFFERING_OBJ_ID0, ebal.IMPACT_CATEGORY ****
    FROM event_bal_impacts_t ebal, item_t item, event_tevent*
    WHERE event.item_obj_id0 = item.poid_id0****
    AND ebal.obj_id0 = event.poid_id0****
    and event.Poid_id0 >= 264199450015039488****
    and event.Poid_id0 < 265237388991660032****
    and ebal.obj_id0 >= 264199450015039488****
    and ebal.obj_id0 < 265237388991660032****
    AND item.bill_obj_id0 = 148715294****
    AND ebal.product_obj_id0 = 27433706****
    AND ebal.account_obj_id0 = 146876519****
    AND item.account_obj_id0 = 146876519****
    AND event.poid_type like '%session/telco/gsm%'****
    AND ebal.impact_category <> 'Free'****
    AND resource_id not in (select resource_id from
    resource_id_t)****
    group by****
    event.poid_type, ebal.resource_id,****
    event.service_obj_type, event.service_obj_id0,****
    ebal.rate_obj_id0, ebal.OFFERING_OBJ_ID0,ebal.
    IMPACT_CATEGORY****
    order by****
    ebal.resource_id desc;****
    --Consider getting the asterisk key fixed, since it results in invalid SQL syntax

  • Some syntax problems (I guess)

    Hi, I'm having problem with the first constructor in this simplified example code... I want to create a "default" Comparator. I'm not quite sure how to do this.
    public class MyClass<E> {
        private Comparator<E> comp;
        public MyClass() {
            MyClass(new ComparableComparatorBridge());
        public Myclass(Comparator<E> comp) {
            this.comp = comp;
        private class ComparableComparatorBridge<E extends Comparable> implements Comparator<E> {
            public int compare(E o1, E o2) {
                return ((Comparable)o1).compareTo(o2);
    }

    Event if you fix the syntax problems, following the advice of the other posters, you'll have a semantic problem:
    MyClass<E> is parameterized with an unbounded type parameter.
    You cannot assume that E implements Comparable<E>.
    What you'd really need is a parameterizd constructor like this (won't compile):public <C extends E & Comparable<E>> MyClass() {
    this(new ComparableComparatorBridge<C>());
    }Unfortunately, this isn't valid Java. I see two possibilities:
    1. Derive from MyClass and introduce the additional bound on the type parameter of the subclass. Then you can create a default-constructor using the ComparableComparatorBridge in that subclass.
    2. Add a static factory function to MyClass, like this:
    public class MyClass<E> {
        private final Comparator<E> comp;
        public MyClass(Comparator<E> comp) {
            this.comp = comp;
        public static <E extends Comparable<E>> MyClass<E> defaultComparable() {
            return new MyClass<E>(new ComparableComparatorBridge<E>());
        private static class ComparableComparatorBridge<E extends Comparable<E>> implements Comparator<E> {
            public int compare(E o1, E o2) {
                return o1.compareTo(o2);
    }

  • Dreamweaver silently detects syntax problem

    I have a .cfm file which I've been maintaining for a few years. Recently while editing the file in DW6, DW began to fail to recognize that the file is a Cold Fusion file.  Common keyboard shortcuts, both general and CF-specific just won't function.  Menu items under "Insert...ColdFusion Objects" are all disabled.
    After 90 minutes of progressively removing a few lines of code, saving and closing, then reopening the file, I tracked the problem down to the presence of 1 line of ColdFusion code.
    I happened to see at the bottom of the edit window (in the part of the status bar which shows CF code nesting) that <cfinvoke> was listed, where there was none in the file I was having trouble with.  It turns out the line of "bad" code was a <cfinclude>, and the file it referenced had a <cfinvoke> without a closing </cfinvoke>
    The reason for this long post under Dreamweaver, is that DW was clearly detecting a syntax problem, but instead of identifying the problem, it just stopped functioning normally, and acted in a truely weird way.
    I do NOT have "Enable Related Files" active.  For DW to wanter out into other files and gag on a syntax error, then not to report the problem, was totally unexpected.
    I consider the primary "bug" to be in failing to report the syntax error.  Secondarily, syntax checking in related files should probably be controlled by the "related files" preference option.
    This is DW CS6, v 12.1, build 5949.

    Did you report this to Adobe?
    Bug Report & Feature Request Form
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    Nancy O.

  • Failure to search - query window problem

    Hello again,
    Have anyone of you came across a problem with SAP search mechanism in query window attached to document field? I've created a simple query of "Select acctcode,acctname from OACT where acctcode like '2%' and postable='Y' order by acctcode" and attached it to one of document fields (doesn't matter which one). When I run this query a usual window poped up with a search field on the top, but when I typed "2" in it, selection bar moved right into first 231 account ignoring any of the lesser numbers. There is more - when I changed query to search for '5%' like accounts, I gained the same result - accounts less than 530 were ignored even if I typed "50" or "51". BUT - when I changed query sort order to "desc", all account became "findable".
    I got this problem in one database only which is SAP 8.8 PL10 version upgraded recently from 2007A one. I've checked with a newly created 8.8 and such problem hasn't occured.

    Hello Thomasz,
    I might be off base here, what happens when you use this??? 
    Do you get the same types of query window problem???
    Select
    acctcode,
    acctname,
    segment_0
    from OACT
    where Segment_0 like '2%'
    order by acctcode
    for browse
    Regards,
    Zal

  • Syntax problem After the Upgrade to SCM 7.0

    We are facing one problem during the upgrade process in the sandbox environment.
    After the upgrade we have completed the SPAU corrections ,while doing the SPAU corrections we found that one function module is not in active mode. We have checked the syntax,problem is there. we have tried to retrieve to the older version. But there are some notes were implemented during the 4.1 version. Those notes are now appearing in the SPAU with question mark.
    We have reverted all the notes but still the code is having syntax problem and the code is in the 4.1 version only.
    Please tell me how to solve it...
    Moderator message - Welcome to SCN.
    But
    Moderator message - Cross post locked(please pick one forum or the other)
    Edited by: Rob Burbank on Nov 3, 2009 12:03 PM

    Hello Bouchards,
    Thank you for the question.  You can find Frequent Locations under Settings > Privacy > Location Services > System Services:
    You can find more information at the following link:
    iOS 7: Understanding Location Services
    http://support.apple.com/kb/HT5594
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Query of Qeries Syntax problem

    I'm getting an error on the syntax for my SELECT statement in
    a Query of Queries. The code is:
    <cfquery name="OnOrderLogData" dbtype="Query"
    result="result3">
    SELECT *,
    ROW_NUMBER() OVER([ORDER] [BY] RowNumber [ASC]) + 0 AS
    PageOrder
    FROM OOLogView
    WHERE RowNumber > 3 AND RowNumber <= 33
    </cfquery>
    The error is:
    Encountered "(. Incorrect Select Statement, Expecting a
    'FROM', but encountered '(' instead, A select statement should have
    a 'FROM' construct.
    I know that certain reserved words need to be escaped with
    square brackets, and I have surrounded all the words that were on
    the list in the reference manual with square brackets. I did not
    see anything in the reference manual that says I can not use
    parenthesis in the SELECT statement, nor anything that says I can
    not use the SQL function ROW_NUMBER. I have spent several hours
    trying many different things and still can't get it to work. It
    works fine when I execute it as an Ad Hoc query in SQL Server 2005
    Studio Express (when I take out the square brackets).
    Can anyone please help me figure out what is wrong and how to
    fix it? Thanks.

    > Adam, your's was the least impolite
    Heh. Talk about "damning with faint praise".
    > I have Ben Forta's 3 volumes, the CF Reference Manual
    and the CF User's Guide.
    > None are very specific about what IS OK to do,
    I actually find livedocs to be the best resource for looking
    up CF stuff.
    http://livedocs.adobe.com/coldfusion/8/using_recordsets_1.html
    Or googling these forums (NB: *Google*, not the in-built
    search function,
    which is rubbish).
    > If I would say something to my boss such as, "You
    shouldn't expect..." or
    > "What do you expect..." in the context as these answers,
    I would be in the dog
    > house.
    Sure. But you're not our boss. If we were to draw parallels
    like that,
    it'd be the other way around if anything. (I would not draw
    the parallels
    either way, that said). I actually *would* talk to one of my
    subordinates
    like that, but I'm noted at work for my "terseness" at times
    (some might
    describe it in harsher terms than that ;-). We've all got
    different
    expectations, I guess.
    > That is the kind of criteria used to judge the
    appropriateness of how
    > one should converse with other people.
    OK, well I think - for the reasons you outlined - you're
    going to be a bit
    disappointed there. I recommend ignoring the tone (or at
    least the tone
    you're perceiving), and just take the info as given. On the
    whole, people
    here are pretty polite, actually.
    But anyway. I think you got your answer, so job done.
    Although now you've
    got to work out another way of sorting out your issue...
    Adam

  • EBS Emp Recon connectors query.properties syntax problem

    Hi folks !
    Environment:
    OIM 9.1.0 running RHEL4 AS
    OIM eBusiness Employee Reconciliation connector 9.0.4.1 with patch 6728655
    Background:
    I'm trying to reconciliate some attributes from tables which are not by default described on query.properties. I've find out that I have to describe new tables on getEmp2 section, but that is not enough. On bug 6407452, Oracle says that you also have to describe new tables last_update_date query on query.properties.
    Question:
    Could someone please give me some examples how to modify query.properties so, that we can reconciliate also from tables which do not include person_id field.
    regards
    VeePee

    When I changed query.properties I ended up creating a view in the APPS schema of EBS which would return all the data that I needed.
    When I build the getEmp2 it looks something like this:
    getEmp2=FROM custom_view cv,gl_temp_table t,hr_all_organization_units WHERE cv.person_id = t.person_id and hr_all_organization_units.organization_id(+) = cv.organisation_id
    For some reason I could not get the above to work without including the hr_all_organization_units table.

  • BI 7.0 Infoset query open problem: query_tech_name_Fxx is not a valid char.

    Our BASIS transport our BW 3.5 queries to BI 7.0 system.  We can open all queries on the BI 7.0 box without problem except Infoset queries.  The Infoset is composed of two ODSs and when openning it BI 7.0 query designer, can not see any design element in the panes of Rows, Columns, Free Char. and etc., instead the error msg shows (in between two dashed lines below):
    Terminate: query_technical_name_Fxx is not a valid characteristic for InfoProvider [A122(BRAIN)]
    Diagnosis
    Customer enhancement RSR00002 or the implementation of BAdI RSR_OLAB_BADI delivers query_technical_name_Fxx as the characteristic to be calculated. 1. is, however, not a valid key figure for InfoProvider .
    System Response
    The information from query_technical_name_Fxx is ignored.
    Procedure
    Check the exit.
    Procedure for System Administration
    We've checked the enhancement RSR00002 and it's components and find they are all the same as our BW 3.5 system.  query_technical_name_Fxx is Company Code InfoObj. in one ODS and it's one of the key to join these two InfoSets.
    Any idea?
    Thanks

    hi Kevin,
    check if helps following oss note
    Note 983449 - Termin A122 1COLUMN no valid characteristic of infoprovider
    Symptom
    Termination A 122 Brain occurs when you test and generate a query. The system does not recognise the characteristic 1COLUMN.
    Other terms
    Query, condition, COB_PRO
    Reason and Prerequisites
    This problem is caused by a program error.
    Solution
    SAP NetWeaver 2004s BI
               Import Support Package 10 for SAP NetWeaver 2004s BI (BI Patch 10 or SAPKW70010) into your BI system. The Support Package is available once Note 914304 "SAPBINews BI 7.0 Support Package 10", which describes this Support Package in more detail, has been released for customers.
    In urgent cases, you can implement the correction instructions.
    You must first implement Notes 932065, 935140, 948389, 964580 and 969846, which provide information about transaction SNOTE. Otherwise, problems and syntax errors may occur when you deimplement some notes.

Maybe you are looking for

  • Inutilização SEFAZ BA  NF-e 3.10

    Boa tarde a todos, Estamos tentando inutilizar algumas notas em homologação para a sefaz BA (3.10), está voltando o status 999 do sefaz, mas não está atualizando este código 999 na J_1BNFE... e as notas estão ficando com status inicial.. Gostaria de

  • Windows 7 not booting after memory upgrade ProBook 6540b

    Hi HP Probook 6540b Windows 7 Professional 64bit Currently, I have 2x2GB of RAM and I want to upgrade it to 2x4GB. After replacing the 2GB sticks with the new 4 GB sticks, the notebook does not start anymore. I bought the right kind with right speed

  • Database link using problem

    Hi all, I have created database link using following code. CREATE DATABASE LINK mydb CONNECT TO system IDENTIFIED BY o USING 'mydb' After created this database link, I tried to access the table 'emp' from 'mydb' database. so, I was given select * fro

  • How To Make Surrou

    Hi, I have the Creative Sound Blaster Audigy SE installed onto my PC with Windows XP Home. I also have a set of Altec Lansing 5. Surround Speakers. I have plugged it all in and got it all set up, but I still only hear from the front speakers. I had t

  • Tcode for plant address in different languages

    Hello All, Need a small n quick help from you all... Can anyone of u give me transaction that provides plant address in <b>different languages..</b> I could see config for plants maintenance but could not find its address in different languages... Th