RE: Query of Queries date comparison

2007-07-30 Thread Ben Nadel
om: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: Monday, July 30, 2007 10:48 AM To: CF-Talk Subject: Re: Query of Queries date comparison . and yes, since you are actually working with strings, not dates, you do need quotes in WHERE date > '#DateFormat

Re: Query of Queries date comparison

2007-07-30 Thread Claude Schneegans
and yes, since you are actually working with strings, not dates, you do need quotes in WHERE date > '#DateFormat(Now(),"/mm/dd")#' -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam t

Re: Query of Queries date comparison

2007-07-30 Thread Claude Schneegans
>>I would like to run a query on this query where it finds only the records where the date is greater than today. You cannot compare dates if they are stored in American format. Use QuerySetCell(event, "date", 2007/07/28, 1) Instead: always with mask "/mm/dd" Then WHERE date > #DateFormat(

Re: Query of Queries date comparison

2007-07-30 Thread Ben Doom
event >WHERE date > #DateFormat(Now(),"mm/dd/")# > > > However I get an error returned > > "Query Of Queries syntax error. > Encountered "date. Incorrect conditional expression, Expected one of > [like|null|between|in|comparison] condition,

Re: Query of Queries date comparison

2007-07-30 Thread Mark Lewis
Oh sorry, I only just got everyone else's responses through, thank you to you guys for your time too. Much appreciated, Mark ~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now h

Re: Query of Queries date comparison

2007-07-30 Thread Mark Lewis
Gualtiero and Dave thanks for your help I have resolved the issue with both your tips. Thank you for your time again Mark > "Date" is possibly(probably) a reserved word? Even if it isn't, your test > will fail when the year rolls over - you should test /mm/dd. And I > think you might nee

RE: Query of Queries date comparison

