I want to merge two rows and add a column to show the count of similar rows.
I don’t want to update the table, I just want this as part of select statement which would further be used in Java. I think it would be more efficient to do this in SQL then doing things after retrieving the records. It would be great if you could give me some idea how to do this in SQL: ![I want to merge these two tables as shown in picture]](https://i.stack.imgur.com/SfScq.png)
Something like this?
Output: