opticalman
Programmer
I want a count of all the different services done. This works OK.
SELECT service1 as serv1 , COUNT( service1 ) as howmany
FROM MyDatabase
GROUP BY service1
ORDER BY service1
But each record has a place for 6 services to be entered, I.E. service1, sevvice2, ….. service6. ( I humbly ask that you not remind why that is a poor table design ) How can I get the same count of all services from all 6 fields?
Thanks in advance
Jim Rumbaugh
SELECT service1 as serv1 , COUNT( service1 ) as howmany
FROM MyDatabase
GROUP BY service1
ORDER BY service1
But each record has a place for 6 services to be entered, I.E. service1, sevvice2, ….. service6. ( I humbly ask that you not remind why that is a poor table design ) How can I get the same count of all services from all 6 fields?
Thanks in advance
Jim Rumbaugh