sql - how can we delete one value out of two values from table? -
is possible this?i have table 2 rows , 1 column.both rows have same value.no primary key there.can delete 1 row?
here's 1 way row_number()
, common table expression
:
with cte ( select *, row_number() on (partition id order id) rn yourtable) delete cte rn = 1;
Comments
Post a Comment