Ms Access Query -


i have 2 tables following data main table:

r-1,f-2,3 r-1,f-1,5 r-1,f-2,6 r-1,f-3,1 

second sub table is

f-2,3 f-1,4 f-4,5 

i need write query results in

r-1,f-2,(3+3) r-1,f-1,(5+4) r-1,f-2,(6+3) r-1,f-3,1 

how can achieve this?

looks simple join on f-column:

select t1.r, t1.f, t1.num+nz(t2.num, 0) num t1 left join t2 on t2.f = t1.f 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -