skip to Main Content

Update column value that has one or more same values of other column – Phpmyadmin

I have this statement: UPDATE `tblAllocatedLeads` SET tblAllocatedLeads.fldAllocatedStatus = CASE WHEN tblAllocatedLeads.fldAllocatedStatus = 'Allocated' AND (SELECT COUNT(*) FROM (SELECT * FROM `tblAllocatedLeads`) AS tblallocate WHERE AND tblallocate.fldAllocatedLeadId = tblAllocatedLeads.fldAllocatedLeadId) > 1 THEN 'Outstanding' END What I wanted is that update…

VIEW QUESTION
Back To Top
Search