Merge
HejJeg får fejlen "an expression of non boolean type specified in a context where a condition is expected"
BEGIN TRAN;
MERGE UNIT_SW_TABLE AS T
USING UNIT_TABLE AS S
ON (T.UNIT_SW_TABLE_UNIT_TABLE_ID_SET = S.UNIT_TABLE_ID)
WHEN MATCHED THEN
--UPADTE
WHEN NOT MATCHED THEN
-- Insert statements for procedure here
INSERT INTO UNIT_SW_TABLE(unit_sw_table_unit_table_id_set,
unit_sw_table_os_table_id_set,
unit_sw_table_browser_table_id_set,
unit_sw_table_mail_table_id_set,
unit_sw_table_antivirus_table_id_set)
VALUES (@para_unit_id,@para_os_id,@para_browser_id,@para_mail_id,@para_antivirus_id);
ROLLBACK TRAN;