Ask a Question related to Dreamweaver AppDev, Design and Development.
-
WebSlave #1
brain fart
I can not for the life of me remember how to do the following: I want my
recordset to display the following: SELECT * FROM INVENTORY WHERE TYPE = 'NEW'
AND SUBTYPE = 'CLASS A' OR SUBTYPE = 'CLASS B' OR SUBTYPE = 'CLASS C' When I
do this, it selects those subtypes, but it is pulling both 'New' & 'Used'.
Please advise. Also, is it bad coding to rename Repeat1 to something unique
like RepeatNEWINVENTORY?
WebSlave Guest
-
My tiny brain has melted
I have read through the help information supplied with Dreamweaver but I just dont get it. I have a website that is created on a remote server... -
Brain image - Difficult
I'm attempting to make a very difficult image. I want to create a brain. I would like it to be VERY realistic with all the texture. Does anyone have... -
HELP!!! Director is rotting my brain!
I'm sure I'm going about this the wrong way. I have a swf in the background that you view through a window. On different buttons it changes... -
ASP/SQL Syntax Brain FART!
Hey, could someone remind me how to do this? I want to select a client from TABLE1 where their sub_id is equal to 'O' or 1? For some reason I... -
Racking my Brain!
My site consits of several pages that are linked together to show samples of my work. From the homepage the user clicks "enter site" which opens a... -
Anthony Brown #2
Re: brain fart
SELECT * FROM INVENTORY WHERE TYPE = 'NEW'
AND SUBTYPE = 'CLASS A' OR TYPE = 'NEW' AND SUBTYPE = 'CLASS B' OR TYPE =
'NEW' AND SUBTYPE = 'CLASS C'
I think, but I haven't finished my morning coffee yet :-)
"WebSlave" <webforumsuser@macromedia.com> wrote in message
news:d19gu5$h1c$1@forums.macromedia.com...>I can not for the life of me remember how to do the following: I want my
> recordset to display the following: SELECT * FROM INVENTORY WHERE TYPE =
> 'NEW'
> AND SUBTYPE = 'CLASS A' OR SUBTYPE = 'CLASS B' OR SUBTYPE = 'CLASS C'
> When I
> do this, it selects those subtypes, but it is pulling both 'New' &
> 'Used'.
> Please advise. Also, is it bad coding to rename Repeat1 to something
> unique
> like RepeatNEWINVENTORY?
>
Anthony Brown Guest
-
middletree #3
Re: brain fart
As Anthony says, you have to specify the New part in each OR clause.
Also, this is off-subject, but you'll get better performance if you avoid
using the asterisk. Just name all the fields that you want in your SQL
statement.
"WebSlave" <webforumsuser@macromedia.com> wrote in message
news:d19gu5$h1c$1@forums.macromedia.com...'NEW'> I can not for the life of me remember how to do the following: I want my
> recordset to display the following: SELECT * FROM INVENTORY WHERE TYPE =When I> AND SUBTYPE = 'CLASS A' OR SUBTYPE = 'CLASS B' OR SUBTYPE = 'CLASS C''Used'.> do this, it selects those subtypes, but it is pulling both 'New' &unique> Please advise. Also, is it bad coding to rename Repeat1 to something> like RepeatNEWINVENTORY?
>
middletree Guest
-
Kevin Marshall #4
Re: brain fart
Try Enclosing the subtype selections in ()
SELECT * FROM INVENTORY WHERE TYPE = 'NEW' AND (SUBTYPE = 'CLASS A' OR
SUBTYPE = 'CLASS B' OR SUBTYPE = 'CLASS C')
--
Kevin Marshall
WebXeL.com Ltd
[url]http://www.webxel.com[/url]
ASP.NET Dreamweaver Extensions
[url]http://www.webxel-dw.co.uk[/url]
"WebSlave" <webforumsuser@macromedia.com> wrote in message
news:d19gu5$h1c$1@forums.macromedia.com...>I can not for the life of me remember how to do the following: I want my
> recordset to display the following: SELECT * FROM INVENTORY WHERE TYPE =
> 'NEW'
> AND SUBTYPE = 'CLASS A' OR SUBTYPE = 'CLASS B' OR SUBTYPE = 'CLASS C'
> When I
> do this, it selects those subtypes, but it is pulling both 'New' &
> 'Used'.
> Please advise. Also, is it bad coding to rename Repeat1 to something
> unique
> like RepeatNEWINVENTORY?
>
Kevin Marshall Guest



Reply With Quote

