Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
select * from ti_inv has 54 rowsNow I have the following code:select * from ti_inv a left outer join F_AR b on A.invno = b.DocNumberwhere LEID = '21001'and PeriodKey = '102'This only generates 14 rows. This is a LEFT OUTER JOIN so I would have thought that even if there were no matches all 54 rows from ti_inv would have been received but with NULLS on the right.
select *from ti_inv awhere LEID = '21001' and PeriodKey = '102'select * from ti_inv a left outer join F_AR b on A.invno = b.DocNumberwhere LEID = '21001' and PeriodKey = '102'