I want to take a column with values that repeat multiple times and get that value only once and store it for later use, but at the same time I would like to get another valu
You can use INSERT INTO... SELECT statement on this,
INSERT INTO... SELECT
INSERT INTO tableName (A, B, C) SELECT A, B, MAX(C) + 1 FROM tableName GROUP BY A, B