I would like to re-order rows from two columns in an existing table without creating a new one. I have this script, that works, table name test.table:
SELECT value, variety
FROM test.table
group by value, variety
order by value, variety;
I have tried update
and alter table
, but I can not get it to work e.g:
update test.table
SELECT value, variety
FROM test.table
group by value, variety
order by value, variety;
How is this done?