I have a batch insert statement.
Suppose I have a query:
BEGIN BATCH
INSERT INTO abc (col1,col2,col3,col4) VALUES (1,'xyz',99,632);
INSERT INTO abc (col1,col2,col3,col4) VALUES (1,'xyz',79,632);
APPLY BATCH;
It is only inserting the first statement rather than inserting the value present in second statement.
NOTE: col1 is the clustered key and col4 is the partition key.
How we can make sure the last insert statement is getting saved in db?