Re: crosstab help - Mailing list pgsql-sql

From Jayadevan
Subject Re: crosstab help
Date
Msg-id 1370406241472-5757977.post@n5.nabble.com
Whole thread Raw
In response to Re: crosstab help  (John Fabiani <johnf@jfcomputer.com>)
List pgsql-sql
Hello all ,
I have a similar situation - an EAV table.
entity_attr_id  integer          entity_id       bigint           ent_attr_value  character varying
I am trying 
select * from crosstab('select entity_id::text as row_name,
entity_attr_id::bigint as entity_attr_id , ent_attr_value::text  as
ent_attr_value from org_entity_attr_value order by 1') as ct(                
row_name text,entity_attr_id bigint,ent_attr_value text )
and get an error - 
ERROR:  return and sql tuple descriptions are incompatible





--
View this message in context: http://postgresql.1045698.n5.nabble.com/crosstab-help-tp5511994p5757977.html
Sent from the PostgreSQL - sql mailing list archive at Nabble.com.



pgsql-sql by date:

Previous
From: Robert DiFalco
Date:
Subject: Correlated Update Query
Next
From: JORGE MALDONADO
Date:
Subject: Advice with an insert query