I have a table that has 2 columns that list the amount of a specific item per release of our product. I need to calculate the percentage increase between the two columns and append it to a new column in the table, however I have not found any documentation that relates to this? I'm using Postgres 9.0, and I need to examine the percentage increase between the two columns as a part of the QC process to ensure there is no missing/wrong data between releases.
Here's the table definition:
oid oid[] NOT NULL,
"State" character varying(2)[] NOT NULL,
release_1121 numeric NOT NULL,
release_1122 numeric NOT NULL,
CONSTRAINT oid PRIMARY KEY (oid)
I'd like to add a percentage increase column and populate it with the correct percentages.