HI,
I have a large table from which i can query to get the following table
type no of times type occurs
101 450
102 562
103 245
also i can get another table
code no of times code occurs
0 1222
1 750
2 355
but now i want to write a query which could get me the following table
type no of timescode1occurs %of timescode1 occurs out of %of times code1 occurs out of
no of times type occurs no of times code occcurs
101 50 11% 6%
102 75 13% 10%
How can i write a query to get this?
Thanks