Hello,
I would like to convert a numeric code in its textual description in a report.
The situation is the following one :
I have table which looks like
[tt]
ID EVENTTYPE EVENTDATE
1 1 14.08.2003
2 1 14.08.2003
3 2 14.08.2003
4 3 15.08.2003
5 1 15.08.2003
. . .
. . .[/tt]
In another table i have code values :
[tt]
EVENTTYPE DESCRIPTION
1 OK
2 KO
3 UNDEFINED
[/tt]
My report should seem like that :
[tt]
MONTH EVENTYPE TOTAL
08.2003 OK 10
KO 8
UNDEFINED 0
... ... ...
[/tt]
When I perform the join with codes direct in database in a view, the performances are weaks. So, what I would like to do is, first perform grouping calculation and obtain the result :
[tt]
MONTH EVENTYPE TOTAL
08.2003 1 10
2 8
3 0
... ... ...
[/tt]
and then convert the "EVENTTYPE" in its description in the report with a local correspondence table.
Any idea how to do this ?
Thanks in advance.
Philippe
I would like to convert a numeric code in its textual description in a report.
The situation is the following one :
I have table which looks like
[tt]
ID EVENTTYPE EVENTDATE
1 1 14.08.2003
2 1 14.08.2003
3 2 14.08.2003
4 3 15.08.2003
5 1 15.08.2003
. . .
. . .[/tt]
In another table i have code values :
[tt]
EVENTTYPE DESCRIPTION
1 OK
2 KO
3 UNDEFINED
[/tt]
My report should seem like that :
[tt]
MONTH EVENTYPE TOTAL
08.2003 OK 10
KO 8
UNDEFINED 0
... ... ...
[/tt]
When I perform the join with codes direct in database in a view, the performances are weaks. So, what I would like to do is, first perform grouping calculation and obtain the result :
[tt]
MONTH EVENTYPE TOTAL
08.2003 1 10
2 8
3 0
... ... ...
[/tt]
and then convert the "EVENTTYPE" in its description in the report with a local correspondence table.
Any idea how to do this ?
Thanks in advance.
Philippe