Actual table definition, sample query, and output, please. -- Scott Ribe scott_ribe@xxxxxxxxxxxxxxxx https://www.linkedin.com/in/scottribe/ > On Oct 29, 2022, at 5:20 AM, abbas alizadeh <ramkly@xxxxxxxxx> wrote: > > I faced the same issue last week. > We had duplicated records on primary key.