Saama Technologies interview question

SCD type 2 implementation method . Duplicate queet in the SQL