How to implement SCD type 6 for a table in stored procedure using SQL.
NOTE: We need to maintain single table. No history table creation separately