Here is the example of my question.
In the ID table, there are two columns, one is id1 and another is id2.
I just want to know the total id count in id1 and id2 columns, like the right table.
In that situations, How can I get the total count of same name of different columns in one table in MySQL code?
