I have 3 tables.
Table A has 1 column. Date(Say 22/1/2020)
Table B - Has 2 columns. Id and Value
With INSERT INTO you take results from tablea into tableb. It would be more useful for us to provide some sample data.
INSERT INTO
INSERT INTO tableB(ID) SELECT ID FROM tableA WHERE VALUE = 0
1.4m articles
1.4m replys
5 comments
57.0k users