I'm trying to make a conditional statement in SQLite that would update a column value if it's 'None', but if that column already has a value, then do an insert with the whole new entry. This can be done in one command or it has to be in 2 commands?
Column : TV = 'None' The script would update TV for the first time with TV = 'Sony' If a new brand is available, the SQL command would check if TV = 'None' and if it's not, insert another entry with TV = 'Samsung'
EDIT: Could be table "Sells" with 3 columns: TV, Store, Type
UPDATE Sells SET TV='Sony' WHERE Store='Chicago' AND Type ='4k'