↧
Answer by Gordon Linoff for SQL conditional insertion of data. SQLite
You would use insert . . . select:insert into customers (id, v1, v2, v3) select m.id, null, null, null from missing m where m.v1 = 'Y' and m.v2 = 'Y' and m.v3 = 'Y';That said, you should revise your...
View ArticleAnswer by Tim Biegeleisen for SQL conditional insertion of data. SQLite
Given that you are relatively new to SQL, I will start off by suggesting that you change your approach. By having one table with data present, and another table with data missing, you are making this...
View ArticleSQL conditional insertion of data. SQLite
This is essentially a question about inserting data into one table dependent on information in another table. The db is implemented with sqlite3. I am a relatively new user of SQL.I have two tables,...
View Article