I have table contains questions data. Also every question has test id, document id (dokuman_id), order (sira) and video data. I want to create a query that insert new row if there isn't a row has same test id, document id and order; else just update video field.
I know I could use ON DUPLICATE KEY if I want to do it with id(primart_key) column. But I need to control 3 duplicate column conditions as optimum as possible.