I have the table with 1 column and has following data
Status a1 i t a2 a3
I want to display the following result in my select query
You can only check the first character of the status. For this you use substring function.
substr(status, 1,1)
In your case past.