I have been trying to move away from using DECODE to pivot rows in Oracle 11g, where there is a handy PIVOT function.But I may have found a limitation:
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this
i have a details table with columns: user_id int code int value int And i want to build a summary table that looks like:
I have a table of over 1 million test score records that basically have a unique score_ID, a subject_ID and a score given by a person.The score range for most subjects is 0-3, but some have a range of
The query: select Escuser,Eslevel from WF_UserConfiguration is returning me the table bellow: ╔═════════════════════╗
I have tables like: \'profile_values\' userID | fid| value -------+---------+------- 1| 3| joe@gmail.com 1| 45| 203-234-2345
I have table similar to the following: Year | Product |Value 2006A10 2006B20 2006C30 2007A40 2007B50 2007C60
I\'m trying to do a lookup on our demographioc table to display some stats. However, since out demographic table is quit big I want to do it in one query.
I have looked into pivot but I think it requires an aggregate function which I do not need (I think).
Does any one know how to create crosstab queries in PostgreSQL? For example I have the followi开发者_运维技巧ng table: