Query of Queries syntax issue

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Query of Queries syntax issue

    I have query 1 which has a list of names and query 2 which has ratings for the
    names. Every rating from query 2 has a name in query 1, but not every name
    from query 1 has a rating in query 2. I need to make a query of queries that
    will result in a list of the suppliers from query 1 that do not have a rating
    in query 2. I tried to do a left outer join, but syntax wouldnt allow it. I
    also tried to use "not in", but that is not allowed in a query of a query
    either. I just need to find a way to get the ones that do have a rating and
    the ones that dont in a query with their respective names in either one query
    or two. Any help would be appreciated. Thanks.

    T McDizzle Guest

  2. Similar Questions and Discussions

    1. Query of Queries
      I think that we're using 5 on both environments (not checked that though - they shouldn't be different anyway)... It seems that i've fixed it......
    2. Query Of Queries syntax error
      Hello I am running a Query of Queries and I'm getting the following error: Query Of Queries syntax error. Encountered "Section" at line 0, column...
    3. query of queries with avg()
      cfmx 6.1 when i use avg() in a query of queries it rounds the results (actually rounds results down)...so i'm wondering if i am doing this...
    4. Coldfusion MX 6.1 Query of Queries issue
      does any1 know if mx7 has fixed the query of queries runtime error issue which became apparant in mx6.1, where ColdFusion seemed not able to...
    5. Query of Queries on query New type query
      In CF5 we have a page that creates a query, using queryNew and querySetCell and the like, we then used dbtype="query" and gave it's name so we could...
  3. #2

    Default Re: Query of Queries syntax issue

    You mean to say that something like this is not supported in Q of Q?

    select some fields from query1
    where name not in (#QuotedValueList(query2.rating)#)


    Dan Bracuk Guest

  4. #3

    Default Re: Query of Queries syntax issue

    I have resolved the issue finally. Thank you very much.
    T McDizzle Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139