What i want to do is use a query that will return one of each type regardless of the other in there, for example.
i have a list of unit unit 3131,3132,3133 etc and they have a status attached to them of red, green or yellow.
when i run a select statment on them as below i get the results
unit 3131 - red
unit 3132 - green
unit 3132 - red
i knopw that this is becasue the DB is seeing the second two as distinct, what i want is just one of all the unit regardless of second or thrid entries.
so the statment i am using is
Expand|Select|Wrap|Line Numbers
- SELECT DISTINCT Unit, Status FROM tblAnalysis WHERE Unit LIKE '313%'
Thanks
Andrew