Quantcast
Channel: Questions in topic: "distinct"
Viewing all articles
Browse latest Browse all 38

bm table has duplicate rows in it . but i want to merge the bmto fbm without any dupplicate rows

$
0
0
MERGE INTO fbm f USING (select distinct * form bm b) ON (f.EMPLOYEE_ID= b.EMPLOYEE_ID) WHEN MATCHED THEN UPDATE SET f.EMPLOYEE_ID = b.EMPLOYEE_ID WHEN NOT MATCHED THEN INSERT VALUES(b.EMPLOYEE_ID);

Viewing all articles
Browse latest Browse all 38

Trending Articles