I am trying to understand more about the where, when and how of clustered indexes!GivenCREATE TABLE PRODUCTS(productid INTEGER IDENTITY(1,1),product_name VARCHAR(100)...more stuff...)CREATE TABLE PRODUCT_IMAGES(imageid INTEGER IDENTIY(1,1),productid INTEGER NOT NULL,...image size n stuff...)FK on productid between the two table.
Where each product is going to have a number of images that will need to be displayed against it.Is it best to have the clustered index on PRODUCT_IMAGES on the "productid" field so that when getting the images for a product all the records are "clustered" together rather that all over the place?Or have I completely missed the point?