SQLServer – Actualizar una tabla con datos de otra

MERGE Ofertarestricciones AS target USING (SELECT idOfertaHotel, hotelDiscount FROM OfertaHotel) AS SOURCE (idOfertaHotel, hotelDiscount) ON (target.idOfertaHotel = SOURCE.idOfertaHotel) WHEN MATCHED THEN UPDATE SET target.Discount = SOURCE.hotelDiscount;MERGE Ofertarestricciones AS target USING (SELECT idOfertaHotel, hotelDiscount FROM OfertaHotel) AS source (idOfertaHotel, hotelDiscount) ON (target.idOfertaHotel = source.idOfertaHotel) WHEN MATCHED THEN UPDATE SET target.Discount = source.hotelDiscount; Donde Ofertarestricciones sería la…