I have a table ‘table1’ which has 2 columns, flange_start and flange_end. I would like a query to retreive a unique list of flanges, regardless of whether its from _start or _end.
I have tried GROUPing by flange_start, then flange_end then GROUPing the results.
Is there a better way?
My tip is UNION:
and link to more reading: http://dev.mysql.com/doc/refman/5.0/en/union.html