product table in SQL tables:
Product:
ID,
Name
ProductImage
ID,
ProductID,
Image
I want to select an image in select query of Product I need first/last image of product1, first/last image of product2, etc
Something like:
select Product.id,Product.name,(select top(1)image from productimage where productimage.ProductID=product.ID)as Image from product