Query of Queries Runtime error

I have a query pulled from an XML file, with a column that
contains mixed numeric and alphanumeric strings, like 103, 112,
A12,
etc.
When running a QofQ on this query, I get this error:
Query Of Queries runtime error.
Can't convert the string A1 to java type LONG
Apparently, according to a livedocs comment I found here
http://tinyurl.com/y24qda
=====
if the column's value in the first row of the recordset is
something that is all numeric, like: 123456 When an all-numeric
value
like this is encountered as the first value, CF assumes that
ALL values in that column are numeric... thus, it errors out if it
comes accross a record containing both numbers and letters,
since a mix of letters and numbers will be considered a string.
=====
Is there any known way around this?
Michael Evangelista
Evangelista Design
www.mredesign.com

Yes, running CFmx7... didnt stop to think this might be
different in each, but found something to that effect last night...
also, Dan's link gave me a clue... thanks.
Michael Evangelista
Evangelista Design
www.mredesign.com
"Adam Cameron" <[email protected]> wrote in message
news:[email protected]..
>> Ok.. will do, thanks
>
> Note that the advice Dan gives is specific to CFMX7,
whereas it seems you
> have been looking at the CFMX6 documentation... which
version of CF are you
> running?
>
> --
> Adam

Similar Messages

  • Can't find answer to Query Of Queries runtime error

    Not only I browsed this forum but also googled this problem but unfortunnately I have no luck in finding the answer.
    All I did was writing this simple query:
    <cfquery name="test" dbtype="query">
    select SSN,BirthDate from myquery where SSN <> '' OR BirthDate <> ''
    </cfquery>
    and I got this error:
    Query Of Queries runtime error.
    Comparison exception while executing <>.
    Unsupported Type Comparison Exception: The <> operator does not support comparison between the following types:
    Left hand side expression type = "DOUBLE".
    Right hand side expression type = "STRING".
    I tried the following and did not work either, still got the same error.
    <cfquery name="test" dbtype="query"> 
    select SSN,BirthDate from myquery
    where SSN <> <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value=""/>  
    OR BirthDate <> <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value=""/></cfquery>
    Has someone ever encountered the same problem and know how to solve it?

    HELP ! ! !  Going into testing soon. I need this to work to get correct report results ! ! ! !
    My issue seems similar to the one under discussion and the reply from lawhite01 caught my eye. Can you roll my issue into this discussion?
    This is a 2 parter. The second part is the QoQ part, but the 1st part has a line in the query that is similar to the QoQ one and it uses the same data. Part 1 also throws an error.
    PART # 1.
    I'm trying to use a query table created through QueryNew and then query it.
    I need multiple columns in the query table I create:
    <cfscript>
            tot_AllCurrentDraftListing = QueryNew("AnnounceNum, JP_PDLoc, JP_JS_Title, JP_JS, JP_KW_1, JP_JobTitle, JP_Open, JP_Close, JP_CloseType, JP_CloseName, JP_PosNeed, JP_DirectHire, JP_Desc, JP_Draft, JP_Archived, JP_State, JP_AreaName, JP_AreaID, JP_AreaAlias, JP_Fac_SU, JP_Fac_Facility, JP_FAC_ID, JP_Grade1, JP_sal_low1, JP_sal_high1, JP_Grade2, JP_sal_low2, JP_sal_high2, JP_Grade3, JP_sal_low3, JP_sal_high3, JP_Grade4, JP_sal_low4, JP_sal_high4, JP_Grade5, JP_sal_low5, JP_sal_high5, JP_Posted, JP_TypeHire, JP_HRemail");
        </cfscript>
    Then I populate all the cells of the query table.
    Then I set up to use the created query table.
    I do this first:
        <cfquery name="qAltPostID" datasource="#at_datasource#">
             SELECT AltPoster, fk_Job_AnnounceNum
             from JOB_JPContacts
             Where AltJPContactType = 'AltPosterID'
             and AltPoster = '#session.IHSUID#'
             </cfquery>
    Then, in my first query using the created query, I expect to need to choose from multiple values, so I'm using this line in the query (this is NOT a QoQ query):
                and AnnounceNum IN (<cfqueryparam cfsqltype="CF_SQL_varchar" value="#ValueList(qAltPostID.fk_Job_AnnounceNum)#">)
    I've also tried:
                   and AnnounceNum IN (#ValueList(qAltPostID.fk_Job_AnnounceNum)#)   
    and:
                   and JOB_AnnounceNum IN
                    SELECT fk_Job_AnnounceNum
                    from JOB_JPContacts
                    Where AltJPContactType = 'AltPosterID'
                    and AltPoster = '#session.IHSUID#'
    ERROR is: one record should return. I get 0.
    PART # 2: Here's the QoQ part.
    I get the error:
    Query Of Queries runtime error.
    Comparison exception while executing IN.
    Unsupported Type Comparison Exception: The IN operator does not support comparison between the following types:
    Left hand side expression type = "LONG".
    Right hand side expression type = "STRING".
    A tutorial I found gave an example using only one column for this part of the fix:
         tot_AllCurrentDraftListing = QueryNew("AnnounceNum", "CF_SQL_VARCHAR")
    How would I set up the query with the datatype when I'm using multiple columns:
    <cfscript>
            tot_AllCurrentDraftListing = QueryNew("AnnounceNum, JP_PDLoc, JP_JS_Title, JP_JS, JP_KW_1, JP_JobTitle, JP_Open, JP_Close, JP_CloseType, JP_CloseName, JP_PosNeed, JP_DirectHire, JP_Desc, JP_Draft, JP_Archived, JP_State, JP_AreaName, JP_AreaID, JP_AreaAlias, JP_Fac_SU, JP_Fac_Facility, JP_FAC_ID, JP_Grade1, JP_sal_low1, JP_sal_high1, JP_Grade2, JP_sal_low2, JP_sal_high2, JP_Grade3, JP_sal_low3, JP_sal_high3, JP_Grade4, JP_sal_low4, JP_sal_high4, JP_Grade5, JP_sal_low5, JP_sal_high5, JP_Posted, JP_TypeHire, JP_HRemail");
        </cfscript>
    I used this code after all the cells contained values and before running my QoQ query:
            <cfloop index="intID" from="1" to="#tot_AllCurrentDraftListing.recordcount#" step="1">
                <cfset tot_AllCurrentDraftListing["AnnounceNum"] [intID] = JavaCast("string", intID) />
            </cfloop>
              Is that correct?
    Thanks.
    Whoever can help me with this should be awarded extra points ! ! ! !

  • Query Of Queries syntax error.

    Hi all,
    I have the following query:
    <cfquery name="agent" datasource="datasourcename">
    SELECT * FROM quotes where status = 'Pending'
    <cfif isDefined("form.agent")>
    AND agent = '#FORM.agent#'
    </cfif>
    </cfquery>
    Then, I have the following query of that query
    <cfquery name="totalvalue" dbtype="query">
    SELECT SUM(value) as total FROM agent
    </cfquery>
    however I get the following error:
    Query Of Queries syntax error.
    Encountered "SUM ( value. Incorrect Select List,
    on line 20 which is:
    <cfquery name="totalvalue" dbtype="query">
    now i'm sure this is identical to what ive used before but
    getting the error. the totals query works fine when querying the
    database direct, only got this error when I changed it to query the
    master query.
    i appreciate any help in advance, as no matter how much i
    stare at it I can't see whats wrong!

    I believe that
    value is a reserved word that is probably causing your
    current error. I would rename this column, or alias it in your
    original query. Also, I would add WHERE value IS NOT NULL to your
    Q-of-Q to cover your NULLs.
    Phil

  • BI Stats Queries runtime error

    Hi Folks,
    i am new to BI Stats. we have installed and tested and tranported everything to production. but now the queries on 0TCT_VC01,
    0TCT_VC02 are giving errors in quality and production. in Dev everything is working fine.
    the other queries on 0TCT_MCA1 (in dev,QA,Prod)are working fine.
    its showing the error cant read the data from the infoprovider 0TCT_VC01 and there is no data source assigned to 0TCT_VC01.
    Now i activated the direct access to the data source in quality for 0TCT_VC01. Now its giving the same error cant read the data from infoprovider 0TCT_VC01. and time exceeded to read the data.
    So please guide me how can i solve this issue. and also please let me know where the problem is located and is there any settings i need to give anywhere ..plz let me know clearly..
    is there any problem with the tranporting..?
    your help will be appreciated greatly.
    Thanks,
    Ashok

    hi Shashank,
    Thanks for your response. now i can able to execute the reports but the report "Number of Executions per BI Application Object 0TCT_MCA1_Q0142" is showing the values for those records which are not assigned "infoprovider used"."infoprovider type".
    this is a standard report i am using. why this is happening.
    it shows the report is not meaningful. for the other records which its displaying the infoprovider name and type are displaying "0" for all the keyfigures.
    so i have created the same report and excluded the # (not assigned values) for this report all the keyfigure values are null its showing. is there any way to get the data for those reocrds.
    thanks,
    Ashok

  • SAP Query and runtime error CREATE_OBJECT_CLASS_NOT_FOUND

    Dear ABAP gurous,
    I have created a query connected to an infoset. It worked fine. When I made a minor change to the infoset (checked, saved and generated afterwards) I couldn't run the query. Now, the problem is, when I run the query, the ABAP runtime error occurs:
    Runtime Errors         CREATE_OBJECT_CLASS_NOT_FOUND
    Except.                CX_SY_CREATE_OBJECT_ERROR
    Can somebody tell me what causes the problem? Did I miss to do something after introducing this minor change to the infoset?
    Thank you in advance and regards
    Rafal Kosinski

    In the infoset I had tables join (FEBKO+T001) and additional field group. For the field group I defined a field for which a code was created (a function module call). It worked for this setup.
    Then, I just made a change in the code: in the function module call, I changed
    sy-datum to febko-azdat for parameter DATE of the function module.

  • Runtime error using range table in select query

    I have to select tcodes from table tstc, based on the entries in ust12,
    the entries in ust12-von and ust12-bis, these contains wild charcters also,  and i have to selct all the tcodes  from von to bis.
    so ia m preparing a range table for the entries in ust12, and querying table tstc, then i am getting a runtime error with following description.
    'If the problem occurred because an excessively large table was used
    in an IN itab construct, you can use FOR ALL ENTRIES instead.'
    but how can i use FOR ALL ENTRIES here, because if von = A* and bis = AB*,then i ahve to read all the entries from AAAA till ABZZ (may be something like this),
    is there any way to write this query, with out runtime error.
    there are total 15000 entries in ust12, i am preparing range table for 3000 entries each and querying tstc.
    Thanks in advance
    Best Regards
    Amarender Reddy B

    Hi,
    first write a select on ust12 based on ust12-von and ust12-bis.
    eg: select von bis from ust12 into table gt_ust12
                               where von LIKE 'A%'
                                   and bis LIKE 'AB%'.
    now write another select for tstc for all entries in gt_ust12...
    Hope it helps
    Regards,
    Pavan

  • Problem using DECODE() function with a Query of Queries

    I
    posted
    on my blog about an issue I was having trying to use the PL/SQL
    DECODE() function with a Coldfusion Query of Queries. This function
    works fine when you query a database for information. However, when
    you query another query, it seems that CF doesn't recognize it. I
    got errors stating that it found a left parenthesis where it
    expected a FROM key word. Here is a simplified version of what I am
    trying to do:
    quote:
    <!--- Simulated query; similar to what I was calling from
    my database --->
    <cfscript>
    qOriginal = queryNew("Name,Email,CountryCode",
    "VarChar,VarChar,VarChar");
    newRow = queryAddRow(qOriginal, 5);
    querySetCell(qOriginal, "Name", "Joe", 1);
    querySetCell(qOriginal, "Email", "[email protected]", 1);
    querySetCell(qOriginal, "CountryCode", "AMER", 1);
    querySetCell(qOriginal, "Name", "Sally", 2);
    querySetCell(qOriginal, "Email", "[email protected]", 2);
    querySetCell(qOriginal, "CountryCode", "AMER", 2);
    querySetCell(qOriginal, "Name", "Bob", 3);
    querySetCell(qOriginal, "Email", "[email protected]", 3);
    querySetCell(qOriginal, "CountryCode", "ASIA", 3);
    querySetCell(qOriginal, "Name", "Mary", 4);
    querySetCell(qOriginal, "Email", "[email protected]", 4);
    querySetCell(qOriginal, "CountryCode", "EURO", 4);
    querySetCell(qOriginal, "Name", "John", 5);
    querySetCell(qOriginal, "Email", "[email protected]", 5);
    querySetCell(qOriginal, "CountryCode", "EURO", 5);
    </cfscript>
    <cfquery name="qCountries" dbtype="query">
    SELECT DISTINCT(CountryCode) AS CountryCode,
    DECODE(states, "AMER", "North America &amp; Canada",
    "EURO", "Europe &amp; Africa", "ASIA", "Japan &amp;
    Asia","") CountryName
    FROM qOriginal
    ORDER BY CountryCode
    </cfquery>
    <cfdump var="#qCountries#">
    <!--- ========== END OF CODE ========== --->
    So running this returned the following error:
    Query Of Queries syntax error.
    Encountered "(. Incorrect Select Statement, Expecting a
    'FROM', but encountered '(' instead, A select statement should have
    a 'FROM' construct.
    Does anybody know why this doesn't work? Is it just not
    supported? Please note that I have also tried to use the CASE()
    function instead of DECODE() and that resulted in basically the
    same error. For now I an looping over my distinct query with a
    switch statement and manually loading a new query with the data how
    I want it. But it would be a lot cleaner and less code to have the
    DECODE() to work. Thx!

    DECODE() is an Oracle function, not generic SQL. Q-of-Q is a
    very limited subset of SQL and lacks many functions and clauses
    available in standard SQL, especially what you may be used to using
    in your particular RDBMS.
    See
    Query
    of Queries user guide
    Phil

  • Query of queries disallows SQL right() function

    We're attempting to do a query of queries using the SQL
    right() function like this:
    select *
    from getresults
    where right([key],charindex('\',reverse([key]),1)-1) not in
    (#quotedvaluelist(getexcluded.file_name)#)
    We've even replaced that where clause with a much more simple
    where right([key])='m'
    just to make sure that it wasn't the nesting functions that
    were causing the problem.
    In either case, we get the error:
    Query of Queries syntax error.
    Encountered "right" at line 0, column 0. Incorrect
    conditional expression,
    Expected one of [like|null|between|in|comparison] condition,
    What SQL functions are disallowed from query of queries?
    Thanks,
    Kris

    Nasty stuff huh. Just happened to discover myself today that
    Left doesn't work. I'd suspect that Aggregate functions are the
    ONLY ones that will work. It would have been nice if they'd at
    least allowed CF vs DB functions in their own "database" language.
    BTW, also discovered that Count() returns Null rather than 0
    when there aren't any per your WHERE clause.

  • Bug in CF11 regarding Query of queries syntax?

    So I have decided to try CF11 because of an official outstanding CF10 bug.
    Once I installed CF11, I get an error when running code like this:
    <cfquery name="LOCAL.stat_questions" datasource="#APPLICATION.dsn#">
         SELECT     survey_questionID
         FROM     tbl_survey_questions
    </cfquery>
    <cfset LOCAL.this_statID = 1>
    <cfquery name="LOCAL.subset" dbtype="query">
         SELECT     survey_questionID
         FROM          [LOCAL].stat_questions
         WHERE     survey_questionID = <cfqueryparam cfsqltype="cf_sql_numeric" value="#LOCAL.this_statID#">
    </cfquery>
    The error I receive is: "Query Of Queries syntax error.
      Encountered ";. "
    If I remove the semi-colon... No error! Is this a bug, or was the semi-colon always bad, but just ignored?
    Thanks

    I just always put it in out of habit from typing out actual MySQL queries (non QoQ). Never was a problem and I always did it. Now running CF11... it requires fixing. Thought it was strange.
    I actually didn't even notice that the semi-colons weren't required in QoQ until I ran into this CF11 bug. I also notice the semi-colon isn't necessary for a MySQL query either in cfquery! Seems weird that it accepts them, but isn't required. Just ignores them?

  • Runtime Error: CREATE_OBJECT_CLASS_NOT_FOUND

    Dear Friends,
    My system is worked fine. But after Kernel Upgradation. I couldn't run the query. Now, the problem is, when I run the query, the ABAP runtime error occurs:
    Runtime Error        CREATE_OBJECT_CLASS_NOT_FOUND
    Exception              CX_SY_CREATE_OBJECT_ERROR
    CREATE OBJECT: Class "\CLASS=CL_IM_FI_PAYREF_BADI_010" could not be found.
    What happened?
    Error in ABAP application program.
    The current ABAP program "CL_EXIT_MASTER================CP"
    terminated because one of the
    statements could not be executed.
    This is probably due to an error in the ABAP program.
    Error analysis
    An exception occurred. This exception is dealt with in more detail below
    . The exception, which is assigned to the class 'CX_SY_CREATE_OBJECT_ERROR',
    was neither
    caught nor passed along using a RAISING clause, in the procedure
    "INSTANTIATE_IMP_CLASS" "(METHOD)"
    Since the caller of the procedure could not have expected this exception
    to occur, the running program was terminated.
    The reason for the exception is:
    The class entered dynamically at CREATE OBJECT
    ("\CLASS=CL_IM_FI_PAYREF_BADI_010") cannot be found,
    neither locally. nor as a global class in the system.
    Can somebody Please tell me the solution of this error.
    Thanks and Rrgards,
    Rahul Asthana

    Hello Friend,
    Thanks for your Answer.
    Friend i have tried it, but still i am facing same problem.
    Thanks and Regards,
    Rahul Asthana.
    Edited by: Arun Kamath on Feb 22, 2012 3:27 PM

  • Runtime error(Time limit exceeds)after executing select query

    Dear experts, whenever i executing the select query in this zprogram i am getting runtime error that time limit exceeds.i am using inner join and into table.after that also i am geetting error. how can i resolve it??
    SELECT LIKP~VBELN LIKP~WADAT_IST LIKP~VEHICLE_NO LIKP~TRNAME
              LIKP~VEHI_TYPE LIKP~LR_NO LIKP~ANZPK LIKP~W_BILL_NO
              LIKP~SEALNO1                                       " Seal NO1
              LIKP~SEALNO2                                       " Seal NO2
              LIPS~LFIMG
              VBRP~VBELN VBRP~VGBEL VBRP~MATNR VBRP~AUBEL VBRP~FKIMG
              VBAK~AUART
              VBRK~FKART VBRK~KNUMV VBRK~FKSTO
              FROM LIKP INNER JOIN LIPS ON LIKP~VBELN EQ LIPS~VBELN
                        INNER JOIN VBRP ON LIKP~VBELN EQ VBRP~VGBEL
                        INNER JOIN VBAK ON VBRP~AUBEL EQ VBAK~VBELN
                        INNER JOIN VBRK ON VBRP~VBELN EQ VBRK~VBELN
              INTO TABLE  I_FINAL_TEMP
              WHERE LIKP~VSTEL = '5100' AND
                 LIKP~WADAT_IST IN S_WADAT  AND
                    VBRP~AUBEL IN S_AUBEL AND
                    VBAK~AUART IN ('ZJOB','ZOR') AND
                    VBRK~FKART IN S_FKART AND
    *               VBRK~FKART IN ('ZF8','ZF2','ZS1') AND
                    VBRK~FKSTO NE 'X'.
    When I am debugging the select query.the cursor will not go to next step.after 15-20 minutes i am getting runtime error(time limit exceeds).
    how can i resolve it for that scenario??

    Looks like whole SD flow you trying to fetch in single query
    First you check the database statistic of these table are upto date in system ( Check with basis team )
    if this query was working fine earlier.
    Most of table involved are huge volume tables which queried with any primary key
    Any secondary index on created for LIKP on VSTEL WADET ?
    My suggestion would be split the selection queries and make use of primary or existing secondary index to fetch the desired result if possible. For testing purpose split the queries and find which is taking more time and which needs index by taking squel trace in ST05.
    Also take ST05 trace of this query in debugger ( New debugger -> special tool -> trace > ST05/SE30)

  • Portal runtime error while executing BI report through BEx Query designer

    I want to execute a query from query designer but when I execute it the following error occurs -
    Portal runtime error.
    An exception occurred while processing your request. Send the exception ID to your portal administrator.
    Exception ID: 04:30_30/04/11_0008_35740651
    Refer to the log file for details about this exception.
    I have checked log, the error displayig in log is,
    ACCESS ERROR: Authorization check for caller assignment to J2EE security role SAP_J2EE_Engine:administrator
    Kindly help me.
    regards
    nk

    Dear Friends
    I have the same with this problem
    Please help us to resolve this problem
    Thanks and best regards

  • Getting Runtime error while executing Query on Multiprovider

    Hi ALL,
    When i m executing a query on multiprovider it is giving me runtime error as:
    *Error Reading the data of the infoprovider
    An Exception with the type CX_SY_ARITHMATIC_OVERFLOW occured
    overflow in the operation.*
    I ran this query today morning also it ran successfully, now it is giving this error.
    Please help me.
    Thank you.
    REDDY

    Hi check
    http://sap.ittoolbox.com/groups/technical-functional/sap-basis/sapsys-000-compute_int_times_overflow-cx_sy_arithmetic_overflow-1704462
    Thanks
    Reddy

  • Runtime error in My Query

    HI!
    I created a abap query and added few additional fields with codes in them and tried running the query. When I run teh query with selections on my selection screen it runs well and gives me output correctly but when I run it open without any selection I geta  runtime error with following description.
    Short text
        Field symbol has not yet been assigned.
    __What happened?__    Error in the ABAP Application Program
        The current ABAP program "AQZZZSD=========ZSD_LISTOFFLST" had to be terminat
         because it has
        come across a statement that unfortunately cannot be executed.
    Error analysis    You attempted to access an unassigned field symbol
        (data segment 27).
        This error may occur if
        - You address a typed field symbol before it has been set with
          ASSIGN
        - You address a field symbol that pointed to the line of an
          internal table that was deleted
        - You address a field symbol that was previously reset using
          UNASSIGN or that pointed to a local field that no
          longer exists
        - You address a global function interface, although the
          respective function module is not active - that is, is
          not in the list of active calls. The list of active calls
          can be taken from this short dump.
    How to correct the error
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "GETWA_NOT_ASSIGNED" " "
    I am not sure why its running ok when I provide selection and it gives error when I ran it open.
    Thanks

    The code where it shows error :
    loop at gt_konv assigning <fs_konv>
       where kposn = vbrp-posnr
         and ( kschl = 'ZPRL' or kschl = 'ZWRO' or
               kschl = 'ZSPT' or kschl = 'ZWSU' or
               kschl = 'ZOTH' or kschl = 'ZQUA' or
               kschl = 'ZTAR' or kschl = 'ZCMD' ).
        add <fs_konv>-kwert to unitpr.
      endloop.
      unitpr = ( unitpr / vbrp-fkimg ).
      uomup = <fs_konv>-kmein.
      If lines( gt_konv ) gt 0.<<<<<<<<,<<<<<<<Runtime error point is here
      clear psagediff.
      IF ( PRICEDIFF <> '0.00' AND  LPRICE <> '0.00' ).
        PSAGEDIFF = ( PRICEDIFF / LPRICE ) * 100.
        else.
         PSAGEDIFF = '0.00'.
         endif.
         endif.
    * Logic in code section
      case v_pricetype.
        when '00'.
          pricetype = 'Others'.
        when '01'.
          pricetype = 'List'.
        when '02'.
          pricetype = 'Off-List'.
        when '03'.
          pricetype = 'No Price'.
      endcase.

  • Query Of Queries : Error When Trying To Fake Left Outer Join

    Hi there
    I am trying to replicate a left outer join, combining two query of queries using a method I located here
    However, I keep getting an error message..
    Here is the code I am using....
        <cfquery dbtype="query" name="qry">
                    SELECT *
                    FROM returnQry, returnQry2
                    WHERE returnQry.mediumImage = returnQry2.mediumImage
                    ORDER BY returnQry.name   
                </cfquery>
                <cfquery name="returnQry3" dbtype="#application.mx#">
                    SELECT *
                    FROM trackmeanings AS t
                </cfquery>      
               <cfquery dbtype="query" name="endQry">
                    SELECT name,nameRcd,mediumImage, COUNT(sMessage) AS comments
                    FROM qry, returnQry3
                    WHERE qry.name = returnQry3.sNameTrack
                    UNION
                    SELECT name,nameRcd,mediumImage, COUNT(sMessage) AS comments
                    FROM qry, returnQry3
                    WHERE #qry.name# NOT IN (#QuotedValueList(returnQry3.sNameTrack)#)
                    GROUP BY name,nameRcd,mediumImage
                </cfquery>
    When I try to use the query output in a page, i get the error message "Incorrect conditional expression,  Expected one of [like|null|between|in|comparison] condition"
    Would anyone have any ideas?
    Many thanks

    Actually , spoke a little too soon, my query now seems to be outputting duplicates when the value is found on both sides of the union, my group by clause doesnt seem to be eliminating them like it usually does.
    My SELECT code now reads
    <cfquery dbtype="query" name="endQry">
    SELECT name,nameRcd,mediumImage, COUNT(sMessage) AS comments
    FROM qry, returnQry3
    WHERE qry.name = returnQry3.sNameTrack
    GROUP BY name,nameRcd,mediumImage
    UNION
    SELECT name,nameRcd,mediumImage, 0 AS comments
    FROM qry
    WHERE qry.name NOT IN (<cfqueryparam
    value="#returnQry3.sNameTrack#"
    cfsqltype="cf_sql_varchar"
    list="yes"
    />)
    GROUP BY name,nameRcd,mediumImage
    ORDER BY name DESC
    </cfquery>
    and my ouput...is producing duplicates
    <cfoutput query="rc.qryTopTracks" group="name">
    #rc.qryTopTracks.name#
    </cfoutput>
    Would you have any idea of how to eliminate them here?  Thanks

Maybe you are looking for

  • How to show more than one image on my screen at same time?

    I recently upgraded to PS-CS4 from CS3 and notice that I can only view one image on my screen. Is there a way to view more than one image on the screen at the same time? I cannot seem to find a way to change this feature. Thanks, Richie

  • Help running a simple jsp file,Tomcat 5.0.16

    Hi, This question may be addressed many many times,but do reply. I have a Win xp operating system Installed Tomcat 5.0.16 in it. Next the directory structure PS : The sampleapp directory is outside the tomcat installation directory. E:/sampleapp | |

  • HFM 9.3.1 Install

    Hi Does anyone perhaps know if the HFM 9.3.1 upgrade and installation documentation is available for download somewhere? Thanks Herman

  • CS4 & Acrobat Pro Extended 9 updates not working.

    I just purchased a new HP Laptop running Win 8.1 64bit. After installing CS4 & Acrobat 9 I cannot get the Adobe Update manger to work. It either fails (crashes) or tells me there are no updates available. I tried installing a new version of update mg

  • OPA Data Source Connector failed to run on Linux server

    When I run data source connector for java on linux server using: java -Xms512m -Xmx512m -classpath "/usrfile/OPA/DataSourceConnector/lib/determinations-engine.jar:/usrfile/OPA/DataSourceConnector/lib/log4j-1.2.15.jar:/usrfile/OPA/DataSourceConnector/