What Russ wrote regarding your parameters table.

I've not got an SQL server box booted up to check, but the equivalent of 
the following sort of thing works fine in MySQL:

SELECT dbo.tbl_stock.stockID, dbo.tbl_stockItems.stockItemID,
dbo.tbl_stockItems.projected
FROM dbo.tbl_stock INNER JOIN
dbo.tbl_stockItems ON dbo.tbl_stock.stockID =
dbo.tbl_stockItems.stockID
INNER JOIN dbo.tbl_parameters ON dbo.tbl_parameters.someKey = 'some value'
where stockID > 0 AND
 (dbo.tbl_parameters.someField != '#thisValue#' OR stockitems.Projected > 0)

As long as your parameters table join condition only ever matches one 
record, you should be fine.


-- 
Pete Jordan
Horus Web Engineering Ltd
90 Belvoir Street
Hull HU5 3LR
p: 01482 446471
m: 07973 725120


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344817
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to