I have 2 tables:
NewTable (partNumber, html)
OldTable(partNumer, html)
The old table has duplicate data i.e. rows with the same partNumber and html.
NewTable is empty.
I want to take the rows from 'OldTable' and insert them into NewTable.
The only condition that I get any row from 'OldTable' where the html column is not an empty string, so:
SELECT TOP 1 FROM OldTable WHERE html <> ''
What would the update look like?