sql - Access Removing CERTAIN PARTS of Duplicates in Union Query -
sql - Access Removing CERTAIN PARTS of Duplicates in Union Query -
i'm working in access 2007 , know nil sql , very, little vba. trying union query bring together 2 tables, , delete duplicates.
but, lot of duplicates have info in 1 entry that's not in other. it's not 100% exact duplicate.
example, row 1: a, b, blank row 2: a, blank, c
i want merge both of these end 1 row of a, b, c.
i found similar question on here don't understand reply @ all. help appreciated.
i suggest query this:
select coalesce(t1.a, t2.a) a, coalesce(t1.b, t2.b) b, coalesce(t1.c, t2.c) c table1 t1 inner bring together table2 t2 on t1.key = t2.key
here, have used keyword coalesce
. take first non null value in list of values. note have used key
indicate column same between 2 rows. illustration looks a
cannot sure.
sql database duplicates ms-access-2007 union
Comments
Post a Comment