select ProductID,ProductName,ImagePath,Designer,SalePrice,Price, GRoupID,PreOrder,0 as LC,(select top 1 TypeID from mss_Types where TypeID in (select typeid from mss_types where [sign]='DESIGNERS') and TypeID in (select TypeID from mss_Index where ProductID=cache_products.ProductID)) AS DesignerID from cache_Products where (publishdate < getdate() or publishdate is null) and 1=1 and exists (select top 1 1 from mss_index where typeid=1 and productid=cache_Products.productid) and exists (select top 1 1 from mss_index where typeid=14 and productid=cache_Products.productid) and exists (select top 1 1 from mss_index where typeid=237 and productid=cache_Products.productid) order by PublishDate desc
A beanie is not just a beanie. When you're wearing a hat, the stakes can seem high. It's hard to tune out questions like Do I look like I have a freakishly small head? Or, at the other extreme, Do I look like a Smurf? So, to help you ...
MORE