Hi - I suspect this is a basic SQL issue.
I'm trying to create a crosstab from three sets of tables and fields that are selected by the user. 1, the columns, 2, the rows and 3, the values.
I am using a three dynamic SQL cursors, one after the other, to show:
First, the columns (simple group by on the field selected in 1),
Second, the row value (group by on field selected in 2, and if it's the first value in this loop then also the total),
And then for each of the column values, I am showing the count of the field selected in 3, restricted to the row value in question.
The problem I'm having is that I need the nulls to be displayed.
Any ideas beyond using outer joins?
TIA, SidUK
I'm trying to create a crosstab from three sets of tables and fields that are selected by the user. 1, the columns, 2, the rows and 3, the values.
I am using a three dynamic SQL cursors, one after the other, to show:
First, the columns (simple group by on the field selected in 1),
Second, the row value (group by on field selected in 2, and if it's the first value in this loop then also the total),
And then for each of the column values, I am showing the count of the field selected in 3, restricted to the row value in question.
The problem I'm having is that I need the nulls to be displayed.
Any ideas beyond using outer joins?
TIA, SidUK