I've been working on this all day yesterday, have read as much as I can on joins but still can't get this to work. I'm at my wits end here. It must be something simple but I'm just missing it.I basically have two tables. One that stores products, and one that stores there details. I'm trying to query both tables so that it shows ONLY one product, but lists their details (field: productdetail1) and their price (also in the details table).But right now I basically get one row for every single detail. And this is not what I want. I've tried outer joins, and they don't work either.This is what I have now:SELECT j.jewelry AS Expr1, p.price AS Expr2, p.ProductDetail1 AS Expr3, p.ProductDetailID AS Expr4, j.*FROM bodyart.jewelry j INNER JOIN bodyart.ProductDetails p ON p.ProductID = j.ProductIDWHERE (j.jewelry = N'tapers')
Any ideas of what I'm doing wrong?