The inner query is returning 27 records, but when I join it with another table it returns 216 records
select SegInfoID from PNRSegmentInfo PNRSI
inner join
(select SG2.CreatedDate,SG2.RequestID,PNRI.PNRID
from SG2 with (nolock)
INNER JOIN pnrinfo PNRI
on SG2.RequestID=PNRI.RequestID
and PNRI.RequestID=496022) A1
ON PNRSI.PNRID=A1.PNRID
what can be the reason, is there something wrongwith the query