HI
I have one more problem to solve and I would ask You for help.
I Have e table:
Name Age Peter 35 test1@gmail.com Marc 33 test2@gmail.com Mike 37 test1@gmail.com Martin 37 test2@gmail.com Mike 37 null Peter 35 test1@gmail.com Peter 37 test2@gmail.com Marc 33 test1@gmail.com Peter 35 null Martin 35 test2@gmail.com Mike 37 test1@gmail.com Peter 35 test2@gmail.com Mike 37 test1@gmail.com
I have to present a histogram of fields..
Using simple queries i can do i for each fild (field, count(field), group by.... )
Name N_count Peter 5 Mike 4 Marc 2 Martin 2
Age A_count 37 6 35 5 33 2
E_count test1@gmail.com 6 test2@gmail.com 5 null 2
However, the real table has many columns and this method is very inefficient.
I would like the easiest way to get such a result:
How to achieve it?
Name N_count Age A_count E_count Peter 5 37 6 test1@gmail.com 6 Mike 4 35 5 test2@gmail.com 5 Marc 2 33 2 null 2 Martin 2