I have a table T
like this:
ID | column 1 | column 2 |...| column n
Here ID is not a primary key.
I performed some operation and group the results according to ID so I get a table T1
like this:
ID | column 1 | column 2 |...| column x
Now some IDs which were present in T
are eliminated in T1
due to above operation.
Now I want to again do some operation on T
, and again want to group result according to ID
but only those IDs which are listed in T1
.
How can I do it in MySql ?