I have an SQL table with name 'OLD' like this one:
old_col1 old_col2
title News
post blablabla1
title Weather
post blablabla2
and I want to insert to another table 'NEW' that has columns: title and post
the values of old_col2 from table OLD. Table NEW should be like this:
title post
News blablabla1
Weather blablabla2
I only tried to fill column title with this query:
INSERT INTO NEW (title)
SELECT old_col1
FROM OLD
where old_col1 = 'title'