|
DISTINCT may not work for a single query as it applies across the field list so if you have the same filename with 2 different IDs one will be missed.
GROUP BY should work though
SELECT portId,portImgFile FROM tblportimg GROUP BY portId
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
|