Sorry i didnt get the point :
another thing which we noticed is : if we make changes as below , we get complete 100 records
select
A,
b,
c,
d,
e,
F
(
select
a
b
max(c)
sum(d)
sum(e)
from Table1
where table1.c = (XXXXXX) -- Newly added
group by 1,2) A
left outer join
(
select
a
b
max(F)
from Table2
group by 1,2) B
on
A.a = B.a
and A.b = B.b
Sorry i didnt get the point :
another thing which we noticed is : if we make changes as below , we get complete 100 records
select
A,
b,
c,
d,
e,
F
(
select
a
b
max(c)
sum(d)
sum(e)
from Table1
where table1.c = (XXXXXX) -- Newly added
group by 1,2) A
left outer join
(
select
a
b
max(F)
from Table2
group by 1,2) B
on
A.a = B.a
and A.b = B.b