|
From: | sjtan |
Subject: | [Gnumed-devel] Re: convenience comm views |
Date: | Tue, 29 Jun 2004 08:15:51 +1000 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113 |
In it's current form this view will produce (no_of_identities * no_of_comm_types) rows. Is this really what is intended ?The convenience view is not v_linked_comms but v_flat_comms , and it would have to return blank fields anyway
contrib function crosstab (linked_value_table, single_field_category_names_table) would work on a natural join of identity, lnk_identity2comm_chan, enum_comm_types, com_channel , and would put in blank value fields, I presume.You'll need contrib/crosstab for that
I'm happy to use whatever denomalization mechanism is included.
[Prev in Thread] | Current Thread | [Next in Thread] |