I have a situation, where new patients can be created through multiple portals simultaneously.
I am working in PostgreSQL DB.
Thanks in Advance. VD.
Currently we are considering MAX(id) and incrementing by 1. However, if multiple users login simultaneously then both gets same MAX(ID), which is creating duplicate id issue.
Can someone suggest what's way to generate new id in this scenario?