I have a mysql table with 3 columns named A, B, and C. Let a be a value from column A, b from column B. I want to create a new table with 4 columns having values a, b, mean of values of column C where A=a and B=b, variance of values of column C, where A=a and B=b. The new table will have as many rows as the number of unique (a,b) pairs. How to do this?
Share
This query will fetch the values. You can use the MySQL
INSERT INTO ... SELECTsyntax if you want to select the results into another table.