I have a SQL query where I need to substitute something with another thing in the same table. I don\'t know how else to explain it but I will try and provide the general though