Is there a way to show only one of two rows that have the same date and id, by using another column that is a nvarchar.
IF I HAD:
groupID Date Task
1 1-01-1111 First Task
2 1-02-1122 First Task
2 1-02-1122 Second Task
3 1-03-1133 Second Task
3 1-03-1133 Third Task
I Would like to get:
groupID Date Task
1 1-01-1111 First Task
2 1-02-1122 First Task
3 1-03-1133 Second Task
3 1-03-1133 Third Task
If rows have the same groupID and Date AND if one of the Task in the rows are "First Task" only show the row with the Task of "First Task".
If rows have the same groupID and Date, but no row has a Task of "First Task", show all rows.