clivehenderson
IS-IT--Management
Sounds simple but I'm really struggling.
Any help appreciated.
Thanks
Clive
Properties have many images
[Blue]tblProperty tblPropertyImage
Prop ID ImageID, ImagePropID, ImageSeq[/blue]
I'm just trying to produce one record per property with images details from the lowest ImageSeq.
[Blue]e.g
tblProperty tblPropertyImage
PropID=1 ImageID=11, ImagePropID=1, ImageSeq=5
ImageID=17, ImagePropID=1, ImageSeq=77
PropID=2 ImageID=99, ImagePropID=2, ImageSeq=3
[/blue]
So I'd like to get just 2 results:
[Blue]PropID=1,ImageID=11, ImagePropID=1, ImageSeq=5
PropID=2,ImageID=99, ImagePropID=2, ImageSeq=3[/blue]
Any help appreciated.
Thanks
Clive
Properties have many images
[Blue]tblProperty tblPropertyImage
Prop ID ImageID, ImagePropID, ImageSeq[/blue]
I'm just trying to produce one record per property with images details from the lowest ImageSeq.
[Blue]e.g
tblProperty tblPropertyImage
PropID=1 ImageID=11, ImagePropID=1, ImageSeq=5
ImageID=17, ImagePropID=1, ImageSeq=77
PropID=2 ImageID=99, ImagePropID=2, ImageSeq=3
[/blue]
So I'd like to get just 2 results:
[Blue]PropID=1,ImageID=11, ImagePropID=1, ImageSeq=5
PropID=2,ImageID=99, ImagePropID=2, ImageSeq=3[/blue]