I'm working on another large search, different project. I had columns with lists, I've since moved them to a look up table. Here's my query and the error I get.
SELECT P.id, P.Number, P.TheYear, P.Price, P.ShortDesc, P.LongDesc, P.Status, P.width, P.height, P.Weight, (Select Type FROM TypeLookup WHERE PotteryIDFK = 27 AND TypeIDFK = 1) AS Category, (Select Type FROM TypeLookup WHERE PotteryIDFK = 27 AND TypeIDFK = 3) AS ClayBody, (Select Type FROM TypeLookup WHERE PotteryIDFK = 27 AND TypeIDFK = 5) AS glaze, (Select Type FROM TypeLookup WHERE PotteryIDFK = 27 AND TypeIDFK = 2) AS fireKind, (Select Type FROM TypeLookup WHERE PotteryIDFK = 27 AND TypeIDFK = 4) AS color, P.price, P.Owner FROM Pottery P LEFT JOIN PotteryPictures PP ON P.ID = PP.PotteryID WHERE p.id = 27 Error: Server: Msg 512, Level 16, State 1, Line 1 Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression. I know enough SQL to get by but I've met my match with nested queries and such. Thanks -- John Wilker Writer/Web Consultant www.johnwilker.com / www.red-omega.com "The measure of success is not whether you have a tough problem to deal with, but whether it's the same problem you had last year." ~John Foster Dulles, Former US Sec. of State. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226969 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

