Lets take the typical .
Step 1: Check and see if the unit is available (Quantity).
Step 2: If so, go ahead and order the product.
Step 3: Transaction Complete.
Between Step 1 and Step 2, there is a chance another user (transaction) comes in and order the product thus is no longer available.
How do most systems handle this? Is there such an isolation level that will lock the table (product) table from inserting any records from any other transactions before Step 3 is completed?
Thanks!