RE: Query Problem

2006-12-29 Thread Bruce Sorge
Message- From: James Holmes [mailto:[EMAIL PROTECTED] Sent: Thursday, December 28, 2006 9:51 PM To: CF-Talk Subject: Re: Query Problem You have a query with 100 rows and you are trying to set a cell in row 1920. 1920 is greater than 100. On 12/29/06, Bruce Sorge [EMAIL PROTECTED] wrote: Hello. I

Re: Query Problem

2006-12-29 Thread James Holmes
it crated 2020 rows which sucked. Thanks -Original Message- From: James Holmes [mailto:[EMAIL PROTECTED] Sent: Thursday, December 28, 2006 9:51 PM To: CF-Talk Subject: Re: Query Problem You have a query with 100 rows and you are trying to set a cell in row 1920. 1920 is greater

Re: Query Problem

2006-12-29 Thread Bruce Sorge
: Query Problem You have a query with 100 rows and you are trying to set a cell in row 1920. 1920 is greater than 100. On 12/29/06, Bruce Sorge [EMAIL PROTECTED] wrote: Hello. I have these three queries that I am creating below. The first two work great, but the third one gives me

Re: Query Problem

2006-12-28 Thread James Holmes
You have a query with 100 rows and you are trying to set a cell in row 1920. 1920 is greater than 100. On 12/29/06, Bruce Sorge [EMAIL PROTECTED] wrote: Hello. I have these three queries that I am creating below. The first two work great, but the third one gives me the following error: The

Re: Query Problem

2006-11-06 Thread Doug Brown
Looks like you might need to add an additional field to your albums table. Then populate it with the artists id's that are associated with speccific albums. Also might want to add the same to your track table. albumid int(10) unsigned NOT NULL auto_increment, artistid int (10), albumtitle

RE: Query Problem

2006-11-06 Thread Bobby Hartsfield
06, 2006 7:37 AM To: CF-Talk Subject: Re: Query Problem Looks like you might need to add an additional field to your albums table. Then populate it with the artists id's that are associated with speccific albums. Also might want to add the same to your track table. albumid int(10) unsigned

RE: Query Problem

2006-11-06 Thread Bobby Hartsfield
Actually I think that would be a grouping issue (once you fixed the 'seletc' type)... and I hate 'GROUP BY' clauses... they get me every time! At the risk of being bashed for using 'IN'... try this select albumtitle, name, year from album, artist where albumid =

Re: Query Problem

2006-11-06 Thread Doug Brown
Actually, you should use a inner join on that, so not to return records you do not need. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered

Re: Query Problem

2006-11-06 Thread Steve Bryant
I tend to find that exists is very helpful for these situation (and reads like the english version of what I want). SELECT artistid,name FROMartist WHERE EXISTS ( SELECT artistid FROMtrack INNER JOIN artisttrack

RE: Query Problem

2006-11-06 Thread Bobby Hartsfield
- From: Doug Brown [mailto:[EMAIL PROTECTED] Sent: Monday, November 06, 2006 9:10 AM To: CF-Talk Subject: Re: Query Problem Actually, you should use a inner join on that, so not to return records you do not need. ~| Introducing

Re: Query Problem

2006-11-06 Thread Doug Brown
- Original Message - From: Bobby Hartsfield [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Monday, November 06, 2006 7:14 AM Subject: RE: Query Problem Im not sure which one you mean. The first one I posted DID use inner joins and the problem was of course returning the same

RE: Query Problem

2006-11-06 Thread Joshua Cyr
. Joshua -Original Message- From: Steve Bryant [mailto:[EMAIL PROTECTED] Sent: Monday, November 06, 2006 8:03 AM To: CF-Talk Subject: Re: Query Problem I tend to find that exists is very helpful for these situation (and reads like the english version of what I want). SELECT artistid,name

RE: Query Problem

2006-11-06 Thread Bobby Hartsfield
Ahh gotcha. Still hasn’t come through. Im sure you can see why I thought you meant mine thoguh ;-) cheers -Original Message- From: Doug Brown [mailto:[EMAIL PROTECTED] Sent: Monday, November 06, 2006 9:20 AM To: CF-Talk Subject: Re: Query Problem Weird. I had sent a query and it posted

Re: Query Problem

2006-11-06 Thread Craig Drabik
Use select distinct on the original query to eliminate duplicate records. I have a database of music CDs, something like: album - albumid int(10) unsigned NOT NULL auto_increment, albumtitle varchar(255), year smallint(5) unsigned track - trackid int(10) unsigned NOT

Re: Query Problem

2006-11-06 Thread Doug Brown
PROTECTED] Sent: Monday, November 06, 2006 7:37 AM To: CF-Talk Subject: Re: Query Problem Looks like you might need to add an additional field to your albums table. Then populate it with the artists id's that are associated with speccific albums. Also might want to add the same to your track

Re: Query Problem

2006-11-06 Thread Doug Brown
PROTECTED] Sent: Monday, November 06, 2006 7:37 AM To: CF-Talk Subject: Re: Query Problem Looks like you might need to add an additional field to your albums table. Then populate it with the artists id's that are associated with speccific albums. Also might want to add the same to your track

Re: Query problem with lists of values

2006-08-07 Thread Tom Chiverton
On Friday 04 August 2006 17:19, Kris Jones wrote: (which just doesn't work at all) It was meant to be in a loop. O(N), of course, but that's not so bad with only a few cats. Going with a linking table is probably the right way to go. Better performance too. Very, very, much the +1'ness :-)

Re: Query problem with lists of values

2006-08-07 Thread Casey Dougall
You can turn this SELECT catid FROM deep_images WHERE catid LIKE '#uid#' OR catid LIKE '#UID#,%' OR catid LIKE '%,#UID#' OR catid LIKE '%,#UID#,%' INTO this and it should do what your looking to do. SELECT catid FROM deep_images WHERE 0=0 AND (catid = '#uid#' OR

Re: Query problem with lists of values

2006-08-04 Thread Tom Chiverton
On Thursday 03 August 2006 18:43, Kris Jones wrote: SELECT catid FROM deep_images WHERE #uid# IN (catid) IN is evil. It will randomly stop working when you hit the db's limit for items in a string list. Which is not fun :-) If you must have comma lists rather than a more sensible layout, why

RE: Query problem with lists of values

2006-08-04 Thread Bobby Hartsfield
- From: Tom Chiverton [mailto:[EMAIL PROTECTED] Sent: Friday, August 04, 2006 9:30 AM To: CF-Talk Subject: Re: Query problem with lists of values On Thursday 03 August 2006 18:43, Kris Jones wrote: SELECT catid FROM deep_images WHERE #uid# IN (catid) IN is evil. It will randomly stop

Re: Query problem with lists of values

2006-08-04 Thread Kris Jones
but one item has entries of 15,16,30,49,50,52,75 and it is being put in a catecory that has the id of 2 there are lots of these that are behaving this way. any one think of a way to help with this? SELECT catid FROM deep_images WHERE #uid# IN (catid) IN is evil. It will randomly stop

RE: Query problem with lists of values

2006-08-03 Thread Ian Skinner
but one item has entries of 15,16,30,49,50,52,75 and it is being put in a category that has the id of 2 there are lots of these that are behaving this way. any one think of a way to help with this? This is happening of course because two of your like clauses catid LIKE '#uid#' AND catid LIKE

Re: Query problem with lists of values

2006-08-03 Thread Kris Jones
How about: SELECT catid FROM deep_images WHERE #uid# IN (catid) Cheers, Kris but one item has entries of 15,16,30,49,50,52,75 and it is being put in a category that has the id of 2 there are lots of these that are behaving this way. any one think of a way to help with this?

Re: Query problem with lists of values

2006-08-03 Thread Patrick Forsythe
that is kind of what I thought, but is there any way around this? This is happening of course because two of your like clauses catid LIKE '#uid#' AND catid LIKE '#uid#,' means that the 2 will match the 2 in '52,'. This is the difficulty with this kind of set up. -- Patrick Forsythe Tech

Re: Query problem with lists of values

2006-08-03 Thread Patrick Forsythe
Kris Jones wrote: How about: SELECT catid FROM deep_images WHERE #uid# IN (catid) Cheers, Kris I had tried that originally and sql server didn't like that much at all -- Patrick Forsythe Tech Support Smallville Communications http://www.toto.net Guter Rat ist teuer. --Unbekannt

RE: Query problem with lists of values

2006-08-03 Thread Josh Adams
Why don't you use a join table via which to associate your items and categories? Josh -Original Message- From: Patrick Forsythe [mailto:[EMAIL PROTECTED] Sent: Thursday, August 03, 2006 1:47 PM To: CF-Talk Subject: Re: Query problem with lists of values that is kind of what I thought

RE: Query problem with lists of values

2006-08-03 Thread Mark A Kruger
03, 2006 12:49 PM To: CF-Talk Subject: Re: Query problem with lists of values Kris Jones wrote: How about: SELECT catid FROM deep_images WHERE #uid# IN (catid) Cheers, Kris I had tried that originally and sql server didn't like that much at all -- Patrick Forsythe Tech Support Smallville

Re: Query problem with lists of values

2006-08-03 Thread Jim Wright
On 8/3/06, Mark A Kruger [EMAIL PROTECTED] wrote: Patrick, You can create a UDF that allows for list functions. Here's blog post on the topic. http://mkruger.cfwebtools.com/index.cfm?mode=entryentry=87616A7F-D611-F201- A72DB4B567CFA1F7 The UDF that Mark is blogging about looks like it

Re: Query problem with lists of values

2006-08-03 Thread Patrick Forsythe
the category information is in a seperate row these are only the uid s that are stored with the product. Jim Wright wrote: The UDF that Mark is blogging about looks like it will get you what you want, but do keep in mind that if you use a UDF like this in the WHERE clause, it will be executed

Re: Query problem with lists of values

2006-08-03 Thread Jim Wright
On 8/3/06, Patrick Forsythe [EMAIL PROTECTED] wrote: the category information is in a seperate row these are only the uid s that are stored with the product. Understood...but what you need is an intermediate table which links the two...something like... category table: uid description

RE: Query Problem - sorting

2006-03-10 Thread Dennis Powers
: Michael T. Tangorre [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 08, 2006 10:40 PM To: CF-Talk Subject: RE: Query Problem - sorting From: Dennis Powers [mailto:[EMAIL PROTECTED] SELECT FilesCategory.Cat_Name, Avg(Comments.Numeric1) AS Userrating, Count(Comments.Numeric1

RE: Query Problem - sorting

2006-03-08 Thread Michael T. Tangorre
From: Dennis Powers [mailto:[EMAIL PROTECTED] SELECT FilesCategory.Cat_Name, Avg(Comments.Numeric1) AS Userrating, Count(Comments.Numeric1) AS Responses FROM (FilesData LEFT JOIN Comments ON FilesData.ID = Comments.LinkID) LEFT JOIN FilesCategory ON

Re: query problem

2005-09-29 Thread daniel kessler
[empty string] is CF's way of saying NULL, since ColdFusion has not native NULL value. Thus your where clause should be WHERE Publication_Type IS NOT NULL didn't work, but this did. Interestingly, != NULL didn't work. It had to be IS NOT NULL I never would have gotten this. I was thinking

RE: query problem

2005-09-28 Thread Ian Skinner
[empty string] is CF's way of saying NULL, since ColdFusion has not native NULL value. Thus your where clause should be WHERE Publication_Type IS NOT NULL -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA C code. C code run. Run code run. Please! -

Re: query problem

2005-09-28 Thread Ryan Guill
not equals in sql is , that may help On 9/28/05, Daniel Kessler [EMAIL PROTECTED] wrote: I can't seem to see what is wrong with this query. I added the WHERE line and it comes up with no records returned. Without the WHERE, it comes up with two records, but one of them has publication_type

RE: query problem

2005-09-28 Thread Tangorre, Michael
From: Daniel Kessler [mailto:[EMAIL PROTECTED] CFQUERY NAME=the_type DATASOURCE=dpch select publication_type from publications where publication_type !='' group by publication_type /CFQuery If the field is NOT NULL try, where LEN(TRIM(publication_type)) == 0 *note...

Re: query problem

2005-09-28 Thread Claude Schneegans
In case the default value returned by the db is an empty string, you may need the belt and the suspenders: where NOT (publication_type IS NULL OR publication_type = '') -- ___ REUSE CODE! Use custom tags; See

Re: Query Problem - Brain Cloud

2005-08-05 Thread Doug Bedient
CAN YOU FIIP/FLOP VARIABLES AND DATA IN CF? This works in the SQL Query Analyzer. Is there a way to switch it to CF? When I run it I get the following error. [SQLServer JDBC Driver][SQLServer]Invalid column name 'DateFrom'. Because DateFrom is a passed variable. Select * RENTALS r Where NOT

Re: Query Problem - Brain Cloud

2005-08-04 Thread Doug Bedient
Impressive use of your noggin. Hopefully I can explain my problem a little better. I have changed my data import to create a date record for every night. Instead of the arrival date and number of nights. I can easily change back it this doesn't provide the results the best way. Below is some

Re: Query Problem - Brain Cloud

2005-07-29 Thread Chris Terrebonne
This looks like a good use of a Tally table. A Tally table is a table that contains just an ID field with records from 1 to 10,000 (you can use any upper bound you need). You can then join this table to generate queries based on ranges. To test, I created the following table: ID int

Re: Query Problem - Brain Cloud

2005-07-28 Thread Jennifer Larkin
Change it so it has an arrival date and a departure date? :D On 7/28/05, Doug Bedient [EMAIL PROTECTED] wrote: I have 2 tables, one lists properties and the other contains arrival dates and number of nights for those properties. The common variable is 'unitCode'. The search parameters

Re: Query Problem - Brain Cloud

2005-07-28 Thread Doug Bedient
I would still have dates between the arrival date and newly created departure date that would need to be handled somehow. Originally, I had looping set up to create a record for every date but it seemed like a lot of extra processing that shouldn't be required.

Re: Query Problem - Brain Cloud

2005-07-28 Thread Barney Boisvert
I don't think you can do it in a single SQL statement. At least not an efficient one. How about pull the list of reservations that overlap the desired dates, and then creating an array of dates (from arrival to departure), and then loop over the recordset and remove dates from the array that are

RE: Query Problem - Brain Cloud

2005-07-28 Thread Dave.Phillips
Can you not use the SQL operator BETWEEN? where thedate BETWEEN arrivaldate AND departuredate ? -Original Message- From: Doug Bedient [mailto:[EMAIL PROTECTED] Sent: Thursday, July 28, 2005 2:47 PM To: CF-Talk Subject: Re: Query Problem - Brain Cloud I would still have dates between

Re: Query Problem - Brain Cloud

2005-07-28 Thread Greg Morphis
Add a vacant field and check to see if vacant is 0 or 1 0 being not vacant and 1 being vacant? But the where clause would look something like Select * from task t WHERE TO_DATE('#arguments.new_to#','mm/dd/') = t.startDate AND TO_DATE('#arguments.new_from#','mm/dd/') = t.finishDate

RE: Query Problem - Brain Cloud

2005-07-28 Thread Ian Skinner
, July 28, 2005 11:47 AM To: CF-Talk Subject: Re: Query Problem - Brain Cloud I would still have dates between the arrival date and newly created departure date that would need to be handled somehow. Originally, I had looping set up to create a record for every date

Re: Query Problem - Brain Cloud

2005-07-28 Thread Jennifer Larkin
Something like this wouldn't handle them where arrivaldate = #arrivaldate# and departuredate = #departuredate# ? Maybe I don't understand what you are trying to do? On 7/28/05, Doug Bedient [EMAIL PROTECTED] wrote: I would still have dates between the arrival date and newly created departure

Re: Query Problem - Brain Cloud

2005-07-28 Thread Jennifer Larkin
? where thedate BETWEEN arrivaldate AND departuredate ? -Original Message- From: Doug Bedient [mailto:[EMAIL PROTECTED] Sent: Thursday, July 28, 2005 2:47 PM To: CF-Talk Subject: Re: Query Problem - Brain Cloud I would still have dates between the arrival date and newly created

Re: Query Problem - Brain Cloud

2005-07-28 Thread Barney Boisvert
here's a timeline in days (if you don't have fixed-width font, CP into something that does): 123456789 xxx reservation 1 xxx reservation 2 x reservation 3 q desired range there are two possible days available: 4 and 6. That's the problem he's trying to solve.

Re: Query Problem - Brain Cloud

2005-07-28 Thread Jeff Congdon
Then you need a reference table of dates, so you can query what IS NOT there. You can hit this table like this: select date from datetable where date BETWEEN x AND y and date NOT IN (select distinct date from reservation where date between x AND y) right? -jc Barney Boisvert wrote:

Re: Query Problem - Brain Cloud

2005-07-28 Thread Jochem van Dieten
Doug Bedient wrote: I have 2 tables, one lists properties and the other contains arrival dates and number of nights for those properties. The common variable is 'unitCode'. The search parameters provide an arrival date and departure date. My question. How would you use the arrival

RE: Query Problem.

2005-07-13 Thread James Smith
SELECT max(stockid) as stockid, data1, data2 FROM table HAVING data1 = 5 Unfortunately this is returning the following data StockID | Data1 | Data2 --- 3 | 5 | 2 Ie: the correct stockid and data1 but data2 from a diferent row!

Re: Query Problem.

2005-07-11 Thread Kevin Aebig
What RDBM are you using? Wouldn't this do it? -- MySQL SELECT * FROM table WHERE data1 = '5' ORDER BY DESC LIMIT 1 -- SQLServer SELECT Top 1 * FROM table WHERE data1 = '5' ORDER BY DESC - Original Message - From: James Smith [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com

RE: Query Problem.

2005-07-11 Thread James Smith
What RDBM are you using? Wouldn't this do it? -- MySQL SELECT * FROM table WHERE data1 = '5' ORDER BY DESC LIMIT 1 Unfortunately not. If you view the larger query you will get a better idea, and to explain the process... The query returns about 7500 records. AddedToFile is a flag

Re: Query Problem.

2005-07-11 Thread Jochem van Dieten
James Smith wrote: SELECT max(stockid) as stockid, data1, data2 FROM table HAVING data1 = 5 Unfortunately this is returning the following data StockID | Data1 | Data2 --- 3 | 5 | 2 Ie: the correct stockid and data1 but data2 from a diferent

Re: Query problem

2005-03-17 Thread Barney Boisvert
this sounds like it should do it for you, but perhaps I'm missing something SELECT memberID, max(paidThru) AS paidThru FROM someTableName ORDER BY memberID cheers, barneyb On Thu, 17 Mar 2005 22:03:03 -0500, Mark Leder [EMAIL PROTECTED] wrote: I have a table with two columns, memberID

RE: Query problem

2005-03-17 Thread Mark Leder
:[EMAIL PROTECTED] Sent: Thursday, March 17, 2005 10:00 PM To: CF-Talk Subject: Re: Query problem this sounds like it should do it for you, but perhaps I'm missing something SELECT memberID, max(paidThru) AS paidThru FROM someTableName ORDER BY memberID cheers, barneyb On Thu, 17 Mar 2005 22:03:03

Re: Query problem

2005-03-17 Thread Barney Boisvert
Whoops. Try this one. Meant 'group by' but typed 'order by'. Sorry about that. SELECT memberID, MAX(paidThru) AS paidThru FROM someTableName GROUP BY memberID cheers, barneyb On Thu, 17 Mar 2005 22:22:41 -0500, Mark Leder [EMAIL PROTECTED] wrote: Tried it, here's the error:

RE: Query problem

2005-03-17 Thread Mark Leder
That worked. Thanks Barney. Mark -Original Message- From: Barney Boisvert [mailto:[EMAIL PROTECTED] Sent: Thursday, March 17, 2005 10:26 PM To: CF-Talk Subject: Re: Query problem Whoops. Try this one. Meant 'group by' but typed 'order by'. Sorry about that. SELECT memberID, MAX

Re: Query Problem

2005-03-07 Thread Jared Rypka-Hauer - CMG, LLC
Ahh, the sound of yesterday, the delicious bouquet of simpler times, when I was younger, thinner, flexible, and spent my time in the pursuits of youth... Like sitting at my desk screaming WHY WON'T THIS EFFING THING WORK?!?!?!? Only to realize that I was making the most elemental of mistakes. A

RE: Query Problem

2005-03-06 Thread Andy Ousterhout
use CFQUERYPARAM value=#newMonth# cfsqltype=cf_sql_integer / for both -Original Message- From: Graham Pearson [mailto:[EMAIL PROTECTED] Sent: Sunday, March 06, 2005 4:16 PM To: CF-Talk Subject: Query Problem I am running into a problem which I have not ran into before. Below is my

RE: Query Problem

2005-03-06 Thread Adrian Lynch
Put hashes(pound signs) around your variables: Day(Status.EffectiveDate) = #variables.newDay# and without them the SQL reads as is e.g. a table named variables with a column named newDay. Ade -Original Message- From: Graham Pearson [mailto:[EMAIL PROTECTED] Sent: 06 March 2005 22:14

Re: Query problem

2004-10-07 Thread Thomas Chiverton
On Thursday 07 Oct 2004 11:22 am, James Smith wrote: To create the appropriate formatting but there are no such list functions in MySQL.Can anyone out there think of a way to do this? Loop over the query, and construct an array to use with queryAddColumn, such that each element in the array is

Re: Query problem

2004-10-07 Thread Michael Traher
how about SELECT sum(quantity) as TotalQuantity, RIGHT( '0' + SUBSTRING_INDEX(location , '.' , 1),2) as rack, RIGHT('0' + SUBSTRING_INDEX(SUBSTRING_INDEX(location , '.' , 2), '.' , -1),2) as shelf RIGHT( '0' + SUBSTRING_INDEX(location , '.' , -1),2) as box FROM stockquantities WHERE Quantity 0

RE: Query problem

2004-10-07 Thread James Smith
With the exception of the missing , after the shelf that works perfectly, thanks. -- Jay -Original Message- From: Michael Traher [mailto:[EMAIL PROTECTED] Sent: 07 October 2004 12:29 To: CF-Talk Subject: Re: Query problem how about SELECT sum(quantity) as TotalQuantity

Re: Query problem

2004-10-07 Thread Michael Traher
Traher [mailto:[EMAIL PROTECTED] Sent: 07 October 2004 12:29 To: CF-Talk Subject: Re: Query problem how about SELECT sum(quantity) as TotalQuantity, RIGHT( '0' + SUBSTRING_INDEX(location , '.' , 1),2) as rack, RIGHT('0' + SUBSTRING_INDEX(SUBSTRING_INDEX(location , '.' , 2

RE: Query problem

2004-10-07 Thread James Smith
-Original Message- From: Michael Traher [mailto:[EMAIL PROTECTED] Sent: 07 October 2004 15:04 To: CF-Talk Subject: Re: Query problem It would have spoilt all your fun if I hadn't made at least one mistake :-) On Thu, 7 Oct 2004 12:42:36 +0100, James Smith [EMAIL PROTECTED] wrote

Re: Query problem

2004-10-07 Thread Michael Traher
- From: Michael Traher [mailto:[EMAIL PROTECTED] Sent: 07 October 2004 15:04 To: CF-Talk Subject: Re: Query problem It would have spoilt all your fun if I hadn't made at least one mistake :-) On Thu, 7 Oct 2004 12:42:36 +0100, James Smith [EMAIL PROTECTED] wrote

RE: Query Problem

2004-10-03 Thread Matthew Walker
You can't use the alias in the WHERE clause -- you need to write the _expression_ again. Also, you'll probably need to CAST your productCode as an integer depending on your DBMS. Or perhaps simply do a string comparison and change the cfsqltype to cf_sql_varchar. _ From: Mark Leder

Re: query Problem

2004-08-07 Thread S . Isaac Dealey
TRANSFORM sum (dp.cantidad) as totalt select sum (dp.cantidad) as total, dp.idproducto as codigo from pedidos p, detallesdepedido dp where p.idpedido=dp.idpedido and p.mesenvio = 7 group by dp.idproducto PIVOT p.diaenvio In CFMX i can make a query like this, if i can how i do the ouput

Re: query problem

2003-02-26 Thread Bryan Stevenson
You could convert the single quotes in the string to ASCII or PreserveSingleQuotes() might work (been awhile so I'm not 100% sure on the preserve) Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED]

RE: query problem

2003-02-26 Thread Bryan F. Hogan
Use cfqueryparam then you won't have to worry about it anymore. Bryan F. Hogan Director of Internet Development Macromedia Certified ColdFusion MX Developer Digital Bay Media, Inc. 1-877-72DIGITAL

RE: Query Problem

2002-10-28 Thread Everett, Al
Instead of #IIf(Trim(form.confsent) EQ '', No, Yes)#, use #YesNoFormat(Trim(form.confsent) EQ '')# -Original Message- From: Jillian Carroll [mailto:jillian;koskie.com] Sent: Sunday, October 27, 2002 2:04 PM To: CF-Talk Subject: RE: Query Problem When I use cfqueryparam as you

Re: Query Problem

2002-10-27 Thread Jochem van Dieten
Jillian Carroll wrote: cfif #form.confsent# EQ ' ' cfquery name=adduser datasource=#DSN# UPDATE attendee SET confsent = NULL WHERE users_id = #FORM.users_id# /cfquery cfelse cfquery name=adduser datasource=#DSN# UPDATE attendee SET confsent =

RE: Query Problem

2002-10-27 Thread Jillian Carroll
When I use cfqueryparam as you specified below, I get this error: An error occurred while evaluating the expression: #IIf(Trim(form.confsent) EQ '', No, Yes)# Error near line 63, column 95. ~| Archives:

RE: Query Problem

2002-10-27 Thread Jillian Carroll
Subject: RE: Query Problem When I use cfqueryparam as you specified below, I get this error: An error occurred while evaluating the expression: #IIf(Trim(form.confsent) EQ '', No, Yes)# Error near line 63, column 95

Re: Query Problem

2002-10-27 Thread S . Isaac Dealey
Jillian Carroll wrote: cfif #form.confsent# EQ ' ' cfquery name=adduser datasource=#DSN# UPDATE attendee SET confsent = NULL WHERE users_id = #FORM.users_id# /cfquery cfelse cfquery name=adduser datasource=#DSN# UPDATE attendee SET confsent =

Re: Query Problem

2002-10-27 Thread S . Isaac Dealey
The query below doesn't work... the first clause in the CFIF works fine, but it gives me the error: Error while executing the query (non-fatal); ERROR: Relation form does not exist for the CFELSE portion. Incedentally, this _sounds_ to me like a bug. The syntax of the query certainly looks

RE: Query Problem

2002-10-27 Thread Jillian Carroll
Dealey [mailto:info;turnkey.to] Sent: Sunday, October 27, 2002 1:26 PM To: CF-Talk Subject: Re: Query Problem The query below doesn't work... the first clause in the CFIF works fine, but it gives me the error: Error while executing the query (non-fatal); ERROR: Relation form does not exist

Re: Query Problem

2002-10-27 Thread Jochem van Dieten
Jillian Carroll wrote: When I use cfqueryparam as you specified below, I get this error: An error occurred while evaluating the expression: #IIf(Trim(form.confsent) EQ '', No, Yes)# My mistake: #IIf(Trim(form.confsent) EQ '', DE(No), DE(Yes))# I think you might have to switch

Re: Query Problem

2002-10-27 Thread Jochem van Dieten
Jillian Carroll wrote: I'm going out of my mind with this one. I use the EXACT same code to do the initial entry of the user information and it works. It keeps telling me that Relation form does not exist... That leads me to believe one of two things... either it is looking in my

Re: Query Problem

2002-10-27 Thread Marius Milosav
, 2002 2:29 PM Subject: RE: Query Problem I'm going out of my mind with this one. I use the EXACT same code to do the initial entry of the user information and it works. It keeps telling me that Relation form does not exist... That leads me to believe one of two things... either it is looking

Re: Query Problem

2002-10-27 Thread S . Isaac Dealey
Jillian Carroll wrote: When I use cfqueryparam as you specified below, I get this error: An error occurred while evaluating the expression: #IIf(Trim(form.confsent) EQ '', No, Yes)# My mistake: #IIf(Trim(form.confsent) EQ '', DE(No), DE(Yes))# I think you might have to

Re: Query Problem

2002-10-27 Thread kkz
How about you replace it with this? cfquery name=adduser datasource=#DSN# UPDATE attendee SET confsent = cfqueryparam cfsqltype=cf_sql_varchar value=#form.confsent# null=#YesNoFormat(form.confsent EQ ' ')# WHERE users_id = cfqueryparam cfsqltype=cf_sql_integer

RE: Query Problem

2002-10-27 Thread Jillian Carroll
Thank you guys for your help... I'm FINALLY in business with this form! -Original Message- From: S. Isaac Dealey [mailto:info;turnkey.to] Sent: Sunday, October 27, 2002 1:53 PM To: CF-Talk Subject: Re: Query Problem Jillian Carroll wrote: When I use cfqueryparam as you specified

RE: Query Problem

2002-08-19 Thread Craig Dudley
You want to display the latest docs before a selection in the drop down? If so, why not just display the latest 5. Assumign your'e using SQL server, try this. cfquery name=q_news datasource=#REQUEST.dsn1# SELECT TOP 5 t_art_category.*, t_committees.*, t_articles.id_art, t_articles.art_title,

RE: Query Problem

2002-08-19 Thread Mark Leder
The only issue here is that the amount of articles could vary from month to month. Thanks, Mark -Original Message- From: Craig Dudley [mailto:[EMAIL PROTECTED]] Sent: Monday, August 19, 2002 7:56 AM To: CF-Talk Subject: RE: Query Problem You want to display the latest docs before

RE: Query Problem

2002-08-19 Thread Craig Dudley
August 2002 13:22 To: CF-Talk Subject: RE: Query Problem The only issue here is that the amount of articles could vary from month to month. Thanks, Mark -Original Message- From: Craig Dudley [mailto:[EMAIL PROTECTED]] Sent: Monday, August 19, 2002 7:56 AM To: CF-Talk Subject: RE: Query

RE: Query Problem

2002-04-30 Thread Paul Bowley
Try using single quotes around 'Parametric'. -Original Message- From: ronmyers [SMTP:[EMAIL PROTECTED]] Sent: 30 April 2002 14:41 To: CF-Talk Subject: Query Problem Can someone tell my why I am getting this error. If I take the WHERE line out it returns all the data just

RE: Query Problem

2002-04-30 Thread Jeff Brown
, April 30, 2002 9:52 AM To: CF-Talk Subject: RE: Query Problem Try using single quotes around 'Parametric'. -Original Message- From: ronmyers [SMTP:[EMAIL PROTECTED]] Sent: 30 April 2002 14:41 To: CF-Talk Subject: Query Problem Can someone tell my why I am getting this error

RE: Query Problem

2002-04-30 Thread ronmyers
Thanks it worked Getting up to early to see straight -Original Message- From: Paul Bowley [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 7:52 AM To: CF-Talk Subject: RE: Query Problem Try using single quotes around 'Parametric'. -Original Message- From: ronmyers

RE: query problem

2002-02-21 Thread Will Swain
All working nowthe delete date field was having a problem when no data was being added. Cheers Will -Original Message- From: Will Swain [mailto:[EMAIL PROTECTED]] Sent: 21 February 2002 11:30 To: CF-Talk Subject: query problem Hi all, Ok, having an annoying little problem, and

Re: query problem

2002-02-21 Thread Stephen Moretti
Will, Your date needs to be an ODBC Date. Use CreateODBCDate() on your Date form field and CreateODBCTime() on your Time form Field. Regards Stephen - Original Message - From: Will Swain [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Thursday, February 21, 2002 11:29 AM

RE: query problem

2002-02-21 Thread Will Swain
[mailto:[EMAIL PROTECTED]] Sent: 21 February 2002 12:42 To: CF-Talk Subject: Re: query problem Will, Your date needs to be an ODBC Date. Use CreateODBCDate() on your Date form field and CreateODBCTime() on your Time form Field. Regards Stephen - Original Message - From: Will Swain [EMAIL

RE: QUERY PROBLEM

2001-04-09 Thread Todd Stanley
Date is probably a date/time function. So your definition of 'today' needs to be a little more exact. My point being, you probably have the date (4/9/2001) stored as: 04/09/2001 00:00:00.000 and when you do the now() function Access is seeing that as 04/09/2001 15:30:29.001 which is actually

RE: QUERY PROBLEM

2001-04-09 Thread Truman Esmond III
Comparing dates are fun - here's a couple suggestions: -check your formatting of the date object you're comparing and format your where-clause date to be exactly the same format as appears in the DB (i.e. smalldate time, ODBC d/t obj. etc.); relying on the auto conversion within ODBC has yielded

RE: QUERY PROBLEM

2001-04-09 Thread brian
, April 09, 2001 3:24 PM To: CF-Talk Subject: RE: QUERY PROBLEM Comparing dates are fun - here's a couple suggestions: -check your formatting of the date object you're comparing and format your where-clause date to be exactly the same format as appears in the DB (i.e. smalldate time, ODBC d/t obj

RE: QUERY PROBLEM

2001-04-09 Thread Peter J. MacDonald
Order BY GDATE Thank You, Peter Peter J. MacDonald II Creative Computing, Inc. 100 Middle Street Lincoln, RI 02865 Phone: 401.727.0183 x123 Fax: 401.727.4998 Portable: 401.965.3661 E-MAIL: [EMAIL PROTECTED] Web Page: www.creatcomp.com -Original Message- From: [EMAIL PROTECTED]

Re: QUERY PROBLEM

2001-04-09 Thread kishore
Hi, The default format of date function is date with time. Ms-Access has also the same format. If you want to compare two date values, change the target value to default format and make the comparision. Like cfset today=Now() which is the default for both CF MS-Access. Now try with this default

Re: Query problem

2001-02-02 Thread Deanna L. Schneider
Will, Are you using access? ID is a reserved word, I think. So, number one would be to change the name of your field in the table. Also, is ID in members the same as id in fields? If so, you can do something like this: SELECTm.email, m.id FROMmembers m, main_details d WHERE

  1   2   >