Relative Content

Tag Archive for c#sqlsql-server

Add master slave data at same time

With SQL Server 2022, INSERT INTO ... OUTPUT.Inserted.* VALUES ... can get the inserted items. Then statement can insert data into one or two tables(with same table structure).

Add master slave data at same time

With SQL Server 2022, INSERT INTO ... OUTPUT.Inserted.* VALUES ... can get the inserted items. Then statement can insert data into one or two tables(with same table structure).

Join Tables with Condition

I have table Machine and table Inventory. In table Machine, I have last running inventory properties. In table Inventory, I have new inventory id and properties (Not yet run in machine).
I have to return a list of possible combination inventory that can run in machines based on it last running inventory. And I also need to return list of machines with no duplicates inventory.