i have a table named tblStockManagement
in my database
. i have two columns named Client_ID
and FoldingID
.
i want to insert values to the columns, but first check the value if it is already exist in table or not. because then i will update the quantity
of item instead of making new row in table.
i have method in my mind that select all data by given foldingID
and Client_ID
and see if dataset
has 0 rows then data is not present already in table. but suggest me any easiest and reliable way to check that..