Re: [SQL] crosstabs

2004-02-19 Thread Joe Conway
Philippe Lang wrote: I need to do something similar to a cross tabulation, but without any aggregation. See the crosstab() function found in contrib/tablefunc Joe ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister

Re: [SQL] crosstabs

2004-02-19 Thread Richard Huxton
On Thursday 19 February 2004 16:02, Philippe Lang wrote: > Hello, > > I need to do something similar to a cross tabulation, but without any > aggregation. Have a look in the contrib/ folder of the source distro (or your contrib package). There are some set-returning tablefunc examples. Also you m

Re: [SQL] crosstabs

2004-02-19 Thread Philippe Lang
e could do that without CASE... END... -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Philippe Lang Envoyé : jeudi, 19. février 2004 17:02 À : [EMAIL PROTECTED] Objet : [SQL] crosstabs Hello, I need to do something similar to a cross tabulation,

[SQL] crosstabs

2004-02-19 Thread Philippe Lang
Hello, I need to do something similar to a cross tabulation, but without any aggregation. Here is an example: -- TABLE DEFINITION CREATE TABLE public.type ( code char(1)