Sorry about that. Let me try to clarify.
Let's say that I have a table with the fields, 'Diagnosis_Code',
'Diagnosis_Name' and 'Procedure_Codes' and another table with the field,
'ICD9_Code'. ICD9_Code and Diagnosis_Code are related.
I would like to run a crosstab query that the join b/t ICD9_Code and
Diagnosis_Code to disaplay the corresponding 5 Diagnosis_Names and the
count
of the patients with those that occur with the greatest frequencies.
This is why I wanted Diagnosis_Name to be a row heading, the corresponding
Procedure_Code as the colum heading the and the count of the patients that
have the top 5 Diagnosis_Name.
Hope that helps. Thanks for helping me out.