Hello everyone.
I have this query and this output:
[HTML]
AAA BBB-ZONE CA 9168381000 Expectancy 1 29/04/2008
AAA BBB-ZO CA-UOD MONTAG-1 9168381620 Disease 1 29/04/2008
AAA BBB-ZO CA-UOD MONTAG-9 9168381629 Holiday 1 29/04/2008
AAA BBB-ZO CA-UOD DIENSTAG 9168381650 Permit 1 29/04/2008
AAA BBB-ZO CA-UOD DIENSTAG 9168381650 Holiday 1 29/04/2008[/HTML]
To have this output?
Can you help me?
[HTML]
AAA BBB-ZONE CA 9168381000 Expectancy 1 29/04/2008
Disease 1 29/04/2008
Holiday 1 29/04/2008
Permit 1 29/04/2008
Holiday 1 29/04/2008[/HTML]
I have this query and this output:
Code:
SELECT * , COUNT(STATE) AS strSTATE, COUNT(TYPESTATE) AS strTYPESTATE FROM tbl_MYSQL WHERE STATE = 'ABSENT' AND DATE = '2008-04-29' GROUP BY STATE, TYPESTATE, DESCR ORDER BY DESCR ASC
AAA BBB-ZONE CA 9168381000 Expectancy 1 29/04/2008
AAA BBB-ZO CA-UOD MONTAG-1 9168381620 Disease 1 29/04/2008
AAA BBB-ZO CA-UOD MONTAG-9 9168381629 Holiday 1 29/04/2008
AAA BBB-ZO CA-UOD DIENSTAG 9168381650 Permit 1 29/04/2008
AAA BBB-ZO CA-UOD DIENSTAG 9168381650 Holiday 1 29/04/2008[/HTML]
To have this output?
Can you help me?
[HTML]
AAA BBB-ZONE CA 9168381000 Expectancy 1 29/04/2008
Disease 1 29/04/2008
Holiday 1 29/04/2008
Permit 1 29/04/2008
Holiday 1 29/04/2008[/HTML]
Comment