When there is two users sitting on table 4 and placed orders even at the same time they should get the same bill id. but the actuall thing happening from our exection is they are getting two different bill ids.
when user A placed order, sql checks for table number existence and at the same time user B also place order and check for table 4 existence though sql so both the users do not find table 4 existence so the new bill id is created for both orders.
if we can know the user B has placed order for the same table number 4 we could assign the same bill id.