Remove the parens and the second WHERE  from your where statement.  You
dont' need them.

WHERE live = 'YES' AND top = 'NO'

Dave


----- Original Message -----
From: "Jeff Fongemie" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, March 27, 2001 9:18 AM
Subject: Oracle Error 936 missing expression?? Query problem?


> Hello All,
>
> I have a simple query, for an oracle database and I keep getting an
> error message. What the heck is wrong with my query!
>
> <CFQUERY NAME="GetNews" DATASOURCE="#application.DSN#"> SELECT
> headline, news, blurb, date_entered, newsID, live, top
>  FROM news
> WHERE    (live = 'YES') and (WHERE top = 'NO')
>
> ORDER by date_entered  DESC
> </CFQUERY>
>
>   I've tried everything in there. It seems to be an error with syntax
>   and the WHERE line.
>
>   Any hints, clues or great answers are much appreciated!
>
> Best regards,
>  Jeff Fongemie                          mailto:[EMAIL PROTECTED]
> ------------------------
> Internet Guns For Hire
> (603) 356-0768
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to