If am trying to run a simple select query from one table:
SELECT FIELD1,FIELD2 FROM TABLEA
FIELD1 FIELD2
Blue Red
Green Green
Yellow Yellow
Orange Purple
Black Black
but if FIELD2 is equal to FIELD I want the result to look like:
FIELD1 FIELD2
Blue Red
Green
Yellow
Orange Purple
Black
SELECT FIELD1,FIELD2 FROM TABLEA
FIELD1 FIELD2
Blue Red
Green Green
Yellow Yellow
Orange Purple
Black Black
but if FIELD2 is equal to FIELD I want the result to look like:
FIELD1 FIELD2
Blue Red
Green
Yellow
Orange Purple
Black