Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

How to insert past record after updating the master table in history table through store PROC

$
0
0
Master Table		
Party 	Status	
A	Active	
B	Inactive	
C	Active	
D	Inactive	

Duplicate Table		
Party 	Status	
A	Active	
B	Active	
C	Active	
D	Inactive	

Updated Master Table		
Party 	Status	
A	Active	
B	Active	
C	Active	
D	Inactive

Party History Table	
B	Inactive
	
I have two table one master and another duplicate I need to update master table based on duplicate table insert the record which updated into Party history table as shown above. need help to write store proc.

Viewing all articles
Browse latest Browse all 23857

Trending Articles