2007-07-30 Thread Ben Nadel
fied Advanced ColdFusion MX7 Developer www.bennadel.com Need ColdFusion Help? www.bennadel.com/ask-ben/ -Original Message- From: Mark Lewis [mailto:[EMAIL PROTECTED] Sent: Monday, July 30, 2007 7:43 AM To: CF-Talk Subject: Query of Queries date comparison Hi, Wondered if someone could advise on

Re: Query of Queries date comparison

2007-07-30 Thread AJ Mercer
following... > > >SELECT * >FROM event > WHERE date > #DateFormat(Now(),"mm/dd/")# > > > However I get an error returned > > "Query Of Queries syntax error. > Encountered "date. Incorrect conditional expression, Expected

RE: Query of Queries date comparison

2007-07-30 Thread Dave Francis
Original Message- From: Mark Lewis [mailto:[EMAIL PROTECTED] Sent: Monday, July 30, 2007 7:43 AM To: CF-Talk Subject: Query of Queries date comparison Hi, Wondered if someone could advise on this problem I am having. I have created a query as shown below... I would like to run a

Re: Query of Queries date comparison

2007-07-30 Thread Gualtiero Sappa
You can try using data object instead of a string formatted as a date. I think the column in your query is of type string. Bye Gualtiero - Original Message - From: "Mark Lewis" <[EMAIL PROTECTED]> To: "CF-Talk" Sent: Monday, July 30, 2007 1:43 PM Subj

Query of Queries date comparison

2007-07-30 Thread Mark Lewis
event WHERE date > #DateFormat(Now(),"mm/dd/")# However I get an error returned "Query Of Queries syntax error. Encountered "date. Incorrect conditional expression, Expected one of [like|null|between|in|comparison] condition, " Does this mean I cannot use this

RE: query of queries question

2007-06-29 Thread Peterson, Chris
I would cache your initial result, and build a set of filters that are applied to it each time the user updates their filter. So, you would have cachedQuery as your initial base search, then filteredQuery that you would not cache but would always be the result of a QoQ of your cached query with up

query of queries question

2007-06-28 Thread Les Mizzell
I've not really needed to use a query of queries before, so here's a stupid question to be sure it's what I need The first set of query results comes from a search form. After the results are returned and displayed, I need to be able to refine that search based on a sp

Query of Queries

2007-05-03 Thread ally mccluskey
Hi everyone, I really need some help with the following problem: We are upgrading our system from CF 5 to MX 7, and i have a query of queries problem. My attached code is giving me this error: The following information is meant for the website developer for debugging purposes. Error

Re: Is there an alternative to Query of Queries that works?

2007-03-20 Thread Tim Claremont
Arg. Thanks Jochem. That did it. > If you want to combine queries you need UNION, not a JOIN. > Jochem ~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/prod

RE: INNER/LEFT Joins in query of queries?

2007-03-20 Thread Ian Skinner
do so in a QofQ manner. -Original Message- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 20, 2007 10:14 AM To: CF-Talk Subject: RE: INNER/LEFT Joins in query of queries? > And one just uses the JOIN keyword, don't use 'INNER' Sorry? What d

RE: INNER/LEFT Joins in query of queries?

2007-03-20 Thread Andy Matthews
> And one just uses the JOIN keyword, don't use 'INNER' Sorry? What do you mean by this? -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 20, 2007 12:11 PM To: CF-Talk Subject: RE: INNER/LEFT Joins in query of queries? My first ques

RE: INNER/LEFT Joins in query of queries?

2007-03-20 Thread Andy Matthews
update for those of you who care. -Original Message- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 20, 2007 12:03 PM To: CF-Talk Subject: INNER/LEFT Joins in query of queries? I'm continuing work on my Basecamp API integration and have a question. Basecamp returns

RE: INNER/LEFT Joins in query of queries?

2007-03-20 Thread Ian Skinner
My first question is can anyone confirm if QoQ allows joining? My second question is what's the syntax? Here's my SQL (pretty vanilla): Yes, but IIRC only inner joins, no left or right joins. And one just uses the JOIN keyword, don't use 'INNER' Confidentiality Notice: This message including an

INNER/LEFT Joins in query of queries?

2007-03-20 Thread Andy Matthews
I'm continuing work on my Basecamp API integration and have a question. Basecamp returns XML, which I am converting into a query object in certain cases. My goal is to convert the XML returned by several methods into a query, which I can then join using query of queries. So I have two qu

Re: Is there an alternative to Query of Queries that works?

2007-03-20 Thread Jochem van Dieten
Tim Claremont wrote: > > The following ain't working. I get a record count of 2 for the first query > and 1 for the second query. The third query returns the two records from the > first query, and leaves off the results from the second query. > > It never combines the results of the two querie

Is there an alternative to Query of Queries that works?

2007-03-20 Thread Tim Claremont
I am trying to run a query that combines the result of two other queries. The two other queries come from two separate databases. I thought I could use query of queries, as the name implies, but I must be missing something. Two tables. One contains internal appointments. One contains

RE: Query of Queries Question

2007-02-26 Thread Dave Phillips
B character and in my circumstance it works well because I'm comparing URLs and they don't contain tab characters. Hope this helps someone else who runs into the same thing! Dave -Original Message- From: Ben Nadel [mailto:[EMAIL PROTECTED] Sent: Monday, February 26, 2007 10:36 A

RE: Query of Queries Question

2007-02-26 Thread Ben Nadel
ote. .. Ben Nadel Certified Advanced ColdFusion MX7 Developer www.bennadel.com Need ColdFusion Help? www.bennadel.com/ask-ben/ -Original Message- From: Dave Phillips [mailto:[EMAIL PROTECTED] Sent: Monday, February 26, 2007 11:32 AM To: CF-Talk Subject: Query of Queri

Query of Queries Question

2007-02-26 Thread Dave Phillips
Hi, Anyone know how to force a LIKE comparison in a QofQ query to look for literals of the following special characters: % _ [ ] ^ All of the above are characters used in a LIKE comparison, but my string has several of them in it, so I need to 'escape' them somehow. I'm on MX 6.1. Thanks!

Re: Query of Queries Problem with JDBC

2007-01-24 Thread Jerky San Pedro
Hello Jochem, The error I am getting is that ColdFusion MX gets an error executing Query of Queries. Well, here's my testing code: --- SELECT a.* FROMstatscountries a JOIN( SELECT isocode

Re: Query of Queries Problem with JDBC

2007-01-24 Thread Jochem van Dieten
L 8.1 and connected CFMX using the > recommended JDBC3 and JDBC2, each in alternate trials. Both trials > issued a query of queries (QofQ) error, which I heard of is inherent > in FC4. With that, I removed PostgreSQL 8.1 and downgraded to 7.4 and > used the recommended JDBC for 7.4. It

Re: Query of Queries Problem with JDBC

2007-01-23 Thread Jerky San Pedro
Thanks, then. I guess I'd better stick to 7.4 and MX for the mean time. >> 2. Has anyone encountered this? What did you do? > >I haven't encountered this. But there are a couple of things I would >suggest. > >First, have you considered upgrading to CFMX 7.0.2? > >Second, have you considered upgrad

RE: Query of Queries Problem with JDBC

2007-01-23 Thread Dave Watts
> 2. Has anyone encountered this? What did you do? I haven't encountered this. But there are a couple of things I would suggest. First, have you considered upgrading to CFMX 7.0.2? Second, have you considered upgrading the JVM? You should be able to upgrade to a later 1.4.2 JVM. > 3. How will y

Query of Queries Problem with JDBC

2007-01-23 Thread Jerky San Pedro
installer. My OS is FC4, and I just can't do any Query of Queries (which is a bad thing because the CFMX debugger uses it, and some module of my webapp's, use it too). In short, in this setup Query of Queries was impossible. I couldn't find anything helpful from Adobe or anywhere from the

Re: Query of Queries question

2007-01-05 Thread Jon Gunnip
rote: > Does anyone know if it's possible to extract a 'subset' of records in a query > utilizing Query of Queries? Basically I want to do something like this: > > > SELECT * > FROM qSomeQuery > WHERE currentRow >= 21 AND currentRow < 41 &

RE: Query of Queries question

2007-01-05 Thread Snake
Or even easier, without the loop. SELECT * FROM qMyQuery WHERE id IN (#list_id#) -- Russ -Original Message- From: Terry Sta. Maria [mailto:[EMAIL PROTECTED] Sent: 05 January 2007 20:52 To: CF-Talk Subject: Re: Query of Queries question You don't necessarily

Re: Query of Queries question

2007-01-05 Thread Terry Sta . Maria
You don't necessarily have to create a query from scratch. Instead, if there is a column (with a simple datatype) that uniquely identifies each row, this can be done with a list and a query of queries. If qMyQuery.id is such a column, then you can get those all into a

Re: Query of Queries question

2007-01-05 Thread Dave Phillips
The query is not coming from a DB. It is actually coming from a CFSEARCH tag, so unfortunately, I can't use this method. >not sure what DB you're using.. but with Oracle you can do this in a subquery >select * from >( >select rownum as rn, n.* >From navmenu n >) >where rn >= 5 and rn <= 7 > > >

Re: Query of Queries question

2007-01-05 Thread Greg Morphis
x27;subset' of records in a query > utilizing Query of Queries? Basically I want to do something like this: > > > SELECT * > FROM qSomeQuery > WHERE currentRow >= 21 AND currentRow < 41 > ORDERY BY LastName > > > Of course, this doesn'

Re: Query of Queries question

2007-01-05 Thread Jacob Munson
Does the result /have/ to be a query? Could you make a structure instead, using your cfoutput method? That should be pretty quick. On 1/5/07, Dave Phillips <[EMAIL PROTECTED]> wrote: > Does anyone know if it's possible to extract a 'subset' of records in a query >

Query of Queries question

2007-01-05 Thread Dave Phillips
Does anyone know if it's possible to extract a 'subset' of records in a query utilizing Query of Queries? Basically I want to do something like this: SELECT * FROM qSomeQuery WHERE currentRow >= 21 AND currentRow < 41 ORDERY BY LastName Of course, this

Re: Error on Query of Queries

2006-09-22 Thread RichL
You're welcome...glad it helped On 9/22/06, Selvakumar Selvaraj <[EMAIL PROTECTED]> wrote: > >Selva are you manually creating the first query by using querynew() etc? > > > >there is something on this page that may or may not apply for you: > >http://www.houseoffusion.com/groups/CF-Talk/thread.cfm

Re: Error on Query of Queries

2006-09-22 Thread Selvakumar Selvaraj
>Selva are you manually creating the first query by using querynew() etc? > >there is something on this page that may or may not apply for you: >http://www.houseoffusion.com/groups/CF-Talk/thread.cfm/threadid:17237 > > >On 9/22/06, Selvakumar Selvaraj <[EMAIL PROTECTED]> wrote: >> Hi RichL, The li

Re: Error on Query of Queries

2006-09-22 Thread RichL
IL >from >MailQuery > > But it gives an error: > > Unsupported Numeric type conversion in Query of Queries. > > Please help to solve this issue. > Thanks in advance. > Selva > >

Error on Query of Queries

2006-09-22 Thread Selvakumar Selvaraj
error: Unsupported Numeric type conversion in Query of Queries. Please help to solve this issue. Thanks in advance. Selva ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion

Query of Queries type cast error

2006-09-05 Thread Ben Nadel
Hey all, I was just working on some query of queries code that used a manually value-modified query when I got this error: Error casting an object of type to an incompatible type. This usually indicates a programming error in Java, although it could also mean you have tried to use a foreign

RE: Query of Queries - showing all entries from DB1

2006-08-19 Thread Roberto Perez
At 09:29 AM 8/18/2006, Kevin Roche wrote: >I think its just a matter of: > >1/ Do an Inner Join with QonQ > >2/ Do a QonQ query on the left hand table that creates an exact similar >result set with null entries for any right table fields and omits any rows >from the first query. > >3/ Do a QonQ wh

RE: Query of Queries - showing all entries from DB1

2006-08-18 Thread Kevin Roche
problems with this if the results of 1 are large and can't be converted quickly into a list. Kevin -Original Message- From: Roberto Perez [mailto:[EMAIL PROTECTED] Sent: 18 August 2006 12:58 To: CF-Talk Subject: RE: Query of Queries - showing all entries from DB1 At 07:30 AM 8/18

Re: Query of Queries - showing all entries from DB1

2006-08-18 Thread James Holmes
I was going to suggest a union, so that link you found is the way to go IMO. On 8/18/06, Roberto Perez <[EMAIL PROTECTED]> wrote: > I found a link to a "fake left outer join" script at > http://instantbadger.blogspot.com/2006/07/faking-left-outer-join-in-query-of.html > > A left outer join sound

RE: Query of Queries - showing all entries from DB1

2006-08-18 Thread Roberto Perez
At 07:30 AM 8/18/2006, you wrote: >I think with a query of queries, you can do a left outer join using "*=" >syntax: > >SELECT > * >FROM > table1, > table2 >WHERE > table1.id *= table2.fkey > >I AM NOT SURE OF THIS. But

RE: Query of Queries - showing all entries from DB1

2006-08-18 Thread Ben Nadel
I think with a query of queries, you can do a left outer join using "*=" syntax: SELECT * FROM table1, table2 WHERE table1.id *= table2.fkey I AM NOT SURE OF THIS. But I think I read it somewhere. The "*=" says select all records from left. C

Query of Queries - showing all entries from DB1

2006-08-17 Thread Roberto Perez
Hi all, I have a query of queries that brings Region information from DB1, and CityName and Customer information from DB2. The query looks like this: SELECT listRegions.regionID AS AregionID,listRegions.region AS Aregion, listCities.regionID AS BregionID,listCities.cityName AS BcityName

RE: Can't use dot-notation variables in Query of Queries?

2006-06-22 Thread Everett, Al \(NIH/NIGMS\) [C]
Ah, hadn't considered that. Thanks. -Original Message- From: Ben Nadel [mailto:[EMAIL PROTECTED] Sent: Thursday, June 22, 2006 10:59 AM To: CF-Talk Subject: RE: Can't use dot-notation variables in Query of Queries? I had the same problem. Local is a keyword in SQL...

Re: Can't use dot-notation variables in Query of Queries?

2006-06-22 Thread Nick Tong - TalkWebSolutions.co.uk
is local inside your method? On 22/06/06, Everett, Al (NIH/NIGMS) [C] <[EMAIL PROTECTED]> wrote: > In my CFCs, I like to put > > > > at the top, and use "local" as if it were a private variable scope. > > I needed to do a query of query, and the query I wanted to use was in > one of those "local"

RE: Can't use dot-notation variables in Query of Queries?

2006-06-22 Thread Ben Nadel
ation variables in Query of Queries? In my CFCs, I like to put at the top, and use "local" as if it were a private variable scope. I needed to do a query of query, and the query I wanted to use was in one of those "local" variables. Inside a , I had: SELECT

Can't use dot-notation variables in Query of Queries?

2006-06-22 Thread Everett, Al \(NIH/NIGMS\) [C]
In my CFCs, I like to put at the top, and use "local" as if it were a private variable scope. I needed to do a query of query, and the query I wanted to use was in one of those "local" variables. Inside a , I had: SELECT * FROM local.qAllAppls WHERE ML_RPT_HDR_ID=#ML_RPT_HDR_I

Re: Query of Queries

2006-05-12 Thread Rick Root
d the title of the thread to "SOLVED: Query of Queries" and Michael's software picked it up as a new thread (pssst, hey michael - consider taking "SOLVED: " into consideration) Yeah, I tried that! =) Rick

Re: Query of Queries

2006-05-12 Thread Brian Rinaldi
AIL PROTECTED]> wrote: > > Oops, I was thinking of when I use cf functions on the right side of a > where clause. :\ > > > -Original Message- > > From: Rick Root [mailto:[EMAIL PROTECTED] > > Sent: Friday, May 12, 2006 11:18 AM > > To: CF-Talk > &

RE: Query of Queries

2006-05-12 Thread Munson, Jacob
Oops, I was thinking of when I use cf functions on the right side of a where clause. :\ > -Original Message- > From: Rick Root [mailto:[EMAIL PROTECTED] > Sent: Friday, May 12, 2006 11:18 AM > To: CF-Talk > Subject: Re: Query of Queries > > Munson, Jacob wrote:

Re: Query of Queries

2006-05-12 Thread Rick Root
Munson, Jacob wrote: > Try using the val() function. val is a coldfusion function, not a SQL function. you can't use val() anymore than you can use lcase() or chr() in a query of queries. Rick ~| Messa

SOLVED: Query of Queries

2006-05-12 Thread Rick Root
SOLVED... I got it to give me a different error which led me to a posting on ExpertsExchange which mentions that "cast" is actually a valid function to use in query of queries. http://livedocs.macromedia.com/coldfusion/7/htmldocs/1270.htm#1182700 this page describes the need to c

RE: Query of Queries

2006-05-12 Thread Mark A Kruger
Why not CAST? Select SUM(CAST(option_price AS DECIMAL) * QUANTITY) as merch_charge -Original Message- From: Rick Root [mailto:[EMAIL PROTECTED] Sent: Friday, May 12, 2006 11:53 AM To: CF-Talk Subject: Re: Query of Queries I ran this query and got a different error: select

RE: Query of Queries

2006-05-12 Thread Ben Nadel
boyfriends who have great skills." - Napoleon Dynamite -Original Message- From: Rick Root [mailto:[EMAIL PROTECTED] Sent: Friday, May 12, 2006 12:48 PM To: CF-Talk Subject: Re: Query of Queries Ben Nadel wrote: > Do any parts of the query work? Meaning, If you run with just the > f

RE: Query of Queries

2006-05-12 Thread Munson, Jacob
Try using the val() function. > -Original Message- > From: Rick Root [mailto:[EMAIL PROTECTED] > Sent: Friday, May 12, 2006 10:53 AM > > I ran this query and got a different error: > > select > SUM((OPTION_PRICE+0)) AS MERCH_CHARGE > FROM contents > > Cannot

RE: Query of Queries

2006-05-12 Thread Mark A Kruger
Rick, What happens when you just do "quantity + option_price" -Mark -Original Message- From: Rick Root [mailto:[EMAIL PROTECTED] Sent: Friday, May 12, 2006 11:48 AM To: CF-Talk Subject: Re: Query of Queries Ben Nadel wrote: > Do any parts of the query work? Meaning, If

Re: Query of Queries

2006-05-12 Thread Rick Root
I ran this query and got a different error: select SUM((OPTION_PRICE+0)) AS MERCH_CHARGE FROM contents Cannot mix types "VARCHAR" and "BIGINT" in a "+" binary operation so it looks like for some reason, coldfusion things "OPTION_PRICE" is a varchar, even though t

Re: Query of Queries

2006-05-12 Thread Rick Root
Ben Nadel wrote: > Do any parts of the query work? Meaning, If you run with just the first SUM > directive does it work? Does it work if you do not do the "*" in the second > SUM? Let's see if we can narrow it down to exactly what is breaking? It is definately this one causing the problem: select

Re: Query of Queries

2006-05-12 Thread Josh Nathanson
" Sent: Friday, May 12, 2006 8:47 AM Subject: Re: Query of Queries > Anyone else got any ideas on this? "contents" is a regular query result > set, not anything made by QueryNew()... and the columns in question are > both numeric columns (quantity is an integer and option

RE: Query of Queries

2006-05-12 Thread Munson, Jacob
ts" is a regular > query result > set, not anything made by QueryNew()... and the columns in > question are > both numeric columns (quantity is an integer and option_price is a > decimal(10,2)... mysql database) > > Rick > > Rick Root wrote: > > I'm

RE: Query of Queries

2006-05-12 Thread Ben Nadel
Rick Root [mailto:[EMAIL PROTECTED] Sent: Friday, May 12, 2006 11:47 AM To: CF-Talk Subject: Re: Query of Queries Anyone else got any ideas on this? "contents" is a regular query result set, not anything made by QueryNew()... and the columns in question are both numeric columns (quantity

Re: Query of Queries

2006-05-12 Thread Rick Root
#x27;m getting the following error: > > Query Of Queries runtime error. Cannot apply the binary numeric > operator [*|/] on a non numeric type > > When running the following query of queries: > > select > sum(QUANTITY) AS QUANTITY, > SUM(QUANTI

Re: Query of Queries

2006-05-12 Thread Michael Dinowitz
ot;You know, like nunchuck skills, bowhunting skills, computer hacking > skills... Girls only want boyfriends who have great skills." > - Napoleon Dynamite > -Original Message- > From: Michael Dinowitz [mailto:[EMAIL PROTECTED] > Sent: Friday, May 12, 2006 9:42 AM >

Re: Query of Queries

2006-05-12 Thread Rick Root
th fields are numeric fields. Rick > -Original Message- > From: Rick Root [mailto:[EMAIL PROTECTED] > Sent: Friday, May 12, 2006 9:31 AM > To: CF-Talk > Subject: Query of Queries > > I'm getting the following error: > > Query Of Queries runtime error. C

RE: Query of Queries

2006-05-12 Thread Ben Nadel
only want boyfriends who have great skills." - Napoleon Dynamite -Original Message- From: Michael Dinowitz [mailto:[EMAIL PROTECTED] Sent: Friday, May 12, 2006 9:42 AM To: CF-Talk Subject: Re: Query of Queries When creating a query using QueryNew() you can add an optional second attribut

Re: Query of Queries

2006-05-12 Thread Michael Dinowitz
gt; skills... Girls only want boyfriends who have great skills." > - Napoleon Dynamite > -Original Message- > From: Rick Root [mailto:[EMAIL PROTECTED] > Sent: Friday, May 12, 2006 9:31 AM > To: CF-Talk > Subject: Query of Queries > > I'm getting the following erro

RE: Query of Queries

2006-05-12 Thread Ben Nadel
PROTECTED] Sent: Friday, May 12, 2006 9:31 AM To: CF-Talk Subject: Query of Queries I'm getting the following error: Query Of Queries runtime error. Cannot apply the binary numeric operator [*|/] on a non numeric type When running the following query of queries: select s

Query of Queries

2006-05-12 Thread Rick Root
I'm getting the following error: Query Of Queries runtime error. Cannot apply the binary numeric operator [*|/] on a non numeric type When running the following query of queries: select sum(QUANTITY) AS QUANTITY, SUM(QUANTITY*OPTION_PRIC

RE: Query of Queries

2006-03-31 Thread Ben Nadel
, NY 10001 212.691.1134 x 14 212.691.3477 fax www.nylontechnology.com Sanders: Lightspeed too slow? Helmet: Yes we'll have to go right to ludacris speed. -Original Message- From: Paul Giesenhagen [mailto:[EMAIL PROTECTED] Sent: Friday, March 31, 2006 1:44 PM To: CF-Talk Subject: Query of Queri

RE: Query of Queries

2006-03-31 Thread Mike Klostermeyer
By chance is one or more of the possible values of code a number? Mike -Original Message- From: Paul Giesenhagen [mailto:[EMAIL PROTECTED] Sent: Friday, March 31, 2006 12:44 PM To: CF-Talk Subject: Query of Queries I don't use QofQ much and am having some troubles that maybe so

Query of Queries

2006-03-31 Thread Paul Giesenhagen
I don't use QofQ much and am having some troubles that maybe someone can help with. I am building a query called getShipping that populates code, description, rate. I am then running a query of queries checking on the selected rate. SELECT code,description,rate FROM getShi

Re: Is this illegal in query of queries?

2006-03-13 Thread Johnny Le
Thanks, everyone. I just re-write the statement without the use of subquery. The statement is actually a lot simpler than with the subquery. (SELECT USERID, HOMEADDR AS ADDRESS FROM QURYUSERS WHERE NOT HOMEADDR IS NULL) UNION (SELECT USERID, BUSADDR AS ADDRESS FROM QURYUSERS WHERE HOMEADDR IS N

Re: Is this illegal in query of queries?

2006-03-13 Thread S . Isaac Dealey
> against the database. If you read the notes on QofQ, > you'll see that performance really lags on complex > operations. >> Does query of queries allow sub queries? I get this >> error: >> >> Query Of Queries syntax error. >> Encountered "USE

Re: Is this illegal in query of queries?

2006-03-11 Thread James Holmes
Subqueries are not supported in QoQ. On 3/12/06, Robert Munn <[EMAIL PROTECTED]> wrote: > I don't see anything about support for subqueries, I would be surprised if > they were supported. Even if they were, I would seriously re-think using a > QofQ instead of operating against the database. If y

Re: Is this illegal in query of queries?

2006-03-11 Thread Robert Munn
operations. > Does query of queries allow sub queries? I get this error: > > Query Of Queries syntax error. > Encountered "USERID NOT IN ( SELECT. Incorrect conditional expression, > Expected one of [like|null|between|in|comparison] condition, > > When I tried to run

Is this illegal in query of queries?

2006-03-11 Thread Johnny Le
Does query of queries allow sub queries? I get this error: Query Of Queries syntax error. Encountered "USERID NOT IN ( SELECT. Incorrect conditional expression, Expected one of [like|null|between|in|comparison] condition, When I tried to run this statement: (SELECT USERID, HOMEADDR AS AD

Re: Query of Queries and GROUP - problem

2006-03-09 Thread Roberto Perez
>When you figure out the specs on the production server, be sure to post - >because I've never had this problem and it this is a new issue with 7 (we're >not there yet), we're going to be in for a world of hurt. > Turned out it was an issue with CF5. The server was a W2K server with IIS 5 and C

Re: Query of Queries and GROUP - problem

2006-03-06 Thread S . Isaac Dealey
Incidentally, you can use [] to escape reserved words in query of queries. I've had to do that on a few occasions, and I made sure when I implemented my locale-specific query sorting function that it escaped the column names being passed in this way since I couldn't know that it wouldn

Re: Query of Queries and GROUP - problem

2006-03-06 Thread Roberto Perez
I would bet that if you just > aliased the region field and grouped by it, it would STILL work on > both your dev box and the other. :0) > Mmm... no, I aliased and "unaliased" (if that word exists) one by one all the columns in different combinations each time (in Group alone, in Group and

Re: Query of Queries and GROUP - problem

2006-03-06 Thread rhymes with 'loud'
My guess is that "Region" is a reserved word *somewhere* between CF, the OS, the web server...something. That's probably why aliasing the field names fixed the problem. In fact, I would bet that if you just aliased the region field and grouped by it, it would STILL work on both your dev box and

Re: Query of Queries and GROUP - problem

2006-03-06 Thread Deanna Schneider
11:14 AM 3/4/2006, I myself wrote: > > >I tried an alias, but in the end, it would be the same thing (i.e., > >the alias would point back to the original master query) ... > > > Ok, it is working now. The solution was: > > - use an alias for each column in the query o

Re: Query of Queries and GROUP - problem

2006-03-04 Thread Roberto Perez
At 11:14 AM 3/4/2006, I myself wrote: >I tried an alias, but in the end, it would be the same thing (i.e., >the alias would point back to the original master query) ... Ok, it is working now. The solution was: - use an alias for each column in the query of queries - do not use the alias

Re: Query of Queries and GROUP - use CFLOOP?

2006-03-04 Thread Roberto Perez
At 10:37 AM 3/4/2006, Jochem van Dieten wrote: > > > > Regarding the CFOUTPUT GROUP issue with query of queries, is it > > feasible to convert the output below to cfloop's? > > > > >Something like: > > > > Thanks, I was trying loops with th

Re: Query of Queries and GROUP - problem

2006-03-04 Thread Roberto Perez
At 08:45 PM 3/3/2006, I myself wrote: >Does anyone know, off the top of their heads, if a GROUP command in >the output of a query of queries has server-specific issues? I did more digging and this is what I found: when I do a ColumnList on my desktop, I get a list like this: cityID,

Re: Query of Queries and GROUP - use CFLOOP?

2006-03-04 Thread Jochem van Dieten
Roberto Perez wrote: > > Regarding the CFOUTPUT GROUP issue with query of queries, is it > feasible to convert the output below to cfloop's? What I have is: > > (cfouptut group=region) > > Region 1 > (cfoutput group=city) > City1 >

Query of Queries and GROUP - use CFLOOP?

2006-03-04 Thread Roberto Perez
Hi, Regarding the CFOUTPUT GROUP issue with query of queries, is it feasible to convert the output below to cfloop's? What I have is: (cfouptut group=region) Region 1 (cfoutput group=city) City1 (cfoutput) cl

Query of Queries and GROUP - problem

2006-03-03 Thread Roberto Perez
Hi all, Does anyone know, off the top of their heads, if a GROUP command in the output of a query of queries has server-specific issues? I'm displaying the results of a query of queries using GROUP in the cfoutput tag: It works fine on my desktop (developer server, MX6), but when I u

Re: Query of Queries (QoQ) performance question

2005-11-26 Thread James Holmes
It seems as if that's one area where they may be a benefit (try it and see) - another may be if you had a large, complex query with many joins that took a long time to execute - once that dataset is in memory it may be quicker to extract smaller subsets via QoQ. Of course it may not; if you use bin

Re: Query of Queries (QoQ) performance question

2005-11-25 Thread Billy Jamme
So by that rational only unindexed and non-sequential columns, such as a text field, is where QoQs would offer performance increases? >I'm not too surprised in this case. The original query just pulls >everything from the table. The QoQ has to go through that whole >recordset and find the matchi

Re: Query of Queries (QoQ) performance question

2005-11-25 Thread James Holmes
I'm not too surprised in this case. The original query just pulls everything from the table. The QoQ has to go through that whole recordset and find the matching record(s), with no index to follow as would be the case if the DB were doing it. On 11/25/05, Billy Jamme <[EMAIL PROTECTED]> wrote: > S

Re: Query of Queries (QoQ) performance question

2005-11-24 Thread Billy Jamme
ent: Friday, 25 November 2005 4:16 p.m. >To: CF-Talk >Subject: Query of Queries (QoQ) performance question > >Hi all, > >I'm wondering if someone can explain to me how to properly utilize Query >of Queries (QoQ) to gain the maximum amount of performance. > >Here'

RE: Query of Queries (QoQ) performance question

2005-11-24 Thread Matthew Walker
If your initial "Query" query was very complicated then using QoQ to extract subsets would probably perform better. -Original Message- From: Billy Jamme [mailto:[EMAIL PROTECTED] Sent: Friday, 25 November 2005 4:16 p.m. To: CF-Talk Subject: Query of Queries (QoQ) performanc

Query of Queries (QoQ) performance question

2005-11-24 Thread Billy Jamme
Hi all, I'm wondering if someone can explain to me how to properly utilize Query of Queries (QoQ) to gain the maximum amount of performance. Here's a code example.. Select ID, name From TempTable Select ID, Name

RE: Query of Queries Subquery

2005-11-09 Thread Matthew Walker
AIL PROTECTED] Sent: Thursday, 10 November 2005 11:31 a.m. To: CF-Talk Subject: Query of Queries Subquery I'm having trouble doing a subquery using a query of queries. Is this even possible or am I doing something wrong. I have the simplified code below. Thanks. SELECTZip FROM

RE: Query of Queries Subquery

2005-11-09 Thread Adrian Lynch
:[EMAIL PROTECTED] Sent: 09 November 2005 22:28 To: CF-Talk Subject: RE: Query of Queries Subquery Sad but true... You'll have to run a third QoQ to filter it. ...:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Adrian Lynch [mailto:[

<    1   2   3   >