I have the following table
ID Name Progress Date
------------------------------
1 A1 First Stage 1/1/2013
2 A1 Second Stage 1/2/2013
3 A2 First Stage 1/1/2013
4 A2 Second stage 1/2/2013
5 A3 First Stage 1/2/2013
6 A1 Closed 1/5/2013
I would like to display the stage of each name except the one that is ultimately closed.
For example the output of this should be
ID Name Progress Date
------------------------------
3 A2 First Stage 1/1/2013
4 A2 Second stage 1/2/2013
5 A3 First Stage 1/2/2013
Not A1 as A1 is ultimately Closed.
My query display Select * from table where Progress not like 'Closed' obviously displays all the results except that row.
Thanks
Use a subquery to filter all the names that you want to exclude:
Now, use it in your query:
Hope this helps you