Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Query

$
0
0

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


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>