Store Procedure to Insert data between tables : I want to insert data from a table called temp_menu to another called menu, they have the same structure, they store the same data,I want to create a stored procedure to check the differences between the rows tables, if there is diferent rows and the rows dont exist in table menu, i want to insert in the table menu, if the rows exist, i want to update the rows in the table menu if the DateReg columm is higher that the DateReg columm in temp_menu table.


The tables have this structure:


    CREATE TABLE [dbo].[Menu_Temp](
    	[Date] [datetime] NOT NULL,
    	[Ref] [int] NOT NULL,
    	[Art] [char](60) NOT NULL,
    	[Dish] [char](60) NOT NULL,
    	[DateReg] [datetime] NOT NULL,
    	[Zone] [char](60) NOT NULL,
    	);
